source: rtems/cpukit/sapi/Makefile.am @ 2eb04b2

4.104.114.84.9
Last change on this file since 2eb04b2 was 2eb04b2, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 12, 2002 at 6:31:49 AM

2002-12-12 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Don't create $ARCH as side-effect of compilation.
  • Property mode set to 100644
File size: 2.1 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7include $(top_srcdir)/automake/lib.am
8
9$(PROJECT_INCLUDE):
10        @$(mkinstalldirs) $@
11$(PROJECT_INCLUDE)/rtems:
12        @$(mkinstalldirs) $@
13
14$(PROJECT_INCLUDE)/%.h: include/%.h
15        $(INSTALL_DATA) $< $@
16$(PROJECT_INCLUDE)/%.inl: $(INLINEdir)/%.inl
17        $(INSTALL_DATA) $< $@
18
19include_HEADERS = include/confdefs.h
20
21PREINSTALL_FILES = $(PROJECT_INCLUDE)
22PREINSTALL_FILES += $(include_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
23
24include_rtemsdir = $(includedir)/rtems
25PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems
26
27include_rtems_HEADERS = include/rtems/config.h include/rtems/extension.h \
28    include/rtems/fatal.h \
29    include/rtems/init.h include/rtems/io.h include/rtems/mptables.h \
30    include/rtems/sptables.h
31
32PREINSTALL_FILES += $(include_rtems_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
33
34EXTRA_DIST = include/rtems/README
35
36include/rtems/sptables.h: $(top_builddir)/config.status $(top_srcdir)/sapi/include/rtems/sptables.h.in
37        cd $(top_builddir) && CONFIG_FILES=sapi/$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
38
39## inline
40
41inline_H_FILES = inline/rtems/extension.inl
42noinst_HEADERS = $(inline_H_FILES)
43
44if INLINE
45PREINSTALL_FILES += $(inline_H_FILES:inline/%=$(PROJECT_INCLUDE)/%)
46include_rtems_HEADERS += $(inline_H_FILES)
47endif
48
49## macros
50macros_H_FILES = macros/rtems/extension.inl
51noinst_HEADERS += $(macros_H_FILES)
52
53if MACROS
54PREINSTALL_FILES += $(macros_H_FILES:macros/%=$(PROJECT_INCLUDE)/%)
55include_rtems_HEADERS += $(macros_H_FILES)
56endif
57
58## src
59
60LIB=$(ARCH)/libsapi.a
61
62EXTENSION_FILES = src/extension.c src/extensioncreate.c src/extensiondelete.c \
63    src/extensionident.c
64C_FILES = src/debug.c $(EXTENSION_FILES) src/fatal.c src/exinit.c src/io.c \
65    src/itronapi.c src/posixapi.c src/rtemsapi.c
66OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT))
67
68#
69# Add local stuff here using +=
70#
71
72AM_CPPFLAGS += -D__RTEMS_INSIDE__
73
74all-local: $(PREINSTALL_FILES) ${ARCH} $(LIB)
75
76$(LIB): ${OBJS}
77        $(make-library)
78
79${ARCH}/%.$(OBJEXT): src/%.c
80        ${COMPILE} -o $@ -c $<
81
82EXTRA_DIST += $(C_FILES)
83
84include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.