source: rtems/cpukit/sapi/Makefile.am @ 3d1de20

4.104.114.84.9
Last change on this file since 3d1de20 was 3d1de20, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 19, 2004 at 7:29:05 AM

2004-01-19 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Add PREINSTALL_DIRS.
  • Property mode set to 100644
File size: 3.7 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7
8include_HEADERS = include/confdefs.h
9
10include_rtemsdir = $(includedir)/rtems
11
12include_rtems_HEADERS = include/rtems/config.h include/rtems/extension.h \
13    include/rtems/fatal.h include/rtems/init.h include/rtems/io.h \
14    include/rtems/mptables.h include/rtems/sptables.h
15
16EXTRA_DIST = include/rtems/README
17
18if INLINE
19include_rtems_HEADERS += inline/rtems/extension.inl
20else
21include_rtems_HEADERS += macros/rtems/extension.inl
22endif
23
24## src
25
26EXTENSION_FILES = src/extension.c src/extensioncreate.c \
27    src/extensiondelete.c src/extensionident.c
28C_FILES = src/debug.c $(EXTENSION_FILES) src/fatal.c src/exinit.c src/io.c \
29    src/itronapi.c src/posixapi.c src/rtemsapi.c
30
31AM_CPPFLAGS += -I$(top_builddir)
32AM_CPPFLAGS += -D__RTEMS_INSIDE__
33
34EXTRA_LIBRARIES = libsapi.a
35CLEANFILES = libsapi.a
36libsapi_a_SOURCES = $(C_FILES)
37libsapi_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
38
39EXTRA_LIBRARIES += libsapi_g.a
40CLEANFILES += libsapi_g.a
41libsapi_g_a_SOURCES = $(libsapi_a_SOURCES)
42libsapi_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
43
44all-local: $(PREINSTALL_FILES) libsapi$(LIB_VARIANT).a
45
46PREINSTALL_DIRS =
47PREINSTALL_FILES =
48
49$(PROJECT_INCLUDE)/$(dirstamp):
50        @$(mkdir_p) $(PROJECT_INCLUDE)
51        @: > $(PROJECT_INCLUDE)/$(dirstamp)
52PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
53
54$(PROJECT_INCLUDE)/confdefs.h: include/confdefs.h $(PROJECT_INCLUDE)/$(dirstamp)
55        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/confdefs.h
56PREINSTALL_FILES += $(PROJECT_INCLUDE)/confdefs.h
57
58$(PROJECT_INCLUDE)/rtems/$(dirstamp):
59        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems
60        @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp)
61PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp)
62
63$(PROJECT_INCLUDE)/rtems/config.h: include/rtems/config.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
64        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/config.h
65PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/config.h
66
67$(PROJECT_INCLUDE)/rtems/extension.h: include/rtems/extension.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
68        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.h
69PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.h
70
71$(PROJECT_INCLUDE)/rtems/fatal.h: include/rtems/fatal.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
72        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fatal.h
73PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fatal.h
74
75$(PROJECT_INCLUDE)/rtems/init.h: include/rtems/init.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
76        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/init.h
77PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/init.h
78
79$(PROJECT_INCLUDE)/rtems/io.h: include/rtems/io.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
80        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/io.h
81PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/io.h
82
83$(PROJECT_INCLUDE)/rtems/mptables.h: include/rtems/mptables.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
84        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/mptables.h
85PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mptables.h
86
87$(PROJECT_INCLUDE)/rtems/sptables.h: include/rtems/sptables.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
88        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/sptables.h
89PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/sptables.h
90
91if INLINE
92$(PROJECT_INCLUDE)/rtems/extension.inl: inline/rtems/extension.inl $(PROJECT_INCLUDE)/rtems/$(dirstamp)
93        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.inl
94PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl
95
96else
97$(PROJECT_INCLUDE)/rtems/extension.inl: macros/rtems/extension.inl $(PROJECT_INCLUDE)/rtems/$(dirstamp)
98        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.inl
99PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl
100endif
101
102CLEANFILES += $(PREINSTALL_FILES)
103DISTCLEANFILES = $(PREINSTALL_DIRS)
104
105include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.