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

4.104.114.84.95
Last change on this file since 9d83387b was 9d83387b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 28, 2005 at 3:02:15 AM

Cosmetics.

  • Property mode set to 100644
File size: 10.0 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
14dist_project_lib_DATA = bsp_specs
15
16include_HEADERS = include/bsp.h
17include_HEADERS += include/tm27.h
18
19nodist_include_HEADERS = include/bspopts.h
20DISTCLEANFILES = include/bspopts.h
21
22noinst_PROGRAMS =
23
24include_bspdir = $(includedir)/bsp
25
26include_HEADERS += ../../powerpc/shared/include/nvram.h
27include_HEADERS += ../../shared/include/coverhd.h
28include_HEADERS += ../../shared/tod.h
29
30EXTRA_DIST = ../../powerpc/shared/start/start.S
31start.$(OBJEXT): ../../powerpc/shared/start/start.S
32        $(CPPASCOMPILE) -DASM -o $@ -c $<
33project_lib_DATA = start.$(OBJEXT)
34
35EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S
36rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
37        $(CPPASCOMPILE) -DASM -o $@ -c $<
38project_lib_DATA += rtems_crti.$(OBJEXT)
39
40dist_project_lib_DATA += startup/linkcmds
41
42noinst_PROGRAMS += startup.rel
43startup_rel_SOURCES = ../../powerpc/shared/startup/bspstart.c \
44    ../../powerpc/shared/startup/pgtbl_setup.c \
45    ../../powerpc/shared/startup/pgtbl_activate.c \
46    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
47    ../../shared/bspclean.c ../../shared/bsplibc.c ../../shared/bsppost.c \
48    ../../shared/main.c ../../shared/gnatinstallhandler.c
49startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
50startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
51
52noinst_PROGRAMS += tod.rel
53tod_rel_SOURCES = ../../shared/tod.c ../../powerpc/shared/tod/todcfg.c
54tod_rel_CPPFLAGS = $(AM_CPPFLAGS)
55tod_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
56
57noinst_PROGRAMS += pclock.rel
58pclock_rel_SOURCES = ../../powerpc/shared/clock/p_clock.c
59pclock_rel_CPPFLAGS = $(AM_CPPFLAGS)
60pclock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
61
62include_bsp_HEADERS = ../../powerpc/shared/console/consoleIo.h
63include_bsp_HEADERS += ../../powerpc/shared/console/uart.h
64
65console_CPPFLAGS = -DSTATIC_LOG_ALLOC
66noinst_PROGRAMS += console.rel
67console_rel_SOURCES = ../../powerpc/shared/console/polled_io.c \
68    ../../powerpc/shared/console/uart.c \
69    ../../powerpc/shared/console/console.c \
70    ../../powerpc/shared/console/inch.c \
71    ../../powerpc/shared/console/reboot.c \
72    ../../powerpc/shared/console/consoleIo.h \
73    ../../powerpc/shared/console/keyboard.h \
74    ../../powerpc/shared/console/uart.h
75console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(console_CPPFLAGS)
76console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
77
78include_bsp_HEADERS += ../../powerpc/shared/irq/irq.h
79
80noinst_PROGRAMS += irq.rel
81irq_rel_SOURCES = ../../powerpc/shared/irq/irq_init.c \
82    ../../powerpc/shared/irq/i8259.c ../../powerpc/shared/irq/irq.c \
83    ../../powerpc/shared/irq/irq_asm.S ../../powerpc/shared/irq/irq.h
84irq_rel_CPPFLAGS = $(AM_CPPFLAGS)
85irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
86
87include_bsp_HEADERS += ../../powerpc/shared/motorola/motorola.h
88
89noinst_PROGRAMS += motorola.rel
90motorola_rel_SOURCES = ../../powerpc/shared/motorola/motorola.h \
91    ../../powerpc/shared/motorola/motorola.c
92motorola_rel_CPPFLAGS = $(AM_CPPFLAGS)
93motorola_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
94
95include_bsp_HEADERS += ../../powerpc/shared/openpic/openpic.h
96
97noinst_PROGRAMS += openpic.rel
98openpic_rel_SOURCES = ../../powerpc/shared/openpic/openpic.h \
99    ../../powerpc/shared/openpic/openpic.c \
100    ../../powerpc/shared/openpic/openpic.h
101
102openpic_rel_CPPFLAGS = $(AM_CPPFLAGS)
103openpic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
104
105include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h
106
107noinst_PROGRAMS += pci.rel
108pci_rel_SOURCES = ../../powerpc/shared/pci/pci.c \
109    ../../powerpc/shared/pci/detect_raven_bridge.c \
110    ../../powerpc/shared/pci/pcifinddevice.c ../../powerpc/shared/pci/pci.h
111pci_rel_CPPFLAGS = $(AM_CPPFLAGS)
112pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
113
114include_bsp_HEADERS += ../../powerpc/shared/residual/residual.h \
115    ../../powerpc/shared/residual/pnp.h
116
117noinst_PROGRAMS += residual.rel
118residual_rel_SOURCES = ../../powerpc/shared/residual/pnp.h \
119    ../../powerpc/shared/residual/residual.h \
120    ../../powerpc/shared/residual/residual.c
121residual_rel_CPPFLAGS = $(AM_CPPFLAGS)
122residual_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
123
124include_bsp_HEADERS += ../../powerpc/shared/vectors/vectors.h
125
126noinst_PROGRAMS += vectors.rel
127vectors_rel_SOURCES = ../../powerpc/shared/vectors/vectors.h \
128    ../../powerpc/shared/vectors/vectors_init.c \
129    ../../powerpc/shared/vectors/vectors.S
130vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
131vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
132
133include_bsp_HEADERS += ../../shared/vmeUniverse/vmeUniverse.h \
134    ../../powerpc/shared/vme/VMEConfig.h ../../powerpc/shared/vme/VME.h
135
136noinst_PROGRAMS += vme.rel
137vme_rel_SOURCES = ../../shared/vmeUniverse/vmeUniverse.c \
138    ../../shared/vmeUniverse/vmeUniverse.h \
139    ../../powerpc/shared/vme/vmeconfig.c \
140    ../../powerpc/shared/vme/VMEConfig.h ../../powerpc/shared/vme/VME.h
141vme_rel_CPPFLAGS = $(AM_CPPFLAGS)
142vme_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
143
144all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
145
146EXTRA_DIST += BOOTING README.mtx603e README.MVME2100 README.MVME2300 \
147    README.OTHERBOARDS README.mcp750 README.MVME2307 README.dec21140
148EXTRA_DIST += times.mcp750 times.mvme2307
149
150PREINSTALL_DIRS =
151PREINSTALL_FILES =
152TMPINSTALL_FILES =
153
154$(PROJECT_INCLUDE)/$(dirstamp):
155        @$(mkdir_p) $(PROJECT_INCLUDE)
156        @: > $(PROJECT_INCLUDE)/$(dirstamp)
157PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
158
159$(PROJECT_LIB)/$(dirstamp):
160        @$(mkdir_p) $(PROJECT_LIB)
161        @: > $(PROJECT_LIB)/$(dirstamp)
162PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
163
164$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
165        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
166PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
167
168$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
169        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
170PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
171
172$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
173        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
174PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
175
176$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
177        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
178PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
179
180$(PROJECT_INCLUDE)/bsp/$(dirstamp):
181        @$(mkdir_p) $(PROJECT_INCLUDE)/bsp
182        @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
183PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
184
185$(PROJECT_INCLUDE)/nvram.h: ../../powerpc/shared/include/nvram.h $(PROJECT_INCLUDE)/$(dirstamp)
186        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/nvram.h
187PREINSTALL_FILES += $(PROJECT_INCLUDE)/nvram.h
188
189$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
190        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
191PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
192
193$(PROJECT_INCLUDE)/tod.h: ../../shared/tod.h $(PROJECT_INCLUDE)/$(dirstamp)
194        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tod.h
195PREINSTALL_FILES += $(PROJECT_INCLUDE)/tod.h
196
197$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
198        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
199TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
200
201$(PROJECT_LIB)/rtems_crti.$(OBJEXT): rtems_crti.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
202        $(INSTALL_DATA) $< $(PROJECT_LIB)/rtems_crti.$(OBJEXT)
203TMPINSTALL_FILES += $(PROJECT_LIB)/rtems_crti.$(OBJEXT)
204
205$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
206        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
207PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
208
209$(PROJECT_INCLUDE)/bsp/consoleIo.h: ../../powerpc/shared/console/consoleIo.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
210        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/consoleIo.h
211PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/consoleIo.h
212
213$(PROJECT_INCLUDE)/bsp/uart.h: ../../powerpc/shared/console/uart.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
214        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/uart.h
215PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/uart.h
216
217$(PROJECT_INCLUDE)/bsp/irq.h: ../../powerpc/shared/irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
218        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
219PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
220
221$(PROJECT_INCLUDE)/bsp/motorola.h: ../../powerpc/shared/motorola/motorola.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
222        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/motorola.h
223PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/motorola.h
224
225$(PROJECT_INCLUDE)/bsp/openpic.h: ../../powerpc/shared/openpic/openpic.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
226        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/openpic.h
227PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/openpic.h
228
229$(PROJECT_INCLUDE)/bsp/pci.h: ../../powerpc/shared/pci/pci.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
230        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pci.h
231PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pci.h
232
233$(PROJECT_INCLUDE)/bsp/residual.h: ../../powerpc/shared/residual/residual.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
234        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/residual.h
235PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/residual.h
236
237$(PROJECT_INCLUDE)/bsp/pnp.h: ../../powerpc/shared/residual/pnp.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
238        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pnp.h
239PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pnp.h
240
241$(PROJECT_INCLUDE)/bsp/vectors.h: ../../powerpc/shared/vectors/vectors.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
242        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vectors.h
243PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vectors.h
244
245$(PROJECT_INCLUDE)/bsp/vmeUniverse.h: ../../shared/vmeUniverse/vmeUniverse.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
246        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vmeUniverse.h
247PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vmeUniverse.h
248
249$(PROJECT_INCLUDE)/bsp/VMEConfig.h: ../../powerpc/shared/vme/VMEConfig.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
250        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VMEConfig.h
251PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VMEConfig.h
252
253$(PROJECT_INCLUDE)/bsp/VME.h: ../../powerpc/shared/vme/VME.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
254        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VME.h
255PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VME.h
256
257CLEANFILES = $(PREINSTALL_FILES)
258DISTCLEANFILES += $(PREINSTALL_DIRS)
259CLEANFILES += $(TMPINSTALL_FILES)
260
261include $(top_srcdir)/../../../../automake/subdirs.am
262include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.