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