[811804fe] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
[e1d8abb] | 4 | |
---|
[feead226] | 5 | ACLOCAL_AMFLAGS = -I ../../../aclocal |
---|
[e1d8abb] | 6 | |
---|
[deb66d1] | 7 | include $(top_srcdir)/../../../automake/multilib.am |
---|
| 8 | |
---|
| 9 | SUBDIRS = . libc |
---|
| 10 | |
---|
| 11 | include_HEADERS = include/chain.h include/console.h include/clockdrv.h \ |
---|
| 12 | include/iosupp.h include/ringbuf.h include/rtc.h \ |
---|
| 13 | include/spurious.h include/timerdrv.h include/vmeintr.h |
---|
| 14 | |
---|
| 15 | LIBC_HFILES = include/stdint.h include/inttypes.h |
---|
| 16 | include_HEADERS += $(LIBC_HFILES) |
---|
| 17 | |
---|
| 18 | PREINSTALL_FILES = $(PROJECT_INCLUDE) \ |
---|
| 19 | $(include_HEADERS:include/%=$(PROJECT_INCLUDE)/%) |
---|
| 20 | |
---|
| 21 | $(PROJECT_INCLUDE): |
---|
| 22 | @$(mkinstalldirs) $@ |
---|
| 23 | $(PROJECT_INCLUDE)/motorola: |
---|
| 24 | @$(mkinstalldirs) $@ |
---|
| 25 | $(PROJECT_INCLUDE)/rtems: |
---|
| 26 | @$(mkinstalldirs) $@ |
---|
| 27 | $(PROJECT_INCLUDE)/sys: |
---|
| 28 | @$(mkinstalldirs) $@ |
---|
| 29 | $(PROJECT_INCLUDE)/zilog: |
---|
| 30 | @$(mkinstalldirs) $@ |
---|
| 31 | |
---|
| 32 | $(PROJECT_INCLUDE)/%.h: include/%.h |
---|
| 33 | $(INSTALL_DATA) $< $@ |
---|
| 34 | |
---|
| 35 | ## motorola |
---|
| 36 | |
---|
| 37 | include_motoroladir = $(includedir)/motorola |
---|
| 38 | |
---|
| 39 | include_motorola_HEADERS = include/motorola/mc68230.h include/motorola/mc68681.h |
---|
| 40 | |
---|
| 41 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/motorola \ |
---|
| 42 | $(include_motorola_HEADERS:include/%=$(PROJECT_INCLUDE)/%) |
---|
| 43 | |
---|
| 44 | ## rtems |
---|
| 45 | include_rtemsdir = $(includedir)/rtems |
---|
| 46 | |
---|
| 47 | include_rtems_HEADERS = \ |
---|
| 48 | include/rtems/assoc.h include/rtems/error.h include/rtems/libcsupport.h \ |
---|
| 49 | include/rtems/libio.h include/rtems/libio_.h \ |
---|
| 50 | include/rtems/termiostypes.h |
---|
| 51 | |
---|
| 52 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems \ |
---|
| 53 | $(include_rtems_HEADERS:include/%=$(PROJECT_INCLUDE)/%) |
---|
| 54 | |
---|
| 55 | ## sys |
---|
| 56 | |
---|
| 57 | include_sysdir = $(includedir)/sys |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | if NEWLIB |
---|
| 61 | NEWLIB_H_FILES = include/sys/termios.h include/sys/cdefs.h include/sys/utsname.h |
---|
| 62 | endif |
---|
| 63 | |
---|
| 64 | include_sys_HEADERS = \ |
---|
[f85a3c56] | 65 | include/sys/filio.h \ |
---|
[deb66d1] | 66 | include/sys/ioccom.h \ |
---|
[f85a3c56] | 67 | include/sys/ioctl.h \ |
---|
| 68 | include/sys/sockio.h \ |
---|
| 69 | include/sys/termios.h \ |
---|
[deb66d1] | 70 | include/sys/ttycom.h \ |
---|
| 71 | include/sys/utime.h \ |
---|
[f85a3c56] | 72 | $(NEWLIB_H_FILES) |
---|
[deb66d1] | 73 | |
---|
| 74 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys \ |
---|
| 75 | $(include_sys_HEADERS:include/%=$(PROJECT_INCLUDE)/%) |
---|
| 76 | |
---|
| 77 | ## zilog |
---|
| 78 | |
---|
| 79 | include_zilogdir = $(includedir)/zilog |
---|
| 80 | |
---|
| 81 | include_zilog_HEADERS = include/zilog/z8036.h include/zilog/z8530.h \ |
---|
| 82 | include/zilog/z8536.h |
---|
| 83 | |
---|
| 84 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog \ |
---|
| 85 | $(include_zilog_HEADERS:include/%=$(PROJECT_INCLUDE)/%) |
---|
| 86 | |
---|
| 87 | ## General stuff |
---|
| 88 | all-local: $(PREINSTALL_FILES) |
---|
[e1d8abb] | 89 | |
---|
| 90 | include $(top_srcdir)/../../../automake/subdirs.am |
---|
| 91 | include $(top_srcdir)/../../../automake/local.am |
---|