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