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

4.104.114.84.95
Last change on this file since 71cbb66 was 71cbb66, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/03/05 at 04:16:13

2005-01-02 Ralf Corsepius <ralf.corsepius@…>

  • Makefile.am, wrapup/Makefile.am: Remove build-variant support.
  • Property mode set to 100644
File size: 10.3 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) $(CFLAGS_OPTIMIZE_V)
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) $(CFLAGS_OPTIMIZE_V)
55tod_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
56
57noinst_PROGRAMS += pclock.rel
58pclock_rel_SOURCES = ../../powerpc/shared/clock/p_clock.c
59pclock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
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) $(CFLAGS_OPTIMIZE_V) \
76    $(console_CPPFLAGS)
77console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
78
79include_bsp_HEADERS += ../../powerpc/shared/irq/irq.h
80
81noinst_PROGRAMS += irq.rel
82irq_rel_SOURCES = ../../powerpc/shared/irq/irq_init.c \
83    ../../powerpc/shared/irq/i8259.c ../../powerpc/shared/irq/irq.c \
84    ../../powerpc/shared/irq/irq_asm.S ../../powerpc/shared/irq/irq.h
85irq_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
86irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
87
88include_bsp_HEADERS += ../../powerpc/shared/motorola/motorola.h
89
90noinst_PROGRAMS += motorola.rel
91motorola_rel_SOURCES = ../../powerpc/shared/motorola/motorola.h \
92    ../../powerpc/shared/motorola/motorola.c
93motorola_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
94motorola_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
95
96include_bsp_HEADERS += ../../powerpc/shared/openpic/openpic.h
97
98noinst_PROGRAMS += openpic.rel
99openpic_rel_SOURCES = ../../powerpc/shared/openpic/openpic.h \
100    ../../powerpc/shared/openpic/openpic.c \
101    ../../powerpc/shared/openpic/openpic.h
102
103openpic_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
104openpic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
105
106include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h
107
108noinst_PROGRAMS += pci.rel
109pci_rel_SOURCES = ../../powerpc/shared/pci/pci.c \
110    ../../powerpc/shared/pci/detect_raven_bridge.c \
111    ../../powerpc/shared/pci/pcifinddevice.c ../../powerpc/shared/pci/pci.h
112pci_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
113pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
114
115include_bsp_HEADERS += ../../powerpc/shared/residual/residual.h \
116    ../../powerpc/shared/residual/pnp.h
117
118noinst_PROGRAMS += residual.rel
119residual_rel_SOURCES = ../../powerpc/shared/residual/pnp.h \
120    ../../powerpc/shared/residual/residual.h \
121    ../../powerpc/shared/residual/residual.c
122residual_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
123residual_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
124
125include_bsp_HEADERS += ../../powerpc/shared/vectors/vectors.h
126
127noinst_PROGRAMS += vectors.rel
128vectors_rel_SOURCES = ../../powerpc/shared/vectors/vectors.h \
129    ../../powerpc/shared/vectors/vectors_init.c \
130    ../../powerpc/shared/vectors/vectors.S
131vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
132vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
133
134include_bsp_HEADERS += ../../shared/vmeUniverse/vmeUniverse.h \
135    ../../powerpc/shared/vme/VMEConfig.h ../../powerpc/shared/vme/VME.h
136
137noinst_PROGRAMS += vme.rel
138vme_rel_SOURCES = ../../shared/vmeUniverse/vmeUniverse.c \
139    ../../shared/vmeUniverse/vmeUniverse.h \
140    ../../powerpc/shared/vme/vmeconfig.c \
141    ../../powerpc/shared/vme/VMEConfig.h ../../powerpc/shared/vme/VME.h
142vme_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
143vme_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
144
145all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
146
147EXTRA_DIST += BOOTING README.mtx603e README.MVME2100 README.MVME2300 \
148    README.OTHERBOARDS README.mcp750 README.MVME2307 README.dec21140
149EXTRA_DIST += times.mcp750 times.mvme2307
150
151PREINSTALL_DIRS =
152PREINSTALL_FILES =
153TMPINSTALL_FILES =
154
155$(PROJECT_INCLUDE)/$(dirstamp):
156        @$(mkdir_p) $(PROJECT_INCLUDE)
157        @: > $(PROJECT_INCLUDE)/$(dirstamp)
158PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
159
160$(PROJECT_LIB)/$(dirstamp):
161        @$(mkdir_p) $(PROJECT_LIB)
162        @: > $(PROJECT_LIB)/$(dirstamp)
163PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
164
165$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
166        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
167PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
168
169$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
170        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
171PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
172
173$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
174        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
175PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
176
177$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
178        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
179PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
180
181$(PROJECT_INCLUDE)/bsp/$(dirstamp):
182        @$(mkdir_p) $(PROJECT_INCLUDE)/bsp
183        @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
184PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
185
186$(PROJECT_INCLUDE)/nvram.h: ../../powerpc/shared/include/nvram.h $(PROJECT_INCLUDE)/$(dirstamp)
187        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/nvram.h
188PREINSTALL_FILES += $(PROJECT_INCLUDE)/nvram.h
189
190$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
191        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
192PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
193
194$(PROJECT_INCLUDE)/tod.h: ../../shared/tod.h $(PROJECT_INCLUDE)/$(dirstamp)
195        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tod.h
196PREINSTALL_FILES += $(PROJECT_INCLUDE)/tod.h
197
198$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
199        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
200TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
201
202$(PROJECT_LIB)/rtems_crti.$(OBJEXT): rtems_crti.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
203        $(INSTALL_DATA) $< $(PROJECT_LIB)/rtems_crti.$(OBJEXT)
204TMPINSTALL_FILES += $(PROJECT_LIB)/rtems_crti.$(OBJEXT)
205
206$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
207        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
208PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
209
210$(PROJECT_INCLUDE)/bsp/consoleIo.h: ../../powerpc/shared/console/consoleIo.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
211        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/consoleIo.h
212PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/consoleIo.h
213
214$(PROJECT_INCLUDE)/bsp/uart.h: ../../powerpc/shared/console/uart.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
215        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/uart.h
216PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/uart.h
217
218$(PROJECT_INCLUDE)/bsp/irq.h: ../../powerpc/shared/irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
219        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
220PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
221
222$(PROJECT_INCLUDE)/bsp/motorola.h: ../../powerpc/shared/motorola/motorola.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
223        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/motorola.h
224PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/motorola.h
225
226$(PROJECT_INCLUDE)/bsp/openpic.h: ../../powerpc/shared/openpic/openpic.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
227        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/openpic.h
228PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/openpic.h
229
230$(PROJECT_INCLUDE)/bsp/pci.h: ../../powerpc/shared/pci/pci.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
231        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pci.h
232PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pci.h
233
234$(PROJECT_INCLUDE)/bsp/residual.h: ../../powerpc/shared/residual/residual.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
235        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/residual.h
236PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/residual.h
237
238$(PROJECT_INCLUDE)/bsp/pnp.h: ../../powerpc/shared/residual/pnp.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
239        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pnp.h
240PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pnp.h
241
242$(PROJECT_INCLUDE)/bsp/vectors.h: ../../powerpc/shared/vectors/vectors.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
243        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vectors.h
244PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vectors.h
245
246$(PROJECT_INCLUDE)/bsp/vmeUniverse.h: ../../shared/vmeUniverse/vmeUniverse.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
247        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vmeUniverse.h
248PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vmeUniverse.h
249
250$(PROJECT_INCLUDE)/bsp/VMEConfig.h: ../../powerpc/shared/vme/VMEConfig.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
251        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VMEConfig.h
252PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VMEConfig.h
253
254$(PROJECT_INCLUDE)/bsp/VME.h: ../../powerpc/shared/vme/VME.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
255        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VME.h
256PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VME.h
257
258CLEANFILES = $(PREINSTALL_FILES)
259DISTCLEANFILES += $(PREINSTALL_DIRS)
260CLEANFILES += $(TMPINSTALL_FILES)
261
262include $(top_srcdir)/../../../../automake/subdirs.am
263include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.