summaryrefslogtreecommitdiffstats
path: root/c/src/lib/include/Makefile.am
blob: 23cae460d036e25021bf564c86ef8ddea23e4fe2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
##
## $Id$
##


include_HEADERS = chain.h console.h clockdrv.h iosupp.h ringbuf.h rtc.h \
    spurious.h timerdrv.h vmeintr.h

LIBC_HFILES = stdint.h inttypes.h
include_HEADERS += $(LIBC_HFILES)

PREINSTALL_FILES = $(PROJECT_INCLUDE) \
    $(include_HEADERS:%=$(PROJECT_INCLUDE)/%)

$(PROJECT_INCLUDE):
	@$(mkinstalldirs) $@
$(PROJECT_INCLUDE)/motorola:
	@$(mkinstalldirs) $@
$(PROJECT_INCLUDE)/rtems:
	@$(mkinstalldirs) $@
$(PROJECT_INCLUDE)/sys:
	@$(mkinstalldirs) $@
$(PROJECT_INCLUDE)/zilog:
	@$(mkinstalldirs) $@

$(PROJECT_INCLUDE)/%.h: %.h
	$(INSTALL_DATA) $< $@

## motorola

include_motoroladir = $(includedir)/motorola

include_motorola_HEADERS = motorola/mc68230.h motorola/mc68681.h

PREINSTALL_FILES += $(PROJECT_INCLUDE)/motorola \
    $(include_motorola_HEADERS:%=$(PROJECT_INCLUDE)/%)

## rtems
include_rtemsdir = $(includedir)/rtems

include_rtems_HEADERS = \
    rtems/assoc.h rtems/error.h rtems/libcsupport.h rtems/libio.h rtems/libio_.h \
    rtems/termiostypes.h

PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems \
    $(include_rtems_HEADERS:%=$(PROJECT_INCLUDE)/%)

## sys

include_sysdir = $(includedir)/sys

if !HAS_NETWORKING
NETWORKING_H_FILES = sys/ioctl.h
endif

if NEWLIB
NEWLIB_H_FILES = sys/termios.h sys/cdefs.h
endif

include_sys_HEADERS = \
sys/ioccom.h \
sys/ttycom.h \
sys/utime.h \
$(NEWLIB_H_FILES) $(NETWORKING_H_FILES)

PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys \
    $(include_sys_HEADERS:%=$(PROJECT_INCLUDE)/%)

## zilog

include_zilogdir = $(includedir)/zilog

include_zilog_HEADERS = zilog/z8036.h zilog/z8530.h zilog/z8536.h

PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog \
    $(include_zilog_HEADERS:%=$(PROJECT_INCLUDE)/%)

##  General stuff
all-local: $(PREINSTALL_FILES)

include $(top_srcdir)/../../../automake/local.am