source: rtems/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am @ 04b7821

4.104.114.84.95
Last change on this file since 04b7821 was 04b7821, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 26, 2004 at 3:45:12 AM

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

  • Makefile.am: Fix network_CPPFLAGS. Reformat.
  • network/GT64260eth.c: Properly prototype GT64260eth_err().
  • Property mode set to 100644
File size: 12.4 KB
Line 
1##
2## Makefile.am,v 1.8.4.1 2003/02/20 21:55:34 joel Exp
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7# wrapup is the one that actually builds and installs the library
8#  from the individual .rel files built in other directories
9SUBDIRS = . @exceptions@ wrapup
10
11include $(top_srcdir)/../../../../automake/compile.am
12include $(top_srcdir)/../../bsp.am
13
14dist_project_lib_DATA = bsp_specs
15
16include_HEADERS = include/bsp.h
17include_HEADERS += include/tm27.h
18nodist_include_HEADERS = include/bspopts.h
19nodist_include_HEADERS += ../../shared/include/coverhd.h
20
21EXTRA_PROGRAMS =
22CLEANFILES =
23noinst_DATA =
24
25include_bspdir = $(includedir)/bsp
26
27###
28dist_project_lib_DATA += startup/linkcmds
29
30# UNUSED
31EXTRA_DIST = startup/bootpstuff.c
32
33EXTRA_PROGRAMS += startup.rel
34CLEANFILES += startup.rel
35startup_rel_SOURCES = startup/bspstart.c \
36    ../../powerpc/shared/startup/pgtbl_setup.c startup/pgtbl_activate.c \
37    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
38    startup/bspclean.c ../../shared/bsplibc.c ../../shared/bsppost.c \
39    ../../shared/main.c ../../shared/gnatinstallhandler.c startup/reboot.c
40startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
41startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
42
43EXTRA_PROGRAMS += startup_g.rel
44CLEANFILES += startup_g.rel
45startup_g_rel_SOURCES = $(startup_rel_SOURCES)
46startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
47startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49noinst_DATA += startup$(LIB_VARIANT).rel
50
51###
52EXTRA_PROGRAMS += pclock.rel
53CLEANFILES += pclock.rel
54pclock_rel_SOURCES = ../../powerpc/shared/clock/p_clock.c
55pclock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
56pclock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
57
58EXTRA_PROGRAMS += pclock_g.rel
59CLEANFILES += pclock_g.rel
60pclock_g_rel_SOURCES = $(pclock_rel_SOURCES)
61pclock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
62pclock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
63
64noinst_DATA += pclock$(LIB_VARIANT).rel
65
66###
67include_bsp_HEADERS = ../../powerpc/shared/console/uart.h
68
69EXTRA_PROGRAMS += console.rel
70CLEANFILES += console.rel
71console_rel_SOURCES = ../../powerpc/shared/console/uart.c \
72    ../../powerpc/shared/console/console.c
73console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
74console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
75
76EXTRA_PROGRAMS += console_g.rel
77CLEANFILES += console_g.rel
78console_g_rel_SOURCES = $(console_rel_SOURCES)
79console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
80console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
81
82noinst_DATA += console$(LIB_VARIANT).rel
83
84###
85include_bsp_HEADERS += pci/gtpcireg.h pci/pci.h
86
87EXTRA_PROGRAMS += pci.rel
88CLEANFILES += pci.rel
89pci_rel_SOURCES = pci/pci.c pci/pci_interface.c pci/detect_host_bridge.c \
90    pci/pcifinddevice.c
91pci_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
92pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
93
94EXTRA_PROGRAMS += pci_g.rel
95CLEANFILES += pci_g.rel
96pci_g_rel_SOURCES = $(pci_rel_SOURCES)
97pci_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
98pci_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
99
100noinst_DATA += pci$(LIB_VARIANT).rel
101
102###
103include_bsp_HEADERS += irq/irq.h
104
105EXTRA_PROGRAMS += irq.rel
106CLEANFILES += irq.rel
107irq_rel_SOURCES = irq/irq_init.c irq/GT64260Int.c irq/irq.c \
108    ../../powerpc/shared/irq/irq_asm.S
109irq_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
110irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
111
112EXTRA_PROGRAMS += irq_g.rel
113CLEANFILES += irq_g.rel
114irq_g_rel_SOURCES = $(irq_rel_SOURCES)
115irq_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
116irq_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
117
118noinst_DATA += irq$(LIB_VARIANT).rel
119
120###
121nodist_include_HEADERS += ../../shared/tod.h
122
123EXTRA_PROGRAMS += tod.rel
124CLEANFILES += tod.rel
125tod_rel_SOURCES = ../../shared/tod.c tod/todcfg.c
126tod_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
127tod_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
128
129EXTRA_PROGRAMS += tod_g.rel
130CLEANFILES += tod_g.rel
131tod_g_rel_SOURCES = $(tod_rel_SOURCES)
132tod_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
133tod_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
134
135noinst_DATA += tod$(LIB_VARIANT).rel
136
137##
138include_bsp_HEADERS += ../../powerpc/shared/vectors/vectors.h \
139    vectors/bspException.h
140
141EXTRA_PROGRAMS += vectors.rel
142CLEANFILES += vectors.rel
143vectors_rel_SOURCES = ../../powerpc/shared/vectors/vectors_init.c \
144    vectors/exceptionhandler.c ../../powerpc/shared/vectors/vectors.S
145vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
146vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
147
148EXTRA_PROGRAMS += vectors_g.rel
149CLEANFILES += vectors_g.rel
150vectors_g_rel_SOURCES = $(vectors_rel_SOURCES)
151vectors_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
152vectors_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
153
154noinst_DATA += vectors$(LIB_VARIANT).rel
155
156##
157include_bsp_HEADERS += GT64260/bspMvme5500.h GT64260/gtreg.h \
158    GT64260/GT64260TWSI.h GT64260/VPD.h
159EXTRA_PROGRAMS += GT64260.rel
160CLEANFILES += GT64260.rel
161GT64260_rel_SOURCES = GT64260/GT64260TWSI.c GT64260/MVME5500I2C.c
162GT64260_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
163GT64260_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
164
165EXTRA_PROGRAMS += GT64260_g.rel
166CLEANFILES += GT64260_g.rel
167GT64260_g_rel_SOURCES = $(GT64260_rel_SOURCES)
168GT64260_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
169GT64260_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
170
171noinst_DATA += GT64260$(LIB_VARIANT).rel
172
173##
174if HAS_NETWORKING
175include_bsp_HEADERS += network/GT64260eth.h network/GT64260ethreg.h
176
177network_CPPFLAGS = -D_KERNEL
178EXTRA_PROGRAMS += network.rel
179CLEANFILES += network.rel
180network_rel_SOURCES = network/GT64260eth.c
181network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) \
182    $(network_CPPFLAGS)
183network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
184
185EXTRA_PROGRAMS += network_g.rel
186CLEANFILES += network_g.rel
187network_g_rel_SOURCES = $(network_rel_SOURCES)
188network_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) \
189    $(network_CPPFLAGS)
190network_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
191
192noinst_DATA += network$(LIB_VARIANT).rel
193endif
194##
195include_bsp_HEADERS += vme/VME.h vme/VMEConfig.h
196include_bsp_HEADERS += ../../shared/vmeUniverse/vmeUniverse.h
197
198EXTRA_PROGRAMS += vme.rel
199CLEANFILES += vme.rel
200vme_rel_SOURCES = ../../shared/vmeUniverse/vmeUniverse.c vme/vmeconfig.c
201vme_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
202vme_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
203
204EXTRA_PROGRAMS += vme_g.rel
205CLEANFILES += vme_g.rel
206vme_g_rel_SOURCES = $(vme_rel_SOURCES)
207vme_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
208vme_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
209
210noinst_DATA += vme$(LIB_VARIANT).rel
211
212##
213
214EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S
215rtems_crti$(LIB_VARIANT).$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
216        $(CPPASCOMPILE) -DASM -o $@ -c $<
217project_lib_DATA = rtems_crti$(LIB_VARIANT).$(OBJEXT)
218
219EXTRA_PROGRAMS += mvme5500start.$(OBJEXT)
220CLEANFILES += mvme5500start.$(OBJEXT)
221mvme5500start___OBJEXT__SOURCES = start/preload.S start/start.S
222mvme5500start___OBJEXT__CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
223mvme5500start___OBJEXT__LDFLAGS = $(RTEMS_RELLDFLAGS)
224
225EXTRA_PROGRAMS += mvme5500start_g.$(OBJEXT)
226CLEANFILES += mvme5500start_g.$(OBJEXT)
227mvme5500start_g___OBJEXT__SOURCES = $(mvme5500start___OBJEXT__SOURCES)
228mvme5500start_g___OBJEXT__CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
229mvme5500start_g___OBJEXT__LDFLAGS = $(RTEMS_RELLDFLAGS)
230
231project_lib_DATA += mvme5500start$(LIB_VARIANT).$(OBJEXT)
232
233all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
234
235###
236
237PREINSTALL_DIRS =
238PREINSTALL_FILES =
239TMPINSTALL_FILES =
240
241$(PROJECT_INCLUDE)/$(dirstamp):
242        @$(mkdir_p) $(PROJECT_INCLUDE)
243        @: > $(PROJECT_INCLUDE)/$(dirstamp)
244PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
245
246$(PROJECT_LIB)/$(dirstamp):
247        @$(mkdir_p) $(PROJECT_LIB)
248        @: > $(PROJECT_LIB)/$(dirstamp)
249PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
250
251$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
252        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
253PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
254
255$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
256        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
257PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
258
259$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
260        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
261PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
262
263$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
264        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
265PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
266
267$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
268        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
269PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
270
271$(PROJECT_INCLUDE)/bsp/$(dirstamp):
272        @$(mkdir_p) $(PROJECT_INCLUDE)/bsp
273        @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
274PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
275
276$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
277        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
278PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
279
280$(PROJECT_INCLUDE)/bsp/uart.h: ../../powerpc/shared/console/uart.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
281        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/uart.h
282PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/uart.h
283
284$(PROJECT_INCLUDE)/bsp/gtpcireg.h: pci/gtpcireg.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
285        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/gtpcireg.h
286PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/gtpcireg.h
287
288$(PROJECT_INCLUDE)/bsp/pci.h: pci/pci.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
289        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pci.h
290PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pci.h
291
292$(PROJECT_INCLUDE)/bsp/irq.h: irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
293        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
294PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
295
296$(PROJECT_INCLUDE)/tod.h: ../../shared/tod.h $(PROJECT_INCLUDE)/$(dirstamp)
297        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tod.h
298PREINSTALL_FILES += $(PROJECT_INCLUDE)/tod.h
299
300$(PROJECT_INCLUDE)/bsp/vectors.h: ../../powerpc/shared/vectors/vectors.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
301        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vectors.h
302PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vectors.h
303
304$(PROJECT_INCLUDE)/bsp/bspException.h: vectors/bspException.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
305        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/bspException.h
306PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bspException.h
307
308$(PROJECT_INCLUDE)/bsp/bspMvme5500.h: GT64260/bspMvme5500.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
309        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/bspMvme5500.h
310PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bspMvme5500.h
311
312$(PROJECT_INCLUDE)/bsp/gtreg.h: GT64260/gtreg.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
313        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/gtreg.h
314PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/gtreg.h
315
316$(PROJECT_INCLUDE)/bsp/GT64260TWSI.h: GT64260/GT64260TWSI.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
317        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/GT64260TWSI.h
318PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/GT64260TWSI.h
319
320$(PROJECT_INCLUDE)/bsp/VPD.h: GT64260/VPD.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
321        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VPD.h
322PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VPD.h
323
324if HAS_NETWORKING
325$(PROJECT_INCLUDE)/bsp/GT64260eth.h: network/GT64260eth.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
326        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/GT64260eth.h
327PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/GT64260eth.h
328
329$(PROJECT_INCLUDE)/bsp/GT64260ethreg.h: network/GT64260ethreg.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
330        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/GT64260ethreg.h
331PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/GT64260ethreg.h
332endif
333
334$(PROJECT_INCLUDE)/bsp/VME.h: vme/VME.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
335        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VME.h
336PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VME.h
337
338$(PROJECT_INCLUDE)/bsp/VMEConfig.h: vme/VMEConfig.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
339        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VMEConfig.h
340PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VMEConfig.h
341
342$(PROJECT_INCLUDE)/bsp/vmeUniverse.h: ../../shared/vmeUniverse/vmeUniverse.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
343        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vmeUniverse.h
344PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vmeUniverse.h
345
346$(PROJECT_LIB)/rtems_crti$(LIB_VARIANT).$(OBJEXT): rtems_crti$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
347        $(INSTALL_DATA) $< $(PROJECT_LIB)/rtems_crti$(LIB_VARIANT).$(OBJEXT)
348TMPINSTALL_FILES += $(PROJECT_LIB)/rtems_crti$(LIB_VARIANT).$(OBJEXT)
349
350$(PROJECT_LIB)/mvme5500start$(LIB_VARIANT).$(OBJEXT): mvme5500start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
351        $(INSTALL_DATA) $< $(PROJECT_LIB)/mvme5500start$(LIB_VARIANT).$(OBJEXT)
352TMPINSTALL_FILES += $(PROJECT_LIB)/mvme5500start$(LIB_VARIANT).$(OBJEXT)
353
354CLEANFILES += $(PREINSTALL_FILES)
355DISTCLEANFILES = $(PREINSTALL_DIRS)
356CLEANFILES += $(TMPINSTALL_FILES)
357
358include $(top_srcdir)/../../../../automake/subdirs.am
359include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.