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

4.104.114.84.95
Last change on this file since b3a78e34 was b3a78e34, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 21, 2004 at 12:23:15 PM

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

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