1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../aclocal |
---|
6 | |
---|
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 | if !HAS_NETWORKING |
---|
60 | NETWORKING_H_FILES = include/sys/ioctl.h |
---|
61 | endif |
---|
62 | |
---|
63 | if NEWLIB |
---|
64 | NEWLIB_H_FILES = include/sys/termios.h include/sys/cdefs.h include/sys/utsname.h |
---|
65 | endif |
---|
66 | |
---|
67 | include_sys_HEADERS = \ |
---|
68 | include/sys/ioccom.h \ |
---|
69 | include/sys/ttycom.h \ |
---|
70 | include/sys/utime.h \ |
---|
71 | $(NEWLIB_H_FILES) $(NETWORKING_H_FILES) |
---|
72 | |
---|
73 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys \ |
---|
74 | $(include_sys_HEADERS:include/%=$(PROJECT_INCLUDE)/%) |
---|
75 | |
---|
76 | ## zilog |
---|
77 | |
---|
78 | include_zilogdir = $(includedir)/zilog |
---|
79 | |
---|
80 | include_zilog_HEADERS = include/zilog/z8036.h include/zilog/z8530.h \ |
---|
81 | include/zilog/z8536.h |
---|
82 | |
---|
83 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog \ |
---|
84 | $(include_zilog_HEADERS:include/%=$(PROJECT_INCLUDE)/%) |
---|
85 | |
---|
86 | ## General stuff |
---|
87 | all-local: $(PREINSTALL_FILES) |
---|
88 | |
---|
89 | include $(top_srcdir)/../../../automake/subdirs.am |
---|
90 | include $(top_srcdir)/../../../automake/local.am |
---|