[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 | $(PROJECT_INCLUDE): |
---|
| 10 | @$(mkinstalldirs) $@ |
---|
| 11 | $(PROJECT_INCLUDE)/rtems: |
---|
| 12 | @$(mkinstalldirs) $@ |
---|
| 13 | |
---|
| 14 | $(PROJECT_INCLUDE)/%.h: include/%.h |
---|
| 15 | $(INSTALL_DATA) $< $@ |
---|
| 16 | $(PROJECT_INCLUDE)/%.inl: $(INLINEdir)/%.inl |
---|
| 17 | $(INSTALL_DATA) $< $@ |
---|
| 18 | |
---|
| 19 | include_HEADERS = include/confdefs.h |
---|
| 20 | |
---|
| 21 | PREINSTALL_FILES = $(PROJECT_INCLUDE) |
---|
| 22 | PREINSTALL_FILES += $(include_HEADERS:include/%=$(PROJECT_INCLUDE)/%) |
---|
| 23 | |
---|
| 24 | include_rtemsdir = $(includedir)/rtems |
---|
| 25 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems |
---|
| 26 | |
---|
| 27 | include_rtems_HEADERS = include/rtems/config.h include/rtems/extension.h \ |
---|
| 28 | include/rtems/fatal.h \ |
---|
| 29 | include/rtems/init.h include/rtems/io.h include/rtems/mptables.h \ |
---|
| 30 | include/rtems/sptables.h |
---|
| 31 | |
---|
| 32 | PREINSTALL_FILES += $(include_rtems_HEADERS:include/%=$(PROJECT_INCLUDE)/%) |
---|
| 33 | |
---|
| 34 | EXTRA_DIST = include/rtems/README |
---|
| 35 | |
---|
| 36 | ## inline |
---|
| 37 | |
---|
| 38 | inline_H_FILES = inline/rtems/extension.inl |
---|
| 39 | noinst_HEADERS = $(inline_H_FILES) |
---|
| 40 | |
---|
| 41 | if INLINE |
---|
| 42 | PREINSTALL_FILES += $(inline_H_FILES:inline/%=$(PROJECT_INCLUDE)/%) |
---|
| 43 | include_rtems_HEADERS += $(inline_H_FILES) |
---|
| 44 | endif |
---|
| 45 | |
---|
| 46 | ## macros |
---|
| 47 | macros_H_FILES = macros/rtems/extension.inl |
---|
| 48 | noinst_HEADERS += $(macros_H_FILES) |
---|
| 49 | |
---|
| 50 | if MACROS |
---|
| 51 | PREINSTALL_FILES += $(macros_H_FILES:macros/%=$(PROJECT_INCLUDE)/%) |
---|
| 52 | include_rtems_HEADERS += $(macros_H_FILES) |
---|
| 53 | endif |
---|
| 54 | |
---|
| 55 | ## src |
---|
| 56 | |
---|
| 57 | LIB=$(ARCH)/libsapi.a |
---|
| 58 | |
---|
| 59 | EXTENSION_FILES = src/extension.c src/extensioncreate.c src/extensiondelete.c \ |
---|
| 60 | src/extensionident.c |
---|
| 61 | C_FILES = src/debug.c $(EXTENSION_FILES) src/fatal.c src/exinit.c src/io.c \ |
---|
| 62 | src/itronapi.c src/posixapi.c src/rtemsapi.c |
---|
| 63 | OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT)) |
---|
| 64 | |
---|
| 65 | # |
---|
| 66 | # Add local stuff here using += |
---|
| 67 | # |
---|
| 68 | |
---|
| 69 | AM_CPPFLAGS += -D__RTEMS_INSIDE__ |
---|
| 70 | |
---|
| 71 | all-local: $(PREINSTALL_FILES) ${ARCH} $(LIB) |
---|
| 72 | |
---|
| 73 | $(LIB): ${OBJS} |
---|
| 74 | $(make-library) |
---|
| 75 | |
---|
| 76 | ${ARCH}/%.$(OBJEXT): src/%.c |
---|
| 77 | ${COMPILE} -o $@ -c $< |
---|
| 78 | |
---|
| 79 | EXTRA_DIST += $(C_FILES) |
---|
[e1d8abb] | 80 | |
---|
[fed6210d] | 81 | include $(top_srcdir)/automake/local.am |
---|