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

4.104.114.84.9
Last change on this file since f3f9b55 was f3f9b55, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 21, 2004 at 3:39:38 PM

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

  • Makefile.am: Add PREINSTALL_DIRS.
  • Property mode set to 100644
File size: 9.6 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_RELLDFLAGS)
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_DIRS =
145PREINSTALL_FILES =
146TMPINSTALL_FILES =
147
148$(PROJECT_INCLUDE)/$(dirstamp):
149        @$(mkdir_p) $(PROJECT_INCLUDE)
150        @: > $(PROJECT_INCLUDE)/$(dirstamp)
151PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
152
153$(PROJECT_LIB)/$(dirstamp):
154        @$(mkdir_p) $(PROJECT_LIB)
155        @: > $(PROJECT_LIB)/$(dirstamp)
156TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
157
158if LIBCHIP
159$(PROJECT_INCLUDE)/libchip/$(dirstamp):
160        @$(mkdir_p) $(PROJECT_INCLUDE)/libchip
161        @: > $(PROJECT_INCLUDE)/libchip/$(dirstamp)
162PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libchip/$(dirstamp)
163endif
164
165if LIBCHIP
166$(PROJECT_INCLUDE)/libchip/ata.h: ide/ata.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
167        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ata.h
168PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ata.h
169
170$(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h: ide/ide_ctrl_cfg.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
171        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h
172PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h
173
174$(PROJECT_INCLUDE)/libchip/ide_ctrl.h: ide/ide_ctrl.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
175        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl.h
176PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl.h
177
178$(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h: ide/ide_ctrl_io.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
179        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h
180PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h
181endif
182
183if LIBCHIP
184if HAS_NETWORKING
185$(PROJECT_INCLUDE)/libchip/cs8900.h: network/cs8900.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
186        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/cs8900.h
187PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/cs8900.h
188
189$(PROJECT_INCLUDE)/libchip/i82586var.h: network/i82586var.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
190        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/i82586var.h
191PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/i82586var.h
192
193$(PROJECT_INCLUDE)/libchip/if_fxpvar.h: network/if_fxpvar.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
194        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/if_fxpvar.h
195PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/if_fxpvar.h
196
197$(PROJECT_INCLUDE)/libchip/sonic.h: network/sonic.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
198        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/sonic.h
199PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/sonic.h
200
201$(PROJECT_INCLUDE)/libchip/if_media.h: network/if_media.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
202        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/if_media.h
203PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/if_media.h
204
205$(PROJECT_INCLUDE)/libchip/mii.h: network/mii.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
206        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/mii.h
207PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/mii.h
208
209$(PROJECT_INCLUDE)/libchip/open_eth.h: network/open_eth.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
210        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/open_eth.h
211PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/open_eth.h
212
213$(PROJECT_LIB)/libnetchip$(LIB_VARIANT).a: libnetchip$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
214        $(INSTALL_DATA) $< $(PROJECT_LIB)/libnetchip$(LIB_VARIANT).a
215TMPINSTALL_FILES += $(PROJECT_LIB)/libnetchip$(LIB_VARIANT).a
216endif
217endif
218
219if LIBCHIP
220$(PROJECT_INCLUDE)/libchip/rtc.h: rtc/rtc.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
221        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/rtc.h
222PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/rtc.h
223
224$(PROJECT_INCLUDE)/libchip/icm7170.h: rtc/icm7170.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
225        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/icm7170.h
226PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/icm7170.h
227
228$(PROJECT_INCLUDE)/libchip/m48t08.h: rtc/m48t08.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
229        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/m48t08.h
230PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/m48t08.h
231endif
232
233if LIBCHIP
234$(PROJECT_INCLUDE)/libchip/mc68681.h: serial/mc68681.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
235        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/mc68681.h
236PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/mc68681.h
237
238$(PROJECT_INCLUDE)/libchip/ns16550.h: serial/ns16550.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
239        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ns16550.h
240PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ns16550.h
241
242$(PROJECT_INCLUDE)/libchip/z85c30.h: serial/z85c30.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
243        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/z85c30.h
244PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/z85c30.h
245
246$(PROJECT_INCLUDE)/libchip/serial.h: serial/serial.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
247        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/serial.h
248PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/serial.h
249
250$(PROJECT_INCLUDE)/libchip/sersupp.h: serial/sersupp.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
251        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/sersupp.h
252PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/sersupp.h
253endif
254
255if HAS_MP
256$(PROJECT_INCLUDE)/shm_driver.h: shmdr/shm_driver.h $(PROJECT_INCLUDE)/$(dirstamp)
257        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/shm_driver.h
258PREINSTALL_FILES += $(PROJECT_INCLUDE)/shm_driver.h
259
260$(PROJECT_INCLUDE)/mpci.h: shmdr/mpci.h $(PROJECT_INCLUDE)/$(dirstamp)
261        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpci.h
262PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpci.h
263
264$(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel: shmdr$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
265        $(INSTALL_DATA) $< $(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel
266TMPINSTALL_FILES += $(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel
267endif
268
269CLEANFILES += $(PREINSTALL_FILES)
270DISTCLEANFILES = $(PREINSTALL_DIRS)
271CLEANFILES += $(TMPINSTALL_FILES)
272
273include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.