source: rtems/c/src/lib/libbsp/powerpc/gen5200/Makefile.am @ 0a7ea49

4.104.114.84.95
Last change on this file since 0a7ea49 was 0a7ea49, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/31/05 at 13:11:34

Misc. fixes.

  • Property mode set to 100644
File size: 8.6 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7include $(top_srcdir)/../../../../automake/compile.am
8include $(top_srcdir)/../../bsp.am
9
10dist_project_lib_DATA = bsp_specs
11
12include_HEADERS = include/bsp.h include/i2cdrv.h include/u-boot.h \
13    include/i2c.h include/mpc5200.h
14include_HEADERS += include/tm27.h
15
16nodist_include_HEADERS = include/bspopts.h
17DISTCLEANFILES = include/bspopts.h
18
19noinst_PROGRAMS =
20
21include_bspdir = $(includedir)/bsp
22
23include_HEADERS += include/coverhd.h
24
25nodist_include_HEADERS += ../../shared/tod.h
26
27EXTRA_DIST = start/start.S
28start.$(OBJEXT): start/start.S
29        $(CPPASCOMPILE) -DASM -o $@ -c $<
30project_lib_DATA = start.$(OBJEXT)
31
32dist_project_lib_DATA += startup/linkcmds startup/linkcmds.pm520
33
34noinst_PROGRAMS += bestcomm.rel
35bestcomm_rel_SOURCES = bestcomm/bestcomm_api.c bestcomm/bestcomm_api.h
36bestcomm_rel_SOURCES += bestcomm/bestcomm_glue.c bestcomm/bestcomm_glue.h
37bestcomm_rel_SOURCES += bestcomm/dma_image.c bestcomm/dma_image.reloc.c \
38    bestcomm/load_task.c bestcomm/tasksetup_ata.c \
39    bestcomm/tasksetup_bdtable.c bestcomm/tasksetup_crc16_dp_0.c \
40    bestcomm/tasksetup_crc16_dp_1.c bestcomm/tasksetup_fec_rx_bd.c \
41    bestcomm/tasksetup_fec_tx_bd.c bestcomm/tasksetup_gen_dp_0.c \
42    bestcomm/tasksetup_gen_dp_1.c bestcomm/tasksetup_gen_dp_2.c \
43    bestcomm/tasksetup_gen_dp_3.c bestcomm/tasksetup_gen_dp_bd_0.c \
44    bestcomm/tasksetup_gen_dp_bd_1.c bestcomm/tasksetup_gen_rx_bd.c \
45    bestcomm/tasksetup_gen_tx_bd.c bestcomm/tasksetup_lpc.c \
46    bestcomm/tasksetup_pci_rx.c bestcomm/tasksetup_pci_tx.c
47bestcomm_rel_CPPFLAGS = $(AM_CPPFLAGS)
48bestcomm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
49
50noinst_PROGRAMS += clock.rel
51clock_rel_SOURCES = clock/clock.c
52clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
53clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
54
55noinst_PROGRAMS += console.rel
56console_rel_SOURCES = console/console.c
57console_rel_CPPFLAGS = $(AM_CPPFLAGS)
58console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
59
60noinst_PROGRAMS += i2c.rel
61i2c_rel_SOURCES = i2c/i2c.c i2c/i2cdrv.c i2c/mpc5200mbus.c \
62    i2c/mpc5200mbus.h
63i2c_rel_CPPFLAGS = $(AM_CPPFLAGS)
64i2c_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
65
66noinst_PROGRAMS += ide.rel
67ide_rel_SOURCES = ide/idecfg.c ide/pcmcia_ide.c ide/pcmcia_ide.h
68ide_rel_CPPFLAGS = $(AM_CPPFLAGS)
69ide_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
70
71include_bsp_HEADERS = irq/irq.h include/i2cdrv.h include/mpc5200.h \
72    include/i2c.h include/u-boot.h
73
74noinst_PROGRAMS += irq.rel
75irq_rel_SOURCES = irq/irq.c irq/irq_init.c irq/irq.h irq/irq_asm.S
76irq_rel_CPPFLAGS = $(AM_CPPFLAGS)
77irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
78
79noinst_PROGRAMS += mscan.rel
80mscan_rel_SOURCES = mscan/mscan.c mscan/mscan.h
81mscan_rel_CPPFLAGS = $(AM_CPPFLAGS)
82mscan_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
83
84noinst_PROGRAMS += nvram.rel
85nvram_rel_SOURCES = nvram/nvram.c nvram/nvram.h nvram/m93cxx.h
86nvram_rel_CPPFLAGS = $(AM_CPPFLAGS)
87nvram_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
88
89noinst_PROGRAMS += slicetimer.rel
90slicetimer_rel_SOURCES = slicetimer/slicetimer.c slicetimer/slicetimer.h
91slicetimer_rel_CPPFLAGS = $(AM_CPPFLAGS)
92slicetimer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
93
94noinst_PROGRAMS += tod.rel
95tod_rel_SOURCES = tod/todcfg.c tod/pcf8563.c tod/pcf8563.h \
96    ../../shared/tod.c
97tod_rel_CPPFLAGS = $(AM_CPPFLAGS)
98tod_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
99
100include_bsp_HEADERS += vectors/vectors.h
101
102noinst_PROGRAMS += startup.rel
103startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
104    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
105    ../../shared/main.c ../../shared/sbrk.c \
106    ../../shared/gnatinstallhandler.c startup/cpuinit.c
107startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
108startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
109
110noinst_PROGRAMS += vectors.rel
111vectors_rel_SOURCES = vectors/vectors_init.c vectors/vectors.h \
112    vectors/vectors.S
113vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
114vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
115
116if HAS_NETWORKING
117network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
118network_CPPFLAGS += -D__BSD_VISIBLE
119noinst_PROGRAMS += network.rel
120network_rel_SOURCES = network_5200/network.c
121network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)
122network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
123endif
124
125noinst_LIBRARIES = libbsp.a
126libbsp_a_SOURCES =
127libbsp_a_LIBADD = bestcomm.rel clock.rel console.rel i2c.rel ide.rel irq.rel \
128    mscan.rel nvram.rel slicetimer.rel tod.rel startup.rel vectors.rel
129if HAS_NETWORKING
130libbsp_a_LIBADD += network.rel
131endif
132libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
133    ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
134    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
135    ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
136    ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel \
137    ../../../libcpu/@RTEMS_CPU@/mpc6xx/exceptions.rel
138
139all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
140
141PREINSTALL_DIRS =
142PREINSTALL_FILES =
143TMPINSTALL_FILES =
144
145$(PROJECT_INCLUDE)/$(dirstamp):
146        @$(mkdir_p) $(PROJECT_INCLUDE)
147        @: > $(PROJECT_INCLUDE)/$(dirstamp)
148PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
149
150$(PROJECT_LIB)/$(dirstamp):
151        @$(mkdir_p) $(PROJECT_LIB)
152        @: > $(PROJECT_LIB)/$(dirstamp)
153PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
154
155$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
156        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
157PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
158
159$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
160        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
161PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
162
163$(PROJECT_INCLUDE)/i2cdrv.h: include/i2cdrv.h $(PROJECT_INCLUDE)/$(dirstamp)
164        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/i2cdrv.h
165PREINSTALL_FILES += $(PROJECT_INCLUDE)/i2cdrv.h
166
167$(PROJECT_INCLUDE)/u-boot.h: include/u-boot.h $(PROJECT_INCLUDE)/$(dirstamp)
168        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/u-boot.h
169PREINSTALL_FILES += $(PROJECT_INCLUDE)/u-boot.h
170
171$(PROJECT_INCLUDE)/i2c.h: include/i2c.h $(PROJECT_INCLUDE)/$(dirstamp)
172        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/i2c.h
173PREINSTALL_FILES += $(PROJECT_INCLUDE)/i2c.h
174
175$(PROJECT_INCLUDE)/mpc5200.h: include/mpc5200.h $(PROJECT_INCLUDE)/$(dirstamp)
176        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc5200.h
177PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc5200.h
178
179$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
180        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
181PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
182
183$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
184        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
185PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
186
187$(PROJECT_INCLUDE)/bsp/$(dirstamp):
188        @$(mkdir_p) $(PROJECT_INCLUDE)/bsp
189        @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
190PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
191
192$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
193        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
194PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
195
196$(PROJECT_INCLUDE)/tod.h: ../../shared/tod.h $(PROJECT_INCLUDE)/$(dirstamp)
197        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tod.h
198PREINSTALL_FILES += $(PROJECT_INCLUDE)/tod.h
199
200$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
201        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
202TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
203
204$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
205        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
206PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
207
208$(PROJECT_LIB)/linkcmds.pm520: startup/linkcmds.pm520 $(PROJECT_LIB)/$(dirstamp)
209        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.pm520
210PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.pm520
211
212$(PROJECT_INCLUDE)/bsp/irq.h: irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
213        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
214PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
215
216$(PROJECT_INCLUDE)/bsp/i2cdrv.h: include/i2cdrv.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
217        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/i2cdrv.h
218PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/i2cdrv.h
219
220$(PROJECT_INCLUDE)/bsp/mpc5200.h: include/mpc5200.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
221        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/mpc5200.h
222PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/mpc5200.h
223
224$(PROJECT_INCLUDE)/bsp/i2c.h: include/i2c.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
225        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/i2c.h
226PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/i2c.h
227
228$(PROJECT_INCLUDE)/bsp/u-boot.h: include/u-boot.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
229        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/u-boot.h
230PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/u-boot.h
231
232$(PROJECT_INCLUDE)/bsp/vectors.h: vectors/vectors.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
233        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vectors.h
234PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vectors.h
235
236CLEANFILES = $(PREINSTALL_FILES)
237DISTCLEANFILES += $(PREINSTALL_DIRS)
238CLEANFILES += $(TMPINSTALL_FILES)
239
240include $(top_srcdir)/../../../../automake/subdirs.am
241include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.