source: rtems/cpukit/sapi/Makefile.am @ a3fb105

4.104.114.84.9
Last change on this file since a3fb105 was a3fb105, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 30, 2003 at 5:23:55 PM

2003-11-30 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Add $(dirstamp) to compilation rules. Add AM_CPPFLAGS += -I$(top_builddir).
  • Property mode set to 100644
File size: 3.6 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
9include_HEADERS = include/confdefs.h
10
11include_rtemsdir = $(includedir)/rtems
12
13include_rtems_HEADERS = include/rtems/config.h include/rtems/extension.h \
14    include/rtems/fatal.h include/rtems/init.h include/rtems/io.h \
15    include/rtems/mptables.h include/rtems/sptables.h
16
17EXTRA_DIST = include/rtems/README
18
19if INLINE
20include_rtems_HEADERS += inline/rtems/extension.inl
21else
22include_rtems_HEADERS += macros/rtems/extension.inl
23endif
24
25## src
26
27LIB=$(ARCH)/libsapi.a
28
29EXTENSION_FILES = src/extension.c src/extensioncreate.c \
30    src/extensiondelete.c src/extensionident.c
31C_FILES = src/debug.c $(EXTENSION_FILES) src/fatal.c src/exinit.c src/io.c \
32    src/itronapi.c src/posixapi.c src/rtemsapi.c
33OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT))
34
35#
36# Add local stuff here using +=
37#
38
39AM_CPPFLAGS += -I$(top_builddir)
40AM_CPPFLAGS += -D__RTEMS_INSIDE__
41
42all-local: $(PREINSTALL_FILES) $(LIB)
43
44$(LIB): ${OBJS}
45        $(make-library)
46
47${ARCH}/%.$(OBJEXT): src/%.c $(ARCH)/$(dirstamp)
48        ${COMPILE} -o $@ -c $<
49
50EXTRA_DIST += $(C_FILES)
51
52PREINSTALL_FILES =
53
54$(PROJECT_INCLUDE)/$(dirstamp):
55        @$(mkinstalldirs) $(PROJECT_INCLUDE)
56        @: > $(PROJECT_INCLUDE)/$(dirstamp)
57PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp)
58
59$(PROJECT_INCLUDE)/confdefs.h: include/confdefs.h $(PROJECT_INCLUDE)/$(dirstamp)
60        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/confdefs.h
61PREINSTALL_FILES += $(PROJECT_INCLUDE)/confdefs.h
62
63$(PROJECT_INCLUDE)/rtems/$(dirstamp):
64        @$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems
65        @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp)
66PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/$(dirstamp)
67
68$(PROJECT_INCLUDE)/rtems/config.h: include/rtems/config.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
69        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/config.h
70PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/config.h
71
72$(PROJECT_INCLUDE)/rtems/extension.h: include/rtems/extension.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
73        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.h
74PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.h
75
76$(PROJECT_INCLUDE)/rtems/fatal.h: include/rtems/fatal.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
77        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fatal.h
78PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fatal.h
79
80$(PROJECT_INCLUDE)/rtems/init.h: include/rtems/init.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
81        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/init.h
82PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/init.h
83
84$(PROJECT_INCLUDE)/rtems/io.h: include/rtems/io.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
85        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/io.h
86PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/io.h
87
88$(PROJECT_INCLUDE)/rtems/mptables.h: include/rtems/mptables.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
89        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/mptables.h
90PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mptables.h
91
92$(PROJECT_INCLUDE)/rtems/sptables.h: include/rtems/sptables.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
93        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/sptables.h
94PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/sptables.h
95
96if INLINE
97$(PROJECT_INCLUDE)/rtems/extension.inl: inline/rtems/extension.inl $(PROJECT_INCLUDE)/rtems/$(dirstamp)
98        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.inl
99PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl
100
101else
102$(PROJECT_INCLUDE)/rtems/extension.inl: macros/rtems/extension.inl $(PROJECT_INCLUDE)/rtems/$(dirstamp)
103        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.inl
104PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl
105endif
106
107include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.