1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../../automake/compile.am |
---|
8 | include $(top_srcdir)/../../bsp.am |
---|
9 | |
---|
10 | dist_project_lib_DATA = bsp_specs |
---|
11 | |
---|
12 | include_HEADERS = include/bsp.h |
---|
13 | include_HEADERS += include/tm27.h |
---|
14 | |
---|
15 | nodist_include_HEADERS = include/bspopts.h |
---|
16 | DISTCLEANFILES = include/bspopts.h |
---|
17 | nodist_include_HEADERS += ../../shared/include/coverhd.h |
---|
18 | |
---|
19 | noinst_PROGRAMS = |
---|
20 | |
---|
21 | include_bspdir = $(includedir)/bsp |
---|
22 | |
---|
23 | include_HEADERS += ../../shared/tod.h |
---|
24 | include_HEADERS += include/coverhd.h include/gen2.h |
---|
25 | |
---|
26 | ### |
---|
27 | dist_project_lib_DATA += startup/linkcmds |
---|
28 | |
---|
29 | noinst_PROGRAMS += startup.rel |
---|
30 | startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \ |
---|
31 | ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \ |
---|
32 | ../../shared/main.c ../../shared/sbrk.c \ |
---|
33 | startup/Hwr_init.c startup/genpvec.c \ |
---|
34 | ../../shared/gnatinstallhandler.c |
---|
35 | startup_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
36 | startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
37 | |
---|
38 | ### |
---|
39 | noinst_PROGRAMS += pclock.rel |
---|
40 | pclock_rel_SOURCES = ../../powerpc/shared/clock/p_clock.c |
---|
41 | pclock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
42 | pclock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
43 | |
---|
44 | ### |
---|
45 | ### include_bsp_HEADERS = |
---|
46 | |
---|
47 | noinst_PROGRAMS += console.rel |
---|
48 | console_rel_SOURCES = console/85c30.c console/85c30.h console/console.c \ |
---|
49 | console/consolereserveresources.c console/tbl85c30.c \ |
---|
50 | console/consolebsp.h |
---|
51 | console_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
52 | console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
53 | |
---|
54 | ### |
---|
55 | include_bsp_HEADERS = ../../powerpc/shared/pci/pci.h |
---|
56 | |
---|
57 | noinst_PROGRAMS += pci.rel |
---|
58 | pci_rel_SOURCES = pci/no_host_bridge.c ../../powerpc/shared/pci/pci.c \ |
---|
59 | ../../powerpc/shared/pci/pcifinddevice.c |
---|
60 | pci_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
61 | pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
62 | |
---|
63 | ### |
---|
64 | include_bsp_HEADERS += irq/irq.h |
---|
65 | |
---|
66 | noinst_PROGRAMS += irq.rel |
---|
67 | irq_rel_SOURCES = irq/FPGA.c irq/irq.c \ |
---|
68 | ../../powerpc/shared/irq/irq_asm.S |
---|
69 | irq_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
70 | irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
71 | |
---|
72 | ## |
---|
73 | include_bsp_HEADERS += ../../powerpc/shared/vectors/vectors.h |
---|
74 | |
---|
75 | noinst_PROGRAMS += vectors.rel |
---|
76 | vectors_rel_SOURCES = ../../powerpc/shared/vectors/vectors_init.c \ |
---|
77 | ../../powerpc/shared/vectors/vectors.S |
---|
78 | vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
79 | vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
80 | |
---|
81 | ## |
---|
82 | include_bsp_HEADERS += ../../shared/vmeUniverse/vmeUniverse.h \ |
---|
83 | ../../powerpc/shared/vme/VMEConfig.h ../../powerpc/shared/vme/VME.h |
---|
84 | |
---|
85 | noinst_PROGRAMS += vme.rel |
---|
86 | vme_rel_SOURCES = ../../shared/vmeUniverse/vmeUniverse.c \ |
---|
87 | vme/vmeconfig.c |
---|
88 | vme_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
89 | vme_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
90 | |
---|
91 | ## |
---|
92 | |
---|
93 | EXTRA_DIST = start/start.S |
---|
94 | start.$(OBJEXT): start/start.S |
---|
95 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
96 | project_lib_DATA = start.$(OBJEXT) |
---|
97 | |
---|
98 | EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S |
---|
99 | rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S |
---|
100 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
101 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
102 | |
---|
103 | noinst_LIBRARIES = libbsp.a |
---|
104 | libbsp_a_SOURCES = |
---|
105 | libbsp_a_LIBADD = pclock.rel console.rel irq.rel \ |
---|
106 | pci.rel vectors.rel startup.rel vme.rel |
---|
107 | libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \ |
---|
108 | ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \ |
---|
109 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \ |
---|
110 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \ |
---|
111 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/exceptions.rel \ |
---|
112 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \ |
---|
113 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel |
---|
114 | |
---|
115 | all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) |
---|
116 | |
---|
117 | ### |
---|
118 | |
---|
119 | PREINSTALL_DIRS = |
---|
120 | PREINSTALL_FILES = |
---|
121 | TMPINSTALL_FILES = |
---|
122 | |
---|
123 | $(PROJECT_INCLUDE)/$(dirstamp): |
---|
124 | @$(mkdir_p) $(PROJECT_INCLUDE) |
---|
125 | @: > $(PROJECT_INCLUDE)/$(dirstamp) |
---|
126 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp) |
---|
127 | |
---|
128 | $(PROJECT_LIB)/$(dirstamp): |
---|
129 | @$(mkdir_p) $(PROJECT_LIB) |
---|
130 | @: > $(PROJECT_LIB)/$(dirstamp) |
---|
131 | PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp) |
---|
132 | |
---|
133 | $(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp) |
---|
134 | $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs |
---|
135 | PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs |
---|
136 | |
---|
137 | $(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
138 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h |
---|
139 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h |
---|
140 | |
---|
141 | $(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
142 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h |
---|
143 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h |
---|
144 | |
---|
145 | $(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
146 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h |
---|
147 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h |
---|
148 | |
---|
149 | $(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
150 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h |
---|
151 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h |
---|
152 | |
---|
153 | $(PROJECT_INCLUDE)/bsp/$(dirstamp): |
---|
154 | @$(mkdir_p) $(PROJECT_INCLUDE)/bsp |
---|
155 | @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
156 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
157 | |
---|
158 | $(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp) |
---|
159 | $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds |
---|
160 | PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds |
---|
161 | |
---|
162 | $(PROJECT_INCLUDE)/tod.h: ../../shared/tod.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
163 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tod.h |
---|
164 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/tod.h |
---|
165 | |
---|
166 | $(PROJECT_INCLUDE)/gen2.h: include/gen2.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
167 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gen2.h |
---|
168 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/gen2.h |
---|
169 | |
---|
170 | $(PROJECT_INCLUDE)/bsp/consoleIo.h: ../../powerpc/shared/console/consoleIo.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
171 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/consoleIo.h |
---|
172 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/consoleIo.h |
---|
173 | |
---|
174 | $(PROJECT_INCLUDE)/bsp/uart.h: ../../powerpc/shared/console/uart.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
175 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/uart.h |
---|
176 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/uart.h |
---|
177 | |
---|
178 | $(PROJECT_INCLUDE)/bsp/motorola.h: ../../powerpc/shared/motorola/motorola.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
179 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/motorola.h |
---|
180 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/motorola.h |
---|
181 | |
---|
182 | $(PROJECT_INCLUDE)/bsp/openpic.h: ../../powerpc/shared/openpic/openpic.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
183 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/openpic.h |
---|
184 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/openpic.h |
---|
185 | |
---|
186 | $(PROJECT_INCLUDE)/bsp/pci.h: ../../powerpc/shared/pci/pci.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
187 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pci.h |
---|
188 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pci.h |
---|
189 | |
---|
190 | $(PROJECT_INCLUDE)/bsp/residual.h: ../../powerpc/shared/residual/residual.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
191 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/residual.h |
---|
192 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/residual.h |
---|
193 | |
---|
194 | $(PROJECT_INCLUDE)/bsp/pnp.h: ../../powerpc/shared/residual/pnp.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
195 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pnp.h |
---|
196 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pnp.h |
---|
197 | |
---|
198 | $(PROJECT_INCLUDE)/bsp/irq.h: ../../powerpc/shared/irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
199 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h |
---|
200 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h |
---|
201 | |
---|
202 | $(PROJECT_INCLUDE)/bsp/vectors.h: ../../powerpc/shared/vectors/vectors.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
203 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vectors.h |
---|
204 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vectors.h |
---|
205 | |
---|
206 | $(PROJECT_INCLUDE)/bsp/vmeUniverse.h: ../../shared/vmeUniverse/vmeUniverse.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
207 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vmeUniverse.h |
---|
208 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vmeUniverse.h |
---|
209 | |
---|
210 | $(PROJECT_INCLUDE)/bsp/VMEConfig.h: ../../powerpc/shared/vme/VMEConfig.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
211 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VMEConfig.h |
---|
212 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VMEConfig.h |
---|
213 | |
---|
214 | $(PROJECT_INCLUDE)/bsp/VME.h: ../../powerpc/shared/vme/VME.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
215 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VME.h |
---|
216 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VME.h |
---|
217 | |
---|
218 | if HAS_NETWORKING |
---|
219 | endif |
---|
220 | |
---|
221 | $(PROJECT_LIB)/rtems_crti.$(OBJEXT): rtems_crti.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp) |
---|
222 | $(INSTALL_DATA) $< $(PROJECT_LIB)/rtems_crti.$(OBJEXT) |
---|
223 | TMPINSTALL_FILES += $(PROJECT_LIB)/rtems_crti.$(OBJEXT) |
---|
224 | |
---|
225 | $(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp) |
---|
226 | $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT) |
---|
227 | TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT) |
---|
228 | |
---|
229 | CLEANFILES = $(PREINSTALL_FILES) |
---|
230 | DISTCLEANFILES += $(PREINSTALL_DIRS) |
---|
231 | CLEANFILES += $(TMPINSTALL_FILES) |
---|
232 | |
---|
233 | include $(top_srcdir)/../../../../automake/subdirs.am |
---|
234 | include $(top_srcdir)/../../../../automake/local.am |
---|