source: rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am @ da0a573

4.104.114.84.9
Last change on this file since da0a573 was da0a573, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 4, 2004 at 4:53:38 PM

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

  • Makefile.am: Use include_*HEADERS for .../shared/*.h.
  • Property mode set to 100644
File size: 11.5 KB
Line 
1##
2## $Id$
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 = . bootloader @exceptions@ wrapup
10
11include $(top_srcdir)/../../../../automake/compile.am
12include $(top_srcdir)/../../bsp.am
13
14EXTRA_PROGRAMS =
15CLEANFILES =
16noinst_DATA =
17
18include_bspdir = $(includedir)/bsp
19
20include_HEADERS += ../../powerpc/shared/include/nvram.h
21include_HEADERS += ../../shared/include/coverhd.h
22
23EXTRA_DIST = ../../powerpc/shared/start/start.S
24start$(LIB_VARIANT).$(OBJEXT): ../../powerpc/shared/start/start.S
25        ${CCASCOMPILE} -DASM -o $@ -c $<
26project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
27
28EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S
29rtems_crti$(LIB_VARIANT).$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
30        ${CCASCOMPILE} -DASM -o $@ -c $<
31project_lib_DATA += rtems_crti$(LIB_VARIANT).$(OBJEXT)
32
33dist_project_lib_DATA += startup/linkcmds
34
35EXTRA_PROGRAMS += startup.rel
36CLEANFILES += startup.rel
37startup_rel_SOURCES = ../../powerpc/shared/startup/bspstart.c \
38    ../../powerpc/shared/startup/pgtbl_setup.c \
39    ../../powerpc/shared/startup/pgtbl_activate.c \
40    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
41    ../../shared/bspclean.c ../../shared/bsplibc.c ../../shared/bsppost.c \
42    ../../shared/main.c ../../shared/gnatinstallhandler.c
43startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
44startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
45
46EXTRA_PROGRAMS += startup_g.rel
47CLEANFILES += startup_g.rel
48startup_g_rel_SOURCES = $(startup_rel_SOURCES)
49startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
50startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
51
52noinst_DATA += startup$(LIB_VARIANT).rel
53
54EXTRA_PROGRAMS += pclock.rel
55CLEANFILES += pclock.rel
56pclock_rel_SOURCES = ../../powerpc/shared/clock/p_clock.c
57pclock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
58pclock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
59
60EXTRA_PROGRAMS += pclock_g.rel
61CLEANFILES += pclock_g.rel
62pclock_g_rel_SOURCES = $(pclock_rel_SOURCES)
63pclock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
64pclock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
65
66noinst_DATA += pclock$(LIB_VARIANT).rel
67
68include_bsp_HEADERS = ../../powerpc/shared/console/consoleIo.h
69include_bsp_HEADERS += ../../powerpc/shared/console/uart.h
70
71console_CPPFLAGS = -DSTATIC_LOG_ALLOC
72EXTRA_PROGRAMS += console.rel
73CLEANFILES += console.rel
74console_rel_SOURCES = ../../powerpc/shared/console/polled_io.c \
75    ../../powerpc/shared/console/uart.c \
76    ../../powerpc/shared/console/console.c \
77    ../../powerpc/shared/console/inch.c \
78    ../../powerpc/shared/console/reboot.c \
79    ../../powerpc/shared/console/consoleIo.h \
80    ../../powerpc/shared/console/keyboard.h \
81    ../../powerpc/shared/console/uart.h
82console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) \
83    $(console_CPPFLAGS)
84console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
85
86EXTRA_PROGRAMS += console_g.rel
87CLEANFILES += console_g.rel
88console_g_rel_SOURCES = $(console_rel_SOURCES)
89console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) \
90    $(console_CPPFLAGS)
91console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
92
93noinst_DATA += console$(LIB_VARIANT).rel
94
95include_bsp_HEADERS += ../../powerpc/shared/irq/irq.h
96
97EXTRA_PROGRAMS += irq.rel
98CLEANFILES += irq.rel
99irq_rel_SOURCES = ../../powerpc/shared/irq/irq_init.c \
100    ../../powerpc/shared/irq/i8259.c ../../powerpc/shared/irq/irq.c \
101    ../../powerpc/shared/irq/irq_asm.S ../../powerpc/shared/irq/irq.h
102irq_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
103irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
104
105EXTRA_PROGRAMS += irq_g.rel
106CLEANFILES += irq_g.rel
107irq_g_rel_SOURCES = $(irq_rel_SOURCES)
108irq_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
109irq_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
110
111noinst_DATA += irq$(LIB_VARIANT).rel
112
113include_bsp_HEADERS += ../../powerpc/shared/motorola/motorola.h
114
115EXTRA_PROGRAMS += motorola.rel
116CLEANFILES += motorola.rel
117motorola_rel_SOURCES = ../../powerpc/shared/motorola/motorola.h \
118    ../../powerpc/shared/motorola/motorola.c
119motorola_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
120motorola_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
121
122EXTRA_PROGRAMS += motorola_g.rel
123CLEANFILES += motorola_g.rel
124motorola_g_rel_SOURCES = $(motorola_rel_SOURCES)
125motorola_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
126motorola_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
127
128noinst_DATA += motorola$(LIB_VARIANT).rel
129
130include_bsp_HEADERS += ../../powerpc/shared/openpic/openpic.h
131
132EXTRA_PROGRAMS += openpic.rel
133CLEANFILES += openpic.rel
134openpic_rel_SOURCES = ../../powerpc/shared/openpic/openpic.h \
135    ../../powerpc/shared/openpic/openpic.c \
136    ../../powerpc/shared/openpic/openpic.h
137
138openpic_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
139openpic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
140
141EXTRA_PROGRAMS += openpic_g.rel
142CLEANFILES += openpic_g.rel
143openpic_g_rel_SOURCES = $(openpic_rel_SOURCES)
144openpic_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
145openpic_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
146
147noinst_DATA += openpic$(LIB_VARIANT).rel
148
149include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h
150
151EXTRA_PROGRAMS += pci.rel
152CLEANFILES += pci.rel
153pci_rel_SOURCES = ../../powerpc/shared/pci/pci.c \
154    ../../powerpc/shared/pci/detect_raven_bridge.c \
155    ../../powerpc/shared/pci/pcifinddevice.c ../../powerpc/shared/pci/pci.h
156pci_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
157pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
158
159EXTRA_PROGRAMS += pci_g.rel
160CLEANFILES += pci_g.rel
161pci_g_rel_SOURCES = $(pci_rel_SOURCES)
162pci_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
163pci_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
164
165noinst_DATA += pci$(LIB_VARIANT).rel
166
167include_bsp_HEADERS += ../../powerpc/shared/residual/residual.h \
168    ../../powerpc/shared/residual/pnp.h
169
170EXTRA_PROGRAMS += residual.rel
171CLEANFILES += residual.rel
172residual_rel_SOURCES = ../../powerpc/shared/residual/pnp.h \
173    ../../powerpc/shared/residual/residual.h \
174    ../../powerpc/shared/residual/residual.c
175residual_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
176residual_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
177
178EXTRA_PROGRAMS += residual_g.rel
179CLEANFILES += residual_g.rel
180residual_g_rel_SOURCES = $(residual_rel_SOURCES)
181residual_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
182residual_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
183
184noinst_DATA += residual$(LIB_VARIANT).rel
185
186include_bsp_HEADERS += ../../powerpc/shared/vectors/vectors.h
187
188EXTRA_PROGRAMS += vectors.rel
189CLEANFILES += vectors.rel
190vectors_rel_SOURCES = ../../powerpc/shared/vectors/vectors.h \
191    ../../powerpc/shared/vectors/vectors_init.c \
192    ../../powerpc/shared/vectors/vectors.S
193vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
194vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
195
196EXTRA_PROGRAMS += vectors_g.rel
197CLEANFILES += vectors_g.rel
198vectors_g_rel_SOURCES = $(vectors_rel_SOURCES)
199vectors_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
200vectors_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
201
202noinst_DATA += vectors$(LIB_VARIANT).rel
203
204include_bsp_HEADERS += ../../shared/vmeUniverse/vmeUniverse.h \
205    ../../powerpc/shared/vme/VMEConfig.h ../../powerpc/shared/vme/VME.h
206
207EXTRA_PROGRAMS += vme.rel
208CLEANFILES += vme.rel
209vme_rel_SOURCES = ../../shared/vmeUniverse/vmeUniverse.c \
210    ../../shared/vmeUniverse/vmeUniverse.h \
211    ../../powerpc/shared/vme/vmeconfig.c \
212    ../../powerpc/shared/vme/VMEConfig.h ../../powerpc/shared/vme/VME.h
213vme_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
214vme_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
215
216EXTRA_PROGRAMS += vme_g.rel
217CLEANFILES += vme_g.rel
218vme_g_rel_SOURCES = $(vme_rel_SOURCES)
219vme_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
220vme_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
221
222noinst_DATA += vme$(LIB_VARIANT).rel
223
224all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
225
226EXTRA_DIST += BOOTING README.MVME2300 README.OTHERBOARDS README.dec21140
227EXTRA_DIST += times.mcp750 times.mvme2307
228
229PREINSTALL_DIRS =
230TMPINSTALL_FILES =
231
232$(PROJECT_INCLUDE)/bsp/$(dirstamp):
233        @$(mkdir_p) $(PROJECT_INCLUDE)/bsp
234        @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
235PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
236
237$(PROJECT_INCLUDE)/nvram.h: ../../powerpc/shared/include/nvram.h $(PROJECT_INCLUDE)/$(dirstamp)
238        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/nvram.h
239PREINSTALL_FILES += $(PROJECT_INCLUDE)/nvram.h
240
241$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
242        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
243PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
244
245$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
246        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
247TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
248
249$(PROJECT_LIB)/rtems_crti$(LIB_VARIANT).$(OBJEXT): rtems_crti$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
250        $(INSTALL_DATA) $< $(PROJECT_LIB)/rtems_crti$(LIB_VARIANT).$(OBJEXT)
251TMPINSTALL_FILES += $(PROJECT_LIB)/rtems_crti$(LIB_VARIANT).$(OBJEXT)
252
253$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
254        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
255TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
256
257$(PROJECT_INCLUDE)/bsp/consoleIo.h: ../../powerpc/shared/console/consoleIo.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
258        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/consoleIo.h
259PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/consoleIo.h
260
261$(PROJECT_INCLUDE)/bsp/uart.h: ../../powerpc/shared/console/uart.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
262        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/uart.h
263PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/uart.h
264
265$(PROJECT_INCLUDE)/bsp/irq.h: ../../powerpc/shared/irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
266        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
267PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
268
269$(PROJECT_INCLUDE)/bsp/motorola.h: ../../powerpc/shared/motorola/motorola.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
270        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/motorola.h
271PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/motorola.h
272
273$(PROJECT_INCLUDE)/bsp/openpic.h: ../../powerpc/shared/openpic/openpic.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
274        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/openpic.h
275PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/openpic.h
276
277$(PROJECT_INCLUDE)/bsp/pci.h: ../../powerpc/shared/pci/pci.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
278        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pci.h
279PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pci.h
280
281$(PROJECT_INCLUDE)/bsp/residual.h: ../../powerpc/shared/residual/residual.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
282        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/residual.h
283PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/residual.h
284
285$(PROJECT_INCLUDE)/bsp/pnp.h: ../../powerpc/shared/residual/pnp.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
286        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pnp.h
287PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pnp.h
288
289$(PROJECT_INCLUDE)/bsp/vectors.h: ../../powerpc/shared/vectors/vectors.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
290        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vectors.h
291PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vectors.h
292
293$(PROJECT_INCLUDE)/bsp/vmeUniverse.h: ../../shared/vmeUniverse/vmeUniverse.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
294        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vmeUniverse.h
295PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vmeUniverse.h
296
297$(PROJECT_INCLUDE)/bsp/VMEConfig.h: ../../powerpc/shared/vme/VMEConfig.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
298        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VMEConfig.h
299PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VMEConfig.h
300
301$(PROJECT_INCLUDE)/bsp/VME.h: ../../powerpc/shared/vme/VME.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
302        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VME.h
303PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VME.h
304
305CLEANFILES += $(PREINSTALL_FILES)
306DISTCLEANFILES = $(PREINSTALL_DIRS)
307CLEANFILES += $(TMPINSTALL_FILES)
308
309include $(top_srcdir)/../../../../automake/subdirs.am
310include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.