source: rtems/cpukit/sapi/Makefile.am @ 8a61c2a

4.104.114.84.9
Last change on this file since 8a61c2a was 8a61c2a, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 30, 2003 at 7:44:04 AM

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

  • Makefile.am: Add $(dirstamp) to preinstallation rules. Remove MACROS.
  • Property mode set to 100644
File size: 3.5 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 += -D__RTEMS_INSIDE__
40
41all-local: $(PREINSTALL_FILES) ${ARCH} $(LIB)
42
43$(LIB): ${OBJS}
44        $(make-library)
45
46${ARCH}/%.$(OBJEXT): src/%.c
47        ${COMPILE} -o $@ -c $<
48
49EXTRA_DIST += $(C_FILES)
50
51PREINSTALL_FILES =
52
53$(PROJECT_INCLUDE)/$(dirstamp):
54        @$(mkinstalldirs) $(PROJECT_INCLUDE)
55        @: > $(PROJECT_INCLUDE)/$(dirstamp)
56PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp)
57
58$(PROJECT_INCLUDE)/confdefs.h: include/confdefs.h $(PROJECT_INCLUDE)/$(dirstamp)
59        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/confdefs.h
60PREINSTALL_FILES += $(PROJECT_INCLUDE)/confdefs.h
61
62$(PROJECT_INCLUDE)/rtems/$(dirstamp):
63        @$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems
64        @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp)
65PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/$(dirstamp)
66
67$(PROJECT_INCLUDE)/rtems/config.h: include/rtems/config.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
68        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/config.h
69PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/config.h
70
71$(PROJECT_INCLUDE)/rtems/extension.h: include/rtems/extension.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
72        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.h
73PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.h
74
75$(PROJECT_INCLUDE)/rtems/fatal.h: include/rtems/fatal.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
76        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fatal.h
77PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fatal.h
78
79$(PROJECT_INCLUDE)/rtems/init.h: include/rtems/init.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
80        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/init.h
81PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/init.h
82
83$(PROJECT_INCLUDE)/rtems/io.h: include/rtems/io.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
84        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/io.h
85PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/io.h
86
87$(PROJECT_INCLUDE)/rtems/mptables.h: include/rtems/mptables.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
88        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/mptables.h
89PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mptables.h
90
91$(PROJECT_INCLUDE)/rtems/sptables.h: include/rtems/sptables.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
92        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/sptables.h
93PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/sptables.h
94
95if INLINE
96$(PROJECT_INCLUDE)/rtems/extension.inl: inline/rtems/extension.inl $(PROJECT_INCLUDE)/rtems/$(dirstamp)
97        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.inl
98PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl
99
100else
101$(PROJECT_INCLUDE)/rtems/extension.inl: macros/rtems/extension.inl $(PROJECT_INCLUDE)/rtems/$(dirstamp)
102        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.inl
103PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl
104endif
105
106include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.