source: rtems/c/src/libchip/Makefile.am @ f3fdc59

4.104.114.84.9
Last change on this file since f3fdc59 was f3fdc59, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 15, 2004 at 4:20:34 AM

2004-01-15 Ralf Corsepius <corsepiu@…>

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