[811804fe] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
[e1d8abb] | 4 | |
---|
[f117cafc] | 5 | include $(top_srcdir)/automake/multilib.am |
---|
| 6 | include $(top_srcdir)/automake/compile.am |
---|
| 7 | include $(top_srcdir)/automake/lib.am |
---|
[e1d8abb] | 8 | |
---|
[f117cafc] | 9 | include_HEADERS = include/confdefs.h |
---|
| 10 | |
---|
| 11 | include_rtemsdir = $(includedir)/rtems |
---|
| 12 | |
---|
| 13 | include_rtems_HEADERS = include/rtems/config.h include/rtems/extension.h \ |
---|
[8b273c2] | 14 | include/rtems/fatal.h include/rtems/init.h include/rtems/io.h \ |
---|
| 15 | include/rtems/mptables.h include/rtems/sptables.h |
---|
[f117cafc] | 16 | |
---|
| 17 | EXTRA_DIST = include/rtems/README |
---|
| 18 | |
---|
| 19 | if INLINE |
---|
[8b273c2] | 20 | include_rtems_HEADERS += inline/rtems/extension.inl |
---|
[8a61c2a] | 21 | else |
---|
[8b273c2] | 22 | include_rtems_HEADERS += macros/rtems/extension.inl |
---|
[f117cafc] | 23 | endif |
---|
| 24 | |
---|
| 25 | ## src |
---|
| 26 | |
---|
| 27 | LIB=$(ARCH)/libsapi.a |
---|
| 28 | |
---|
[8b273c2] | 29 | EXTENSION_FILES = src/extension.c src/extensioncreate.c \ |
---|
| 30 | src/extensiondelete.c src/extensionident.c |
---|
[f117cafc] | 31 | C_FILES = src/debug.c $(EXTENSION_FILES) src/fatal.c src/exinit.c src/io.c \ |
---|
| 32 | src/itronapi.c src/posixapi.c src/rtemsapi.c |
---|
| 33 | OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT)) |
---|
| 34 | |
---|
| 35 | # |
---|
| 36 | # Add local stuff here using += |
---|
| 37 | # |
---|
| 38 | |
---|
| 39 | AM_CPPFLAGS += -D__RTEMS_INSIDE__ |
---|
| 40 | |
---|
| 41 | all-local: $(PREINSTALL_FILES) ${ARCH} $(LIB) |
---|
| 42 | |
---|
| 43 | $(LIB): ${OBJS} |
---|
| 44 | $(make-library) |
---|
| 45 | |
---|
| 46 | ${ARCH}/%.$(OBJEXT): src/%.c |
---|
| 47 | ${COMPILE} -o $@ -c $< |
---|
| 48 | |
---|
| 49 | EXTRA_DIST += $(C_FILES) |
---|
[e1d8abb] | 50 | |
---|
[8b273c2] | 51 | PREINSTALL_FILES = |
---|
| 52 | |
---|
[8a61c2a] | 53 | $(PROJECT_INCLUDE)/$(dirstamp): |
---|
| 54 | @$(mkinstalldirs) $(PROJECT_INCLUDE) |
---|
| 55 | @: > $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 56 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 57 | |
---|
| 58 | $(PROJECT_INCLUDE)/confdefs.h: include/confdefs.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 59 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/confdefs.h |
---|
[8b273c2] | 60 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/confdefs.h |
---|
| 61 | |
---|
[8a61c2a] | 62 | $(PROJECT_INCLUDE)/rtems/$(dirstamp): |
---|
[8b273c2] | 63 | @$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems |
---|
[8a61c2a] | 64 | @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
| 65 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
[8b273c2] | 66 | |
---|
[8a61c2a] | 67 | $(PROJECT_INCLUDE)/rtems/config.h: include/rtems/config.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
| 68 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/config.h |
---|
[8b273c2] | 69 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/config.h |
---|
| 70 | |
---|
[8a61c2a] | 71 | $(PROJECT_INCLUDE)/rtems/extension.h: include/rtems/extension.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
| 72 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.h |
---|
[8b273c2] | 73 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.h |
---|
| 74 | |
---|
[8a61c2a] | 75 | $(PROJECT_INCLUDE)/rtems/fatal.h: include/rtems/fatal.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
| 76 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fatal.h |
---|
[8b273c2] | 77 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fatal.h |
---|
| 78 | |
---|
[8a61c2a] | 79 | $(PROJECT_INCLUDE)/rtems/init.h: include/rtems/init.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
| 80 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/init.h |
---|
[8b273c2] | 81 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/init.h |
---|
| 82 | |
---|
[8a61c2a] | 83 | $(PROJECT_INCLUDE)/rtems/io.h: include/rtems/io.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
| 84 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/io.h |
---|
[8b273c2] | 85 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/io.h |
---|
| 86 | |
---|
[8a61c2a] | 87 | $(PROJECT_INCLUDE)/rtems/mptables.h: include/rtems/mptables.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
| 88 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/mptables.h |
---|
[8b273c2] | 89 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mptables.h |
---|
| 90 | |
---|
[8a61c2a] | 91 | $(PROJECT_INCLUDE)/rtems/sptables.h: include/rtems/sptables.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
| 92 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/sptables.h |
---|
[8b273c2] | 93 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/sptables.h |
---|
| 94 | |
---|
| 95 | if INLINE |
---|
[8a61c2a] | 96 | $(PROJECT_INCLUDE)/rtems/extension.inl: inline/rtems/extension.inl $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
| 97 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.inl |
---|
[8b273c2] | 98 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl |
---|
| 99 | |
---|
[8a61c2a] | 100 | else |
---|
| 101 | $(PROJECT_INCLUDE)/rtems/extension.inl: macros/rtems/extension.inl $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
| 102 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.inl |
---|
[8b273c2] | 103 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl |
---|
| 104 | endif |
---|
| 105 | |
---|
[fed6210d] | 106 | include $(top_srcdir)/automake/local.am |
---|