source: rtems/c/src/libchip/Makefile.am @ 9d83387b

4.104.114.84.9
Last change on this file since 9d83387b was 9d83387b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 28, 2005 at 3:02:15 AM

Cosmetics.

  • Property mode set to 100644
File size: 8.1 KB
Line 
1##
2##  $Id$
3##
4
5include $(top_srcdir)/automake/compile.am
6
7if LIBCHIP
8include_libchipdir = $(includedir)/libchip
9include_libchip_HEADERS =
10endif
11
12EXTRA_DIST =
13noinst_LIBRARIES =
14noinst_PROGRAMS =
15
16# ide
17if LIBCHIP
18include_libchip_HEADERS += ide/ata.h ide/ide_ctrl_cfg.h ide/ide_ctrl.h \
19    ide/ide_ctrl_io.h
20
21noinst_LIBRARIES += libide.a
22libide_a_SOURCES = ide/ata.c ide/ide_controller.c ide/ata_internal.h
23libide_a_CPPFLAGS = $(AM_CPPFLAGS)
24endif
25
26# network
27if LIBCHIP
28if HAS_NETWORKING
29include_libchip_HEADERS += network/cs8900.h network/i82586var.h \
30    network/if_fxpvar.h network/sonic.h network/if_media.h network/mii.h \
31    network/open_eth.h
32
33libnetchip_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
34noinst_LIBRARIES += libnetchip.a
35libnetchip_a_SOURCES = network/cs8900.c network/dec21140.c network/i82586.c \
36    network/sonic.c network/if_fxp.c network/elnk.c network/open_eth.c
37libnetchip_a_CPPFLAGS = $(AM_CPPFLAGS) $(libnetchip_CPPFLAGS)
38endif
39endif
40
41EXTRA_DIST += network/README network/README.cs8900 network/README.dec21140 \
42    network/README.i82586 network/README.open_eth network/README.sonic \
43    network/cs8900.c.bsp
44
45# rtc
46if LIBCHIP
47include_libchip_HEADERS += rtc/rtc.h rtc/icm7170.h rtc/m48t08.h \
48    rtc/mc146818a.h
49
50noinst_LIBRARIES += librtcio.a
51librtcio_a_CPPFLAGS = $(AM_CPPFLAGS)
52librtcio_a_SOURCES = rtc/rtcprobe.c rtc/icm7170.c rtc/icm7170_reg.c \
53    rtc/icm7170_reg2.c rtc/icm7170_reg4.c rtc/icm7170_reg8.c rtc/m48t08.c \
54    rtc/m48t08_reg.c rtc/m48t08_reg2.c rtc/m48t08_reg4.c rtc/m48t08_reg8.c \
55    rtc/mc146818a.c rtc/mc146818a_ioreg.c
56endif
57
58EXTRA_DIST += rtc/README.ds1643 rtc/README.icm7170 rtc/README.m48t08 \
59    rtc/README.m48t18 rtc/STATUS
60
61# serial
62if LIBCHIP
63include_libchip_HEADERS += serial/mc68681.h serial/ns16550.h serial/z85c30.h \
64    serial/serial.h serial/sersupp.h
65
66noinst_LIBRARIES += libserialio.a
67libserialio_a_CPPFLAGS = $(AM_CPPFLAGS)
68libserialio_a_SOURCES = serial/mc68681.c serial/mc68681_baud.c \
69    serial/mc68681_reg.c serial/mc68681_reg2.c serial/mc68681_reg4.c \
70    serial/mc68681_reg8.c serial/ns16550.c serial/z85c30.c \
71    serial/z85c30_reg.c serial/serprobe.c serial/termios_baud2index.c \
72    serial/termios_baud2num.c serial/mc68681_p.h serial/ns16550_p.h \
73    serial/z85c30_p.h
74endif
75
76EXTRA_DIST += serial/README.mc68681 serial/README.ns16550 \
77    serial/README.xr88681 serial/README.z85c30 serial/STATUS
78
79## shmdr
80if HAS_MP
81include_HEADERS = shmdr/shm_driver.h shmdr/mpci.h
82
83project_lib_PROGRAMS = shmdr.rel
84shmdr_rel_SOURCES = shmdr/addlq.c shmdr/cnvpkt.c shmdr/getlq.c shmdr/dump.c \
85    shmdr/fatal.c shmdr/getpkt.c shmdr/init.c shmdr/initlq.c shmdr/intr.c \
86    shmdr/mpisr.c shmdr/poll.c shmdr/receive.c shmdr/retpkt.c shmdr/send.c \
87    shmdr/setckvec.c
88shmdr_rel_CPPFLAGS = $(AM_CPPFLAGS)
89shmdr_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
90endif
91
92EXTRA_DIST += shmdr/README
93
94## --
95
96all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
97
98PREINSTALL_DIRS =
99PREINSTALL_FILES =
100TMPINSTALL_FILES =
101
102$(PROJECT_INCLUDE)/$(dirstamp):
103        @$(mkdir_p) $(PROJECT_INCLUDE)
104        @: > $(PROJECT_INCLUDE)/$(dirstamp)
105PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
106
107if LIBCHIP
108$(PROJECT_INCLUDE)/libchip/$(dirstamp):
109        @$(mkdir_p) $(PROJECT_INCLUDE)/libchip
110        @: > $(PROJECT_INCLUDE)/libchip/$(dirstamp)
111PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libchip/$(dirstamp)
112endif
113
114if LIBCHIP
115$(PROJECT_INCLUDE)/libchip/ata.h: ide/ata.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
116        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ata.h
117PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ata.h
118
119$(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h: ide/ide_ctrl_cfg.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
120        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h
121PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h
122
123$(PROJECT_INCLUDE)/libchip/ide_ctrl.h: ide/ide_ctrl.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
124        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl.h
125PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl.h
126
127$(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h: ide/ide_ctrl_io.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
128        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h
129PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h
130endif
131
132if LIBCHIP
133if HAS_NETWORKING
134$(PROJECT_INCLUDE)/libchip/cs8900.h: network/cs8900.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
135        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/cs8900.h
136PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/cs8900.h
137
138$(PROJECT_INCLUDE)/libchip/i82586var.h: network/i82586var.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
139        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/i82586var.h
140PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/i82586var.h
141
142$(PROJECT_INCLUDE)/libchip/if_fxpvar.h: network/if_fxpvar.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
143        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/if_fxpvar.h
144PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/if_fxpvar.h
145
146$(PROJECT_INCLUDE)/libchip/sonic.h: network/sonic.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
147        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/sonic.h
148PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/sonic.h
149
150$(PROJECT_INCLUDE)/libchip/if_media.h: network/if_media.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
151        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/if_media.h
152PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/if_media.h
153
154$(PROJECT_INCLUDE)/libchip/mii.h: network/mii.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
155        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/mii.h
156PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/mii.h
157
158$(PROJECT_INCLUDE)/libchip/open_eth.h: network/open_eth.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
159        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/open_eth.h
160PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/open_eth.h
161endif
162endif
163
164if LIBCHIP
165$(PROJECT_INCLUDE)/libchip/rtc.h: rtc/rtc.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
166        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/rtc.h
167PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/rtc.h
168
169$(PROJECT_INCLUDE)/libchip/icm7170.h: rtc/icm7170.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
170        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/icm7170.h
171PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/icm7170.h
172
173$(PROJECT_INCLUDE)/libchip/m48t08.h: rtc/m48t08.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
174        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/m48t08.h
175PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/m48t08.h
176
177$(PROJECT_INCLUDE)/libchip/mc146818a.h: rtc/mc146818a.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
178        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/mc146818a.h
179PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/mc146818a.h
180endif
181
182if LIBCHIP
183$(PROJECT_INCLUDE)/libchip/mc68681.h: serial/mc68681.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
184        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/mc68681.h
185PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/mc68681.h
186
187$(PROJECT_INCLUDE)/libchip/ns16550.h: serial/ns16550.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
188        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ns16550.h
189PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ns16550.h
190
191$(PROJECT_INCLUDE)/libchip/z85c30.h: serial/z85c30.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
192        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/z85c30.h
193PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/z85c30.h
194
195$(PROJECT_INCLUDE)/libchip/serial.h: serial/serial.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
196        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/serial.h
197PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/serial.h
198
199$(PROJECT_INCLUDE)/libchip/sersupp.h: serial/sersupp.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
200        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/sersupp.h
201PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/sersupp.h
202endif
203
204if HAS_MP
205$(PROJECT_INCLUDE)/shm_driver.h: shmdr/shm_driver.h $(PROJECT_INCLUDE)/$(dirstamp)
206        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/shm_driver.h
207PREINSTALL_FILES += $(PROJECT_INCLUDE)/shm_driver.h
208
209$(PROJECT_INCLUDE)/mpci.h: shmdr/mpci.h $(PROJECT_INCLUDE)/$(dirstamp)
210        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpci.h
211PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpci.h
212
213$(PROJECT_LIB)/shmdr.rel: shmdr.rel $(PROJECT_LIB)/$(dirstamp)
214        $(INSTALL_PROGRAM) $< $(PROJECT_LIB)/shmdr.rel
215TMPINSTALL_FILES += $(PROJECT_LIB)/shmdr.rel
216endif
217
218CLEANFILES = $(PREINSTALL_FILES)
219DISTCLEANFILES = $(PREINSTALL_DIRS)
220CLEANFILES += $(TMPINSTALL_FILES)
221
222include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.