source: rtems/cpukit/sapi/Makefile.am @ 08119f1

4.104.114.84.9
Last change on this file since 08119f1 was 08119f1, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 1, 2004 at 11:04:16 AM

2004-04-01 Ralf Corsepius <ralf_corsepius@…>

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