source: rtems/c/src/libchip/Makefile.am @ 5e5cf07

4.104.114.84.9
Last change on this file since 5e5cf07 was 5e5cf07, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 19, 2004 at 6:08:15 AM

2004-02-19 Ralf Corsepius <corsepiu@…>

  • libchip/Makefile.am, librdbg/Makefile.am, optman/Makefile.am: Preinstall dirs.
  • wrapup/Makefile.am: Preinstall dirs. Cosmetics.
  • aclocal/check-multiprocessing.m4: Cosmetics.
  • aclocal/env-rtemsbsp.m4: Remove RTEMS_ROOT.
  • aclocal/project-root.m4: Remove obsolete comments. Remove PACKHEX.
  • Property mode set to 100644
File size: 9.6 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
71EXTRA_LIBRARIES += librtcio.a
72CLEANFILES += librtcio.a
73librtcio_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
74librtcio_a_SOURCES = rtc/rtcprobe.c rtc/icm7170.c rtc/icm7170_reg.c \
75    rtc/icm7170_reg2.c rtc/icm7170_reg4.c rtc/icm7170_reg8.c rtc/m48t08.c \
76    rtc/m48t08_reg.c rtc/m48t08_reg2.c rtc/m48t08_reg4.c rtc/m48t08_reg8.c
77
78EXTRA_LIBRARIES += librtcio_g.a
79CLEANFILES += librtcio_g.a
80librtcio_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
81librtcio_g_a_SOURCES = $(librtcio_a_SOURCES)
82
83noinst_DATA += librtcio$(LIB_VARIANT).a
84endif
85
86EXTRA_DIST += rtc/README.ds1643 rtc/README.icm7170 rtc/README.m48t08 \
87    rtc/README.m48t18 rtc/STATUS
88
89# serial
90if LIBCHIP
91include_libchip_HEADERS += serial/mc68681.h serial/ns16550.h serial/z85c30.h \
92    serial/serial.h serial/sersupp.h
93
94EXTRA_LIBRARIES += libserialio.a
95CLEANFILES += libserialio.a
96libserialio_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
97libserialio_a_SOURCES = serial/mc68681.c serial/mc68681_baud.c \
98    serial/mc68681_reg.c serial/mc68681_reg2.c serial/mc68681_reg4.c \
99    serial/mc68681_reg8.c serial/ns16550.c serial/z85c30.c \
100    serial/z85c30_reg.c serial/serprobe.c serial/termios_baud2index.c \
101    serial/termios_baud2num.c serial/mc68681_p.h serial/ns16550_p.h \
102    serial/z85c30_p.h
103
104EXTRA_LIBRARIES += libserialio_g.a
105CLEANFILES += libserialio_g.a
106libserialio_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
107libserialio_g_a_SOURCES = $(libserialio_a_SOURCES)
108
109noinst_DATA += libserialio$(LIB_VARIANT).a
110endif
111
112EXTRA_DIST += serial/README.mc68681 serial/README.ns16550 \
113    serial/README.xr88681 serial/README.z85c30 serial/STATUS
114
115## shmdr
116if HAS_MP
117include_HEADERS = shmdr/shm_driver.h shmdr/mpci.h
118
119EXTRA_PROGRAMS += shmdr.rel
120CLEANFILES += shmdr.rel
121shmdr_rel_SOURCES = shmdr/addlq.c shmdr/cnvpkt.c shmdr/getlq.c shmdr/dump.c \
122    shmdr/fatal.c shmdr/getpkt.c shmdr/init.c shmdr/initlq.c shmdr/intr.c \
123    shmdr/mpisr.c shmdr/poll.c shmdr/receive.c shmdr/retpkt.c shmdr/send.c \
124    shmdr/setckvec.c
125shmdr_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
126shmdr_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
127
128EXTRA_PROGRAMS += shmdr_g.rel
129CLEANFILES += shmdr_g.rel
130shmdr_g_rel_SOURCES = $(no_shmdr_rel_SOURCES)
131shmdr_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
132shmdr_g_rel_LDFLAGS = $(RTEMS_REL_LDFLAGS)
133
134project_lib_DATA = shmdr$(LIB_VARIANT).rel
135endif
136
137EXTRA_DIST += shmdr/README
138
139## --
140
141all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
142
143PREINSTALL_DIRS =
144PREINSTALL_FILES =
145TMPINSTALL_FILES =
146
147$(PROJECT_INCLUDE)/$(dirstamp):
148        @$(mkdir_p) $(PROJECT_INCLUDE)
149        @: > $(PROJECT_INCLUDE)/$(dirstamp)
150PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
151
152$(PROJECT_LIB)/$(dirstamp):
153        @$(mkdir_p) $(PROJECT_LIB)
154        @: > $(PROJECT_LIB)/$(dirstamp)
155PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
156
157if LIBCHIP
158$(PROJECT_INCLUDE)/libchip/$(dirstamp):
159        @$(mkdir_p) $(PROJECT_INCLUDE)/libchip
160        @: > $(PROJECT_INCLUDE)/libchip/$(dirstamp)
161PREINSTALL_DIRS += $(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)
269DISTCLEANFILES = $(PREINSTALL_DIRS)
270CLEANFILES += $(TMPINSTALL_FILES)
271
272include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.