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

4.104.114.84.9
Last change on this file since 9a4b31f was 9a4b31f, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 19, 2004 at 9:57:02 AM

2004-10-19 Ralf Corsepius <ralf_corsepius@…>

  • libchip/Makefile.am: Reflect addtion of rtc/mc146818*.
  • Property mode set to 100644
File size: 9.8 KB
Line 
1##
2##  $Id$
3##
4
5include $(top_srcdir)/automake/compile.am
6
7noinst_DATA =
8
9if LIBCHIP
10include_libchipdir = $(includedir)/libchip
11include_libchip_HEADERS =
12endif
13
14EXTRA_DIST =
15EXTRA_LIBRARIES =
16EXTRA_PROGRAMS =
17CLEANFILES =
18
19# ide
20if LIBCHIP
21include_libchip_HEADERS += ide/ata.h ide/ide_ctrl_cfg.h ide/ide_ctrl.h \
22    ide/ide_ctrl_io.h
23
24EXTRA_LIBRARIES += libide.a
25CLEANFILES += libide.a
26libide_a_SOURCES = ide/ata.c ide/ide_controller.c ide/ata_internal.h
27libide_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
28
29EXTRA_LIBRARIES += libide_g.a
30CLEANFILES += libide_g.a
31libide_g_a_SOURCES = $(libide_a_SOURCES)
32libide_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
33
34noinst_DATA += libide$(LIB_VARIANT).a
35endif
36
37# network
38if LIBCHIP
39if HAS_NETWORKING
40include_libchip_HEADERS += network/cs8900.h network/i82586var.h \
41    network/if_fxpvar.h network/sonic.h network/if_media.h network/mii.h \
42    network/open_eth.h
43
44libnetchip_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
45EXTRA_LIBRARIES += libnetchip.a
46CLEANFILES += libnetchip.a
47libnetchip_a_SOURCES = network/cs8900.c network/dec21140.c network/i82586.c \
48    network/sonic.c network/if_fxp.c network/elnk.c network/open_eth.c
49libnetchip_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) \
50    $(libnetchip_CPPFLAGS)
51
52EXTRA_LIBRARIES += libnetchip_g.a
53CLEANFILES += libnetchip_g.a
54libnetchip_g_a_SOURCES = $(libnetchip_a_SOURCES)
55libnetchip_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) \
56    $(libnetchip_CPPFLAGS)
57
58# FIXME: Why is this lib installed?
59project_lib_DATA = libnetchip$(LIB_VARIANT).a
60endif
61endif
62
63EXTRA_DIST += network/README network/README.cs8900 network/README.dec21140 \
64    network/README.i82586 network/README.open_eth network/README.sonic \
65    network/cs8900.c.bsp
66
67# rtc
68if LIBCHIP
69include_libchip_HEADERS += rtc/rtc.h rtc/icm7170.h rtc/m48t08.h \
70    rtc/mc146818a.h
71
72EXTRA_LIBRARIES += librtcio.a
73CLEANFILES += librtcio.a
74librtcio_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
75librtcio_a_SOURCES = rtc/rtcprobe.c rtc/icm7170.c rtc/icm7170_reg.c \
76    rtc/icm7170_reg2.c rtc/icm7170_reg4.c rtc/icm7170_reg8.c rtc/m48t08.c \
77    rtc/m48t08_reg.c rtc/m48t08_reg2.c rtc/m48t08_reg4.c rtc/m48t08_reg8.c \
78    rtc/mc146818a.c rtc/mc146818a_ioreg.c
79
80EXTRA_LIBRARIES += librtcio_g.a
81CLEANFILES += librtcio_g.a
82librtcio_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
83librtcio_g_a_SOURCES = $(librtcio_a_SOURCES)
84
85noinst_DATA += librtcio$(LIB_VARIANT).a
86endif
87
88EXTRA_DIST += rtc/README.ds1643 rtc/README.icm7170 rtc/README.m48t08 \
89    rtc/README.m48t18 rtc/STATUS
90
91# serial
92if LIBCHIP
93include_libchip_HEADERS += serial/mc68681.h serial/ns16550.h serial/z85c30.h \
94    serial/serial.h serial/sersupp.h
95
96EXTRA_LIBRARIES += libserialio.a
97CLEANFILES += libserialio.a
98libserialio_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
99libserialio_a_SOURCES = serial/mc68681.c serial/mc68681_baud.c \
100    serial/mc68681_reg.c serial/mc68681_reg2.c serial/mc68681_reg4.c \
101    serial/mc68681_reg8.c serial/ns16550.c serial/z85c30.c \
102    serial/z85c30_reg.c serial/serprobe.c serial/termios_baud2index.c \
103    serial/termios_baud2num.c serial/mc68681_p.h serial/ns16550_p.h \
104    serial/z85c30_p.h
105
106EXTRA_LIBRARIES += libserialio_g.a
107CLEANFILES += libserialio_g.a
108libserialio_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
109libserialio_g_a_SOURCES = $(libserialio_a_SOURCES)
110
111noinst_DATA += libserialio$(LIB_VARIANT).a
112endif
113
114EXTRA_DIST += serial/README.mc68681 serial/README.ns16550 \
115    serial/README.xr88681 serial/README.z85c30 serial/STATUS
116
117## shmdr
118if HAS_MP
119include_HEADERS = shmdr/shm_driver.h shmdr/mpci.h
120
121EXTRA_PROGRAMS += shmdr.rel
122CLEANFILES += shmdr.rel
123shmdr_rel_SOURCES = shmdr/addlq.c shmdr/cnvpkt.c shmdr/getlq.c shmdr/dump.c \
124    shmdr/fatal.c shmdr/getpkt.c shmdr/init.c shmdr/initlq.c shmdr/intr.c \
125    shmdr/mpisr.c shmdr/poll.c shmdr/receive.c shmdr/retpkt.c shmdr/send.c \
126    shmdr/setckvec.c
127shmdr_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
128shmdr_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
129
130EXTRA_PROGRAMS += shmdr_g.rel
131CLEANFILES += shmdr_g.rel
132shmdr_g_rel_SOURCES = $(no_shmdr_rel_SOURCES)
133shmdr_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
134shmdr_g_rel_LDFLAGS = $(RTEMS_REL_LDFLAGS)
135
136project_lib_DATA = shmdr$(LIB_VARIANT).rel
137endif
138
139EXTRA_DIST += shmdr/README
140
141## --
142
143all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
144
145PREINSTALL_DIRS =
146PREINSTALL_FILES =
147TMPINSTALL_FILES =
148
149$(PROJECT_INCLUDE)/$(dirstamp):
150        @$(mkdir_p) $(PROJECT_INCLUDE)
151        @: > $(PROJECT_INCLUDE)/$(dirstamp)
152PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
153
154$(PROJECT_LIB)/$(dirstamp):
155        @$(mkdir_p) $(PROJECT_LIB)
156        @: > $(PROJECT_LIB)/$(dirstamp)
157TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
158
159if LIBCHIP
160$(PROJECT_INCLUDE)/libchip/$(dirstamp):
161        @$(mkdir_p) $(PROJECT_INCLUDE)/libchip
162        @: > $(PROJECT_INCLUDE)/libchip/$(dirstamp)
163PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libchip/$(dirstamp)
164endif
165
166if LIBCHIP
167$(PROJECT_INCLUDE)/libchip/ata.h: ide/ata.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
168        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ata.h
169PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ata.h
170
171$(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h: ide/ide_ctrl_cfg.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
172        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h
173PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h
174
175$(PROJECT_INCLUDE)/libchip/ide_ctrl.h: ide/ide_ctrl.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
176        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl.h
177PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl.h
178
179$(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h: ide/ide_ctrl_io.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
180        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h
181PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h
182endif
183
184if LIBCHIP
185if HAS_NETWORKING
186$(PROJECT_INCLUDE)/libchip/cs8900.h: network/cs8900.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
187        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/cs8900.h
188PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/cs8900.h
189
190$(PROJECT_INCLUDE)/libchip/i82586var.h: network/i82586var.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
191        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/i82586var.h
192PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/i82586var.h
193
194$(PROJECT_INCLUDE)/libchip/if_fxpvar.h: network/if_fxpvar.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
195        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/if_fxpvar.h
196PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/if_fxpvar.h
197
198$(PROJECT_INCLUDE)/libchip/sonic.h: network/sonic.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
199        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/sonic.h
200PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/sonic.h
201
202$(PROJECT_INCLUDE)/libchip/if_media.h: network/if_media.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
203        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/if_media.h
204PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/if_media.h
205
206$(PROJECT_INCLUDE)/libchip/mii.h: network/mii.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
207        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/mii.h
208PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/mii.h
209
210$(PROJECT_INCLUDE)/libchip/open_eth.h: network/open_eth.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
211        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/open_eth.h
212PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/open_eth.h
213
214$(PROJECT_LIB)/libnetchip$(LIB_VARIANT).a: libnetchip$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
215        $(INSTALL_DATA) $< $(PROJECT_LIB)/libnetchip$(LIB_VARIANT).a
216TMPINSTALL_FILES += $(PROJECT_LIB)/libnetchip$(LIB_VARIANT).a
217endif
218endif
219
220if LIBCHIP
221$(PROJECT_INCLUDE)/libchip/rtc.h: rtc/rtc.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
222        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/rtc.h
223PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/rtc.h
224
225$(PROJECT_INCLUDE)/libchip/icm7170.h: rtc/icm7170.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
226        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/icm7170.h
227PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/icm7170.h
228
229$(PROJECT_INCLUDE)/libchip/m48t08.h: rtc/m48t08.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
230        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/m48t08.h
231PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/m48t08.h
232
233$(PROJECT_INCLUDE)/libchip/mc146818a.h: rtc/mc146818a.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
234        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/mc146818a.h
235PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/mc146818a.h
236endif
237
238if LIBCHIP
239$(PROJECT_INCLUDE)/libchip/mc68681.h: serial/mc68681.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
240        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/mc68681.h
241PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/mc68681.h
242
243$(PROJECT_INCLUDE)/libchip/ns16550.h: serial/ns16550.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
244        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ns16550.h
245PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ns16550.h
246
247$(PROJECT_INCLUDE)/libchip/z85c30.h: serial/z85c30.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
248        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/z85c30.h
249PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/z85c30.h
250
251$(PROJECT_INCLUDE)/libchip/serial.h: serial/serial.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
252        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/serial.h
253PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/serial.h
254
255$(PROJECT_INCLUDE)/libchip/sersupp.h: serial/sersupp.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
256        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/sersupp.h
257PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/sersupp.h
258endif
259
260if HAS_MP
261$(PROJECT_INCLUDE)/shm_driver.h: shmdr/shm_driver.h $(PROJECT_INCLUDE)/$(dirstamp)
262        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/shm_driver.h
263PREINSTALL_FILES += $(PROJECT_INCLUDE)/shm_driver.h
264
265$(PROJECT_INCLUDE)/mpci.h: shmdr/mpci.h $(PROJECT_INCLUDE)/$(dirstamp)
266        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpci.h
267PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpci.h
268
269$(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel: shmdr$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
270        $(INSTALL_DATA) $< $(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel
271TMPINSTALL_FILES += $(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel
272endif
273
274CLEANFILES += $(PREINSTALL_FILES)
275DISTCLEANFILES = $(PREINSTALL_DIRS)
276CLEANFILES += $(TMPINSTALL_FILES)
277
278include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.