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