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

4.104.114.84.95
Last change on this file since d7a7573 was 89b46875, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/09/04 at 15:42:41

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

  • Makefile.am: Build libcsupport$(LIB_VARIANT).a instead of $(ARCH)/libcsupport.a.
  • Property mode set to 100644
File size: 3.4 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/amcompile.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
35libsapi_a_SOURCES = $(C_FILES)
36libsapi_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
37
38EXTRA_LIBRARIES += libsapi_g.a
39libsapi_g_a_SOURCES = $(C_FILES)
40libsapi_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
41
42all-local: $(PREINSTALL_FILES) libsapi$(LIB_VARIANT).a
43
44PREINSTALL_FILES =
45
46$(PROJECT_INCLUDE)/$(dirstamp):
47        @$(mkdir_p) $(PROJECT_INCLUDE)
48        @: > $(PROJECT_INCLUDE)/$(dirstamp)
49
50$(PROJECT_INCLUDE)/confdefs.h: include/confdefs.h $(PROJECT_INCLUDE)/$(dirstamp)
51        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/confdefs.h
52PREINSTALL_FILES += $(PROJECT_INCLUDE)/confdefs.h
53
54$(PROJECT_INCLUDE)/rtems/$(dirstamp):
55        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems
56        @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp)
57
58$(PROJECT_INCLUDE)/rtems/config.h: include/rtems/config.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
59        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/config.h
60PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/config.h
61
62$(PROJECT_INCLUDE)/rtems/extension.h: include/rtems/extension.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
63        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.h
64PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.h
65
66$(PROJECT_INCLUDE)/rtems/fatal.h: include/rtems/fatal.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
67        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fatal.h
68PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fatal.h
69
70$(PROJECT_INCLUDE)/rtems/init.h: include/rtems/init.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
71        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/init.h
72PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/init.h
73
74$(PROJECT_INCLUDE)/rtems/io.h: include/rtems/io.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
75        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/io.h
76PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/io.h
77
78$(PROJECT_INCLUDE)/rtems/mptables.h: include/rtems/mptables.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
79        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/mptables.h
80PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mptables.h
81
82$(PROJECT_INCLUDE)/rtems/sptables.h: include/rtems/sptables.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
83        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/sptables.h
84PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/sptables.h
85
86if INLINE
87$(PROJECT_INCLUDE)/rtems/extension.inl: inline/rtems/extension.inl $(PROJECT_INCLUDE)/rtems/$(dirstamp)
88        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.inl
89PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl
90
91else
92$(PROJECT_INCLUDE)/rtems/extension.inl: macros/rtems/extension.inl $(PROJECT_INCLUDE)/rtems/$(dirstamp)
93        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.inl
94PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl
95endif
96
97include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.