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

4.104.114.84.9
Last change on this file since ab21e14 was ab21e14, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 18, 2003 at 10:52:51 PM

2003-12-18 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Add shmdr. Use noinst_DATA instead of TMP_LIBS.
  • Property mode set to 100644
File size: 9.7 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 =
16noinst_HEADERS =
17
18# ide
19libide_C_FILES = ide/ata.c ide/ide_controller.c
20libide_OBJS = $(libide_C_FILES:ide/%.c=ide/$(ARCH)/%.$(OBJEXT))
21
22noinst_HEADERS += ide/ata_internal.h
23
24if LIBCHIP
25include_libchip_HEADERS += ide/ata.h ide/ide_ctrl_cfg.h ide/ide_ctrl.h \
26    ide/ide_ctrl_io.h
27
28ide/$(ARCH)/$(dirstamp):
29        @$(mkdir_p) ide/$(ARCH)
30        @: > ide/$(ARCH)/$(dirstamp)
31ide/$(ARCH)/%.$(OBJEXT): ide/%.c ide/$(ARCH)/$(dirstamp)
32        ${COMPILE} -o $@ -c $<
33ide/$(ARCH)/libide.a: $(libide_OBJS)
34        $(make-library)
35noinst_DATA += ide/$(ARCH)/libide.a
36endif
37
38EXTRA_DIST += $(libide_C_FILES)
39
40# network
41
42libnetchip_C_FILES = network/cs8900.c network/dec21140.c network/i82586.c \
43    network/sonic.c network/if_fxp.c network/elnk.c network/open_eth.c
44libnetchip_OBJS = \
45    $(libnetchip_C_FILES:network/%.c=network/$(ARCH)/%.$(OBJEXT))
46
47libnetchip_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
48
49if LIBCHIP
50if HAS_NETWORKING
51include_libchip_HEADERS += network/cs8900.h network/i82586var.h \
52    network/if_fxpvar.h network/sonic.h network/if_media.h network/mii.h \
53    network/open_eth.h
54
55network/$(ARCH)/$(dirstamp):
56        @$(mkdir_p) network/$(ARCH)
57        @: > network/$(ARCH)/$(dirstamp)
58network/$(ARCH)/%.$(OBJEXT): network/%.c network/$(ARCH)/$(dirstamp)
59        ${COMPILE} $(libnetchip_CPPFLAGS) -o $@ -c $<
60network/$(ARCH)/libnetchip$(LIB_VARIANT).a: $(libnetchip_OBJS)
61        $(make-library)
62project_lib_DATA = network/$(ARCH)/libnetchip$(LIB_VARIANT).a
63endif
64endif
65
66libnetchip_DOC_FILES = network/README network/README.cs8900 \
67    network/README.dec21140 network/README.i82586 network/README.open_eth \
68    network/README.sonic network/cs8900.c.bsp
69
70EXTRA_DIST += $(libnetchip_C_FILES) $(libnetchip_DOC_FILES)
71
72# rtc
73librtcio_C_FILES = rtc/rtcprobe.c rtc/icm7170.c rtc/icm7170_reg.c \
74    rtc/icm7170_reg2.c rtc/icm7170_reg4.c rtc/icm7170_reg8.c rtc/m48t08.c \
75    rtc/m48t08_reg.c rtc/m48t08_reg2.c rtc/m48t08_reg4.c rtc/m48t08_reg8.c
76
77librtcio_OBJS = $(librtcio_C_FILES:rtc/%.c=rtc/$(ARCH)/%.$(OBJEXT))
78
79if LIBCHIP
80include_libchip_HEADERS += rtc/rtc.h rtc/icm7170.h rtc/m48t08.h
81
82rtc/$(ARCH)/$(dirstamp):
83        @$(mkdir_p) rtc/$(ARCH)
84        @: > rtc/$(ARCH)/$(dirstamp)
85rtc/$(ARCH)/%.$(OBJEXT): rtc/%.c rtc/$(ARCH)/$(dirstamp)
86        ${COMPILE} -o $@ -c $<
87rtc/$(ARCH)/librtcio.a: $(librtcio_OBJS)
88        $(make-library)
89noinst_DATA += rtc/$(ARCH)/librtcio.a
90endif
91
92librtcio_DOC_FILES = rtc/README.ds1643 rtc/README.icm7170 rtc/README.m48t08 \
93    rtc/README.m48t18 rtc/STATUS
94
95EXTRA_DIST += $(librtcio_C_FILES) $(librtcio_DOC_FILES)
96
97# serial
98libserialio_C_FILES = 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
103EXTRA_DIST += $(libserialio_C_FILES)
104libserialio_OBJS = \
105    $(libserialio_C_FILES:serial/%.c=serial/$(ARCH)/%.$(OBJEXT))
106
107noinst_HEADERS += serial/mc68681_p.h serial/ns16550_p.h serial/z85c30_p.h
108
109if LIBCHIP
110include_libchip_HEADERS += serial/mc68681.h serial/ns16550.h serial/z85c30.h \
111    serial/serial.h serial/sersupp.h
112
113serial/$(ARCH)/$(dirstamp):
114        @$(mkdir_p) serial/$(ARCH)
115        @: > serial/$(ARCH)/$(dirstamp)
116serial/$(ARCH)/%.$(OBJEXT): serial/%.c serial/$(ARCH)/$(dirstamp)
117        ${COMPILE} -o $@ -c $<
118serial/$(ARCH)/libserialio.a: $(libserialio_OBJS)
119        $(make-library)
120noinst_DATA += serial/$(ARCH)/libserialio.a
121endif
122
123libserialio_DOC_FILES = serial/README.mc68681 serial/README.ns16550 \
124    serial/README.xr88681 serial/README.z85c30 serial/STATUS
125EXTRA_DIST += $(libserialio_DOC_FILES)
126
127## shmdr
128shmdr_C_FILES = shmdr/addlq.c shmdr/cnvpkt.c shmdr/getlq.c shmdr/dump.c \
129    shmdr/fatal.c shmdr/getpkt.c shmdr/init.c shmdr/initlq.c shmdr/intr.c \
130    shmdr/mpisr.c shmdr/poll.c shmdr/receive.c shmdr/retpkt.c shmdr/send.c \
131    shmdr/setckvec.c
132EXTRA_DIST += $(shmdr_C_FILES)
133shmdr_OBJECTS = $(shmdr_C_FILES:shmdr/%.c=shmdr/$(ARCH)/%.$(OBJEXT))
134
135shmdr/$(ARCH)/$(dirstamp):
136        @$(mkdir_p) shmdr/$(ARCH)
137        @: > shmdr/$(ARCH)/$(dirstamp)
138shmdr/$(ARCH)/%.$(OBJEXT): shmdr/%.c shmdr/$(ARCH)/$(dirstamp)
139        ${COMPILE} -o $@ -c $<
140shmdr/$(ARCH)/shmdr$(LIB_VARIANT).rel: $(shmdr_OBJECTS)
141        $(make-rel)
142
143if HAS_MP
144include_HEADERS = shmdr/shm_driver.h shmdr/mpci.h
145project_lib_DATA = shmdr/$(ARCH)/shmdr$(LIB_VARIANT).rel
146endif
147
148EXTRA_DIST += shmdr/README
149
150## --
151
152all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
153
154EXTRA_DIST += $(libserialio_C_FILES) $(libserialio_DOC_FILES)
155
156CLEANDIRS = */$(ARCH)
157
158PREINSTALL_FILES =
159
160$(PROJECT_INCLUDE)/$(dirstamp):
161        @$(mkdir_p) $(PROJECT_INCLUDE)
162        @: > $(PROJECT_INCLUDE)/$(dirstamp)
163
164$(PROJECT_LIB)/$(dirstamp):
165        @$(mkdir_p) $(PROJECT_LIB)
166        @: > $(PROJECT_LIB)/$(dirstamp)
167
168if LIBCHIP
169$(PROJECT_INCLUDE)/libchip/$(dirstamp):
170        @$(mkdir_p) $(PROJECT_INCLUDE)/libchip
171        @: > $(PROJECT_INCLUDE)/libchip/$(dirstamp)
172endif
173
174if LIBCHIP
175$(PROJECT_INCLUDE)/libchip/ata.h: ide/ata.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
176        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ata.h
177PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ata.h
178
179$(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h: ide/ide_ctrl_cfg.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
180        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h
181PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h
182
183$(PROJECT_INCLUDE)/libchip/ide_ctrl.h: ide/ide_ctrl.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
184        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl.h
185PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl.h
186
187$(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h: ide/ide_ctrl_io.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
188        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h
189PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h
190endif
191
192if LIBCHIP
193if HAS_NETWORKING
194$(PROJECT_INCLUDE)/libchip/cs8900.h: network/cs8900.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
195        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/cs8900.h
196PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/cs8900.h
197
198$(PROJECT_INCLUDE)/libchip/i82586var.h: network/i82586var.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
199        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/i82586var.h
200PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/i82586var.h
201
202$(PROJECT_INCLUDE)/libchip/if_fxpvar.h: network/if_fxpvar.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
203        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/if_fxpvar.h
204PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/if_fxpvar.h
205
206$(PROJECT_INCLUDE)/libchip/sonic.h: network/sonic.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
207        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/sonic.h
208PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/sonic.h
209
210$(PROJECT_INCLUDE)/libchip/if_media.h: network/if_media.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
211        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/if_media.h
212PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/if_media.h
213
214$(PROJECT_INCLUDE)/libchip/mii.h: network/mii.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
215        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/mii.h
216PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/mii.h
217
218$(PROJECT_INCLUDE)/libchip/open_eth.h: network/open_eth.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
219        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/open_eth.h
220PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/open_eth.h
221
222$(PROJECT_LIB)/libnetchip$(LIB_VARIANT).a: network/$(ARCH)/libnetchip$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
223        $(INSTALL_DATA) $< $(PROJECT_LIB)/libnetchip$(LIB_VARIANT).a
224TMPINSTALL_FILES += $(PROJECT_LIB)/libnetchip$(LIB_VARIANT).a
225endif
226endif
227
228if LIBCHIP
229$(PROJECT_INCLUDE)/libchip/rtc.h: rtc/rtc.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
230        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/rtc.h
231PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/rtc.h
232
233$(PROJECT_INCLUDE)/libchip/icm7170.h: rtc/icm7170.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
234        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/icm7170.h
235PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/icm7170.h
236
237$(PROJECT_INCLUDE)/libchip/m48t08.h: rtc/m48t08.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
238        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/m48t08.h
239PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/m48t08.h
240endif
241
242if LIBCHIP
243$(PROJECT_INCLUDE)/libchip/mc68681.h: serial/mc68681.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
244        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/mc68681.h
245PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/mc68681.h
246
247$(PROJECT_INCLUDE)/libchip/ns16550.h: serial/ns16550.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
248        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ns16550.h
249PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ns16550.h
250
251$(PROJECT_INCLUDE)/libchip/z85c30.h: serial/z85c30.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
252        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/z85c30.h
253PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/z85c30.h
254
255$(PROJECT_INCLUDE)/libchip/serial.h: serial/serial.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
256        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/serial.h
257PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/serial.h
258
259$(PROJECT_INCLUDE)/libchip/sersupp.h: serial/sersupp.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
260        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/sersupp.h
261PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/sersupp.h
262endif
263
264if HAS_MP
265$(PROJECT_INCLUDE)/shm_driver.h: shmdr/shm_driver.h $(PROJECT_INCLUDE)/$(dirstamp)
266        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/shm_driver.h
267PREINSTALL_FILES += $(PROJECT_INCLUDE)/shm_driver.h
268
269$(PROJECT_INCLUDE)/mpci.h: shmdr/mpci.h $(PROJECT_INCLUDE)/$(dirstamp)
270        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpci.h
271PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpci.h
272
273$(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel: shmdr/$(ARCH)/shmdr$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
274        $(INSTALL_DATA) $< $(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel
275TMPINSTALL_FILES += $(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel
276endif
277
278include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.