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