source: rtems/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am @ 031d15d3

4.104.114.84.95
Last change on this file since 031d15d3 was 031d15d3, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 21, 2004 at 4:31:36 PM

2004-10-21 Joel Sherrill <joel@…>

  • Makefile.am: Add missing network_CPPFLAGS.
  • 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__INSIDE_RTEMS_BSD_TCPIP_STACK__
178EXTRA_PROGRAMS += network.rel
179CLEANFILES += network.rel
180network_rel_SOURCES = network/GT64260eth.c
181network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
182network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
183
184EXTRA_PROGRAMS += network_g.rel
185CLEANFILES += network_g.rel
186network_g_rel_SOURCES = $(network_rel_SOURCES)
187network_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
188network_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
189
190noinst_DATA += network$(LIB_VARIANT).rel
191endif
192##
193include_bsp_HEADERS += vme/VME.h vme/VMEConfig.h
194include_bsp_HEADERS += ../../shared/vmeUniverse/vmeUniverse.h
195
196EXTRA_PROGRAMS += vme.rel
197CLEANFILES += vme.rel
198vme_rel_SOURCES = ../../shared/vmeUniverse/vmeUniverse.c vme/vmeconfig.c
199vme_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
200vme_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
201
202EXTRA_PROGRAMS += vme_g.rel
203CLEANFILES += vme_g.rel
204vme_g_rel_SOURCES = $(vme_rel_SOURCES)
205vme_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
206vme_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
207
208noinst_DATA += vme$(LIB_VARIANT).rel
209
210##
211
212EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S
213rtems_crti$(LIB_VARIANT).$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
214        $(CPPASCOMPILE) -DASM -o $@ -c $<
215project_lib_DATA = rtems_crti$(LIB_VARIANT).$(OBJEXT)
216
217EXTRA_PROGRAMS += mvme5500start.$(OBJEXT)
218CLEANFILES += mvme5500start.$(OBJEXT)
219mvme5500start___OBJEXT__SOURCES = start/preload.S start/start.S
220mvme5500start___OBJEXT__CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
221mvme5500start___OBJEXT__LDFLAGS = $(RTEMS_RELLDFLAGS)
222
223EXTRA_PROGRAMS += mvme5500start_g.$(OBJEXT)
224CLEANFILES += mvme5500start_g.$(OBJEXT)
225mvme5500start_g___OBJEXT__SOURCES = $(mvme5500start___OBJEXT__SOURCES)
226mvme5500start_g___OBJEXT__CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
227mvme5500start_g___OBJEXT__LDFLAGS = $(RTEMS_RELLDFLAGS)
228
229project_lib_DATA += mvme5500start$(LIB_VARIANT).$(OBJEXT)
230
231all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
232
233###
234
235PREINSTALL_DIRS =
236PREINSTALL_FILES =
237TMPINSTALL_FILES =
238
239$(PROJECT_INCLUDE)/$(dirstamp):
240        @$(mkdir_p) $(PROJECT_INCLUDE)
241        @: > $(PROJECT_INCLUDE)/$(dirstamp)
242PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
243
244$(PROJECT_LIB)/$(dirstamp):
245        @$(mkdir_p) $(PROJECT_LIB)
246        @: > $(PROJECT_LIB)/$(dirstamp)
247PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
248
249$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
250        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
251PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
252
253$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
254        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
255PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
256
257$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
258        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
259PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
260
261$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
262        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
263PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
264
265$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
266        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
267PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
268
269$(PROJECT_INCLUDE)/bsp/$(dirstamp):
270        @$(mkdir_p) $(PROJECT_INCLUDE)/bsp
271        @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
272PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
273
274$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
275        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
276PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
277
278$(PROJECT_INCLUDE)/bsp/uart.h: ../../powerpc/shared/console/uart.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
279        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/uart.h
280PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/uart.h
281
282$(PROJECT_INCLUDE)/bsp/gtpcireg.h: pci/gtpcireg.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
283        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/gtpcireg.h
284PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/gtpcireg.h
285
286$(PROJECT_INCLUDE)/bsp/pci.h: pci/pci.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
287        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pci.h
288PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pci.h
289
290$(PROJECT_INCLUDE)/bsp/irq.h: irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
291        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
292PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
293
294$(PROJECT_INCLUDE)/tod.h: ../../shared/tod.h $(PROJECT_INCLUDE)/$(dirstamp)
295        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tod.h
296PREINSTALL_FILES += $(PROJECT_INCLUDE)/tod.h
297
298$(PROJECT_INCLUDE)/bsp/vectors.h: ../../powerpc/shared/vectors/vectors.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
299        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vectors.h
300PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vectors.h
301
302$(PROJECT_INCLUDE)/bsp/bspException.h: vectors/bspException.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
303        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/bspException.h
304PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bspException.h
305
306$(PROJECT_INCLUDE)/bsp/bspMvme5500.h: GT64260/bspMvme5500.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
307        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/bspMvme5500.h
308PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bspMvme5500.h
309
310$(PROJECT_INCLUDE)/bsp/gtreg.h: GT64260/gtreg.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
311        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/gtreg.h
312PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/gtreg.h
313
314$(PROJECT_INCLUDE)/bsp/GT64260TWSI.h: GT64260/GT64260TWSI.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
315        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/GT64260TWSI.h
316PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/GT64260TWSI.h
317
318$(PROJECT_INCLUDE)/bsp/VPD.h: GT64260/VPD.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
319        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VPD.h
320PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VPD.h
321
322if HAS_NETWORKING
323$(PROJECT_INCLUDE)/bsp/GT64260eth.h: network/GT64260eth.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
324        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/GT64260eth.h
325PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/GT64260eth.h
326
327$(PROJECT_INCLUDE)/bsp/GT64260ethreg.h: network/GT64260ethreg.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
328        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/GT64260ethreg.h
329PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/GT64260ethreg.h
330endif
331
332$(PROJECT_INCLUDE)/bsp/VME.h: vme/VME.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
333        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VME.h
334PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VME.h
335
336$(PROJECT_INCLUDE)/bsp/VMEConfig.h: vme/VMEConfig.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
337        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VMEConfig.h
338PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VMEConfig.h
339
340$(PROJECT_INCLUDE)/bsp/vmeUniverse.h: ../../shared/vmeUniverse/vmeUniverse.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
341        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vmeUniverse.h
342PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vmeUniverse.h
343
344$(PROJECT_LIB)/rtems_crti$(LIB_VARIANT).$(OBJEXT): rtems_crti$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
345        $(INSTALL_DATA) $< $(PROJECT_LIB)/rtems_crti$(LIB_VARIANT).$(OBJEXT)
346TMPINSTALL_FILES += $(PROJECT_LIB)/rtems_crti$(LIB_VARIANT).$(OBJEXT)
347
348$(PROJECT_LIB)/mvme5500start$(LIB_VARIANT).$(OBJEXT): mvme5500start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
349        $(INSTALL_DATA) $< $(PROJECT_LIB)/mvme5500start$(LIB_VARIANT).$(OBJEXT)
350TMPINSTALL_FILES += $(PROJECT_LIB)/mvme5500start$(LIB_VARIANT).$(OBJEXT)
351
352CLEANFILES += $(PREINSTALL_FILES)
353DISTCLEANFILES = $(PREINSTALL_DIRS)
354CLEANFILES += $(TMPINSTALL_FILES)
355
356include $(top_srcdir)/../../../../automake/subdirs.am
357include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.