1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../automake/compile.am |
---|
8 | |
---|
9 | include_rtems_powerpcdir = $(includedir)/rtems/powerpc |
---|
10 | include_rtems_powerpc_HEADERS = rtems/powerpc/cache.h \ |
---|
11 | rtems/powerpc/debugmod.h rtems/powerpc/powerpc.h |
---|
12 | |
---|
13 | include_rtems_scoredir = $(includedir)/rtems/score |
---|
14 | include_libcpudir = $(includedir)/libcpu |
---|
15 | |
---|
16 | include_libcpu_HEADERS = |
---|
17 | |
---|
18 | EXTRA_DIST = old-exceptions/TODO old-exceptions/README |
---|
19 | EXTRA_DIST += old-exceptions/irq_stub.S old-exceptions/ppccache.c |
---|
20 | if OLD_EXCEPTIONS |
---|
21 | include_rtems_score_HEADERS = old-exceptions/rtems/score/ppc_offs.h |
---|
22 | |
---|
23 | noinst_PROGRAMS = old-exceptions/rtems-cpu.rel |
---|
24 | old_exceptions_rtems_cpu_rel_SOURCES = old-exceptions/cpu.c \ |
---|
25 | old-exceptions/cpu_asm.S old-exceptions/rtems/score/ppc_offs.h |
---|
26 | old_exceptions_rtems_cpu_rel_CPPFLAGS = $(AM_CPPFLAGS) \ |
---|
27 | -I$(srcdir)/old-exceptions |
---|
28 | old_exceptions_rtems_cpu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
29 | else |
---|
30 | noinst_PROGRAMS = new-exceptions/rtems-cpu.rel |
---|
31 | new_exceptions_rtems_cpu_rel_SOURCES = new-exceptions/cpu.c \ |
---|
32 | new-exceptions/cpu_asm.S |
---|
33 | new_exceptions_rtems_cpu_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
34 | new_exceptions_rtems_cpu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
35 | endif |
---|
36 | |
---|
37 | ## shared/include |
---|
38 | if shared |
---|
39 | include_libcpu_HEADERS += shared/include/io.h shared/include/mmu.h shared/include/page.h \ |
---|
40 | shared/include/byteorder.h shared/include/pgtable.h |
---|
41 | |
---|
42 | noinst_PROGRAMS += shared/cpuIdent.rel |
---|
43 | shared_cpuIdent_rel_SOURCES = shared/include/cpuIdent.c shared/include/cpuIdent.h |
---|
44 | shared_cpuIdent_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
45 | shared_cpuIdent_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
46 | |
---|
47 | include_libcpu_HEADERS += shared/include/cpuIdent.h |
---|
48 | |
---|
49 | ## shared/cache |
---|
50 | noinst_PROGRAMS += shared/cache.rel |
---|
51 | shared_cache_rel_SOURCES = shared/src/cache.c shared/src/cache_.h \ |
---|
52 | ../shared/src/cache_aligned_malloc.c ../shared/src/cache_manager.c \ |
---|
53 | ../shared/include/cache.h |
---|
54 | shared_cache_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/src |
---|
55 | shared_cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
56 | |
---|
57 | include_libcpu_HEADERS += ../shared/include/cache.h |
---|
58 | |
---|
59 | ## shared/stack |
---|
60 | noinst_PROGRAMS += shared/stack.rel |
---|
61 | shared_stack_rel_SOURCES = shared/src/stack.c shared/include/spr.h shared/src/stackTrace.h |
---|
62 | shared_stack_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
63 | shared_stack_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
64 | |
---|
65 | include_libcpu_HEADERS += shared/include/spr.h |
---|
66 | include_libcpu_HEADERS += shared/src/stackTrace.h |
---|
67 | endif |
---|
68 | |
---|
69 | EXTRA_DIST += ppc403/README ppc403/vectors/README |
---|
70 | if ppc403 |
---|
71 | ## ppc403/clock |
---|
72 | noinst_PROGRAMS += ppc403/clock.rel |
---|
73 | ppc403_clock_rel_SOURCES = ppc403/clock/clock.c |
---|
74 | ppc403_clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
75 | ppc403_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
76 | |
---|
77 | ## ppc403/console |
---|
78 | noinst_PROGRAMS += ppc403/console.rel |
---|
79 | if ppc405 |
---|
80 | ppc403_console_rel_SOURCES = ppc403/console/console405.c |
---|
81 | else |
---|
82 | ppc403_console_rel_SOURCES = ppc403/console/console.c |
---|
83 | endif |
---|
84 | ppc403_console_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
85 | ppc403_console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
86 | |
---|
87 | ## ppc403/ictrl |
---|
88 | include_HEADERS = ppc403/ictrl/ictrl.h |
---|
89 | |
---|
90 | noinst_PROGRAMS += ppc403/ictrl.rel |
---|
91 | ppc403_ictrl_rel_SOURCES = ppc403/ictrl/ictrl.c ppc403/ictrl/ictrl.h |
---|
92 | ppc403_ictrl_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
93 | ppc403_ictrl_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
94 | |
---|
95 | ## ppc403/timer |
---|
96 | noinst_PROGRAMS += ppc403/timer.rel |
---|
97 | ppc403_timer_rel_SOURCES = ppc403/timer/timer.c |
---|
98 | ppc403_timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
99 | ppc403_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
100 | |
---|
101 | ## ppc403/tty_drv |
---|
102 | if ppc405 |
---|
103 | include_HEADERS += ppc403/tty_drv/tty_drv.h |
---|
104 | |
---|
105 | noinst_PROGRAMS += ppc403/tty_drv.rel |
---|
106 | ppc403_tty_drv_rel_SOURCES = ppc403/tty_drv/tty_drv.c ppc403/tty_drv/tty_drv.h |
---|
107 | ppc403_tty_drv_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
108 | ppc403_tty_drv_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
109 | endif |
---|
110 | |
---|
111 | ## ppc403/vectors |
---|
112 | noinst_PROGRAMS += ppc403/vectors.rel |
---|
113 | ppc403_vectors_rel_SOURCES = ppc403/vectors/vectors.S ppc403/vectors/align_h.S |
---|
114 | ppc403_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
115 | ppc403_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
116 | endif |
---|
117 | |
---|
118 | EXTRA_DIST += mpc5xx/README |
---|
119 | if mpc5xx |
---|
120 | include_mpc5xxdir = $(includedir)/mpc5xx |
---|
121 | |
---|
122 | include_HEADERS = mpc5xx/include/mpc5xx.h |
---|
123 | |
---|
124 | ## mpc5xx/clock |
---|
125 | noinst_PROGRAMS += mpc5xx/clock.rel |
---|
126 | mpc5xx_clock_rel_SOURCES = mpc5xx/clock/clock.c |
---|
127 | mpc5xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
128 | mpc5xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
129 | |
---|
130 | ## mpc5xx/console-generic |
---|
131 | include_mpc5xx_HEADERS = mpc5xx/include/console.h |
---|
132 | |
---|
133 | noinst_PROGRAMS += mpc5xx/console-generic.rel |
---|
134 | mpc5xx_console_generic_rel_SOURCES = mpc5xx/console-generic/console-generic.c |
---|
135 | mpc5xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
136 | mpc5xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
137 | |
---|
138 | ## mpc5xx/exceptions |
---|
139 | include_libcpu_HEADERS += mpc5xx/exceptions/raw_exception.h |
---|
140 | |
---|
141 | noinst_PROGRAMS += mpc5xx/exceptions.rel |
---|
142 | mpc5xx_exceptions_rel_SOURCES = mpc5xx/exceptions/raw_exception.c |
---|
143 | mpc5xx_exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
144 | mpc5xx_exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
145 | |
---|
146 | ## mpc5xx/irq |
---|
147 | include_libcpu_HEADERS += mpc5xx/irq/irq.h |
---|
148 | |
---|
149 | noinst_PROGRAMS += mpc5xx/irq.rel |
---|
150 | mpc5xx_irq_rel_SOURCES = mpc5xx/irq/irq.c mpc5xx/irq/irq_init.c mpc5xx/irq/irq_asm.S |
---|
151 | mpc5xx_irq_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
152 | mpc5xx_irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
153 | |
---|
154 | ## mpc5xx/timer |
---|
155 | noinst_PROGRAMS += mpc5xx/timer.rel |
---|
156 | mpc5xx_timer_rel_SOURCES = mpc5xx/timer/timer.c |
---|
157 | mpc5xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
158 | mpc5xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
159 | |
---|
160 | ## mpc5xx/vectors |
---|
161 | include_libcpu_HEADERS += mpc5xx/vectors/vectors.h |
---|
162 | |
---|
163 | noinst_PROGRAMS += mpc5xx/vectors.rel |
---|
164 | mpc5xx_vectors_rel_SOURCES = mpc5xx/vectors/vectors_init.c mpc5xx/vectors/vectors.S |
---|
165 | mpc5xx_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
166 | mpc5xx_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
167 | endif |
---|
168 | |
---|
169 | if mpc505 |
---|
170 | ## mpc505/ictrl |
---|
171 | include_HEADERS = mpc505/ictrl/ictrl.h |
---|
172 | |
---|
173 | noinst_PROGRAMS += mpc505/ictrl.rel |
---|
174 | mpc505_ictrl_rel_SOURCES = mpc505/ictrl/ictrl.c |
---|
175 | mpc505_ictrl_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
176 | mpc505_ictrl_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
177 | |
---|
178 | ## mpc505/timer |
---|
179 | noinst_PROGRAMS += mpc505/timer.rel |
---|
180 | mpc505_timer_rel_SOURCES = mpc505/timer/timer.c |
---|
181 | mpc505_timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
182 | mpc505_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
183 | |
---|
184 | ## mpc505/vector |
---|
185 | noinst_PROGRAMS += mpc505/vectors.rel |
---|
186 | mpc505_vectors_rel_SOURCES = mpc505/vectors/vectors.S |
---|
187 | mpc505_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
188 | mpc505_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
189 | endif |
---|
190 | |
---|
191 | if mpc6xx |
---|
192 | include_libcpu_HEADERS += mpc6xx/exceptions/raw_exception.h |
---|
193 | |
---|
194 | ## mpc6xx/exceptions |
---|
195 | noinst_PROGRAMS += mpc6xx/exceptions.rel |
---|
196 | mpc6xx_exceptions_rel_SOURCES = mpc6xx/exceptions/raw_exception.c \ |
---|
197 | mpc6xx/exceptions/asm_utils.S |
---|
198 | mpc6xx_exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
199 | mpc6xx_exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
200 | |
---|
201 | ## mpc6xx/mmu |
---|
202 | include_libcpu_HEADERS += mpc6xx/mmu/bat.h mpc6xx/mmu/pte121.h |
---|
203 | |
---|
204 | noinst_PROGRAMS += mpc6xx/mmu.rel |
---|
205 | mpc6xx_mmu_rel_SOURCES = mpc6xx/mmu/bat.c mpc6xx/mmu/bat.h \ |
---|
206 | mpc6xx/mmu/pte121.c mpc6xx/mmu/pte121.h \ |
---|
207 | mpc6xx/mmu/mmuAsm.S |
---|
208 | mpc6xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
209 | mpc6xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
210 | |
---|
211 | ## mpc6xx/clock |
---|
212 | include_libcpu_HEADERS += mpc6xx/clock/c_clock.h |
---|
213 | |
---|
214 | noinst_PROGRAMS += mpc6xx/clock.rel |
---|
215 | mpc6xx_clock_rel_SOURCES = mpc6xx/clock/c_clock.c mpc6xx/clock/c_clock.h |
---|
216 | mpc6xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
217 | mpc6xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
218 | |
---|
219 | ## mpc6xx/timer |
---|
220 | noinst_PROGRAMS += mpc6xx/timer.rel |
---|
221 | mpc6xx_timer_rel_SOURCES = mpc6xx/timer/timer.c |
---|
222 | mpc6xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
223 | mpc6xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
224 | endif |
---|
225 | |
---|
226 | EXTRA_DIST += mpc8xx/README |
---|
227 | if mpc8xx |
---|
228 | include_mpc8xxdir = $(includedir)/mpc8xx |
---|
229 | |
---|
230 | include_HEADERS = mpc8xx/include/mpc8xx.h |
---|
231 | |
---|
232 | ## mpc8xx/clock |
---|
233 | noinst_PROGRAMS += mpc8xx/clock.rel |
---|
234 | mpc8xx_clock_rel_SOURCES = mpc8xx/clock/clock.c |
---|
235 | mpc8xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
236 | mpc8xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
237 | |
---|
238 | ## mpc8xx/console-generic |
---|
239 | include_mpc8xx_HEADERS = mpc8xx/include/console.h |
---|
240 | |
---|
241 | noinst_PROGRAMS += mpc8xx/console-generic.rel |
---|
242 | mpc8xx_console_generic_rel_SOURCES = mpc8xx/console-generic/console-generic.c |
---|
243 | mpc8xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
244 | mpc8xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
245 | |
---|
246 | ## mpc8xx/cpm |
---|
247 | include_mpc8xx_HEADERS += mpc8xx/include/cpm.h |
---|
248 | |
---|
249 | noinst_PROGRAMS += mpc8xx/cpm.rel |
---|
250 | mpc8xx_cpm_rel_SOURCES = mpc8xx/cpm/cp.c mpc8xx/cpm/dpram.c |
---|
251 | mpc8xx_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
252 | mpc8xx_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
253 | |
---|
254 | ## mpc8xx/exceptions |
---|
255 | include_libcpu_HEADERS += mpc8xx/exceptions/raw_exception.h |
---|
256 | |
---|
257 | noinst_PROGRAMS += mpc8xx/exceptions.rel |
---|
258 | mpc8xx_exceptions_rel_SOURCES = mpc8xx/exceptions/raw_exception.c \ |
---|
259 | mpc8xx/exceptions/asm_utils.S |
---|
260 | mpc8xx_exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
261 | mpc8xx_exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
262 | |
---|
263 | ## mpc8xx/mmu |
---|
264 | include_mpc8xx_HEADERS += mpc8xx/include/mmu.h |
---|
265 | |
---|
266 | noinst_PROGRAMS += mpc8xx/mmu.rel |
---|
267 | mpc8xx_mmu_rel_SOURCES = mpc8xx/mmu/mmu.c |
---|
268 | mpc8xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
269 | mpc8xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
270 | |
---|
271 | ## mpc8xx/timer |
---|
272 | noinst_PROGRAMS += mpc8xx/timer.rel |
---|
273 | mpc8xx_timer_rel_SOURCES = mpc8xx/timer/timer.c |
---|
274 | mpc8xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
275 | mpc8xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
276 | endif |
---|
277 | |
---|
278 | EXTRA_DIST += mpc8260/README |
---|
279 | if mpc8260 |
---|
280 | include_mpc8260dir = $(includedir)/mpc8260 |
---|
281 | |
---|
282 | include_HEADERS = mpc8260/include/mpc8260.h |
---|
283 | |
---|
284 | ## mpc8260/console-generic |
---|
285 | include_mpc8260_HEADERS = mpc8260/include/console.h |
---|
286 | |
---|
287 | noinst_PROGRAMS += mpc8260/console-generic.rel |
---|
288 | mpc8260_console_generic_rel_SOURCES = mpc8260/console-generic/console-generic.c \ |
---|
289 | mpc8260/include/console.h |
---|
290 | mpc8260_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
291 | mpc8260_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
292 | |
---|
293 | ## mpc8260/clock |
---|
294 | noinst_PROGRAMS += mpc8260/clock.rel |
---|
295 | mpc8260_clock_rel_SOURCES = mpc8260/clock/clock.c |
---|
296 | mpc8260_clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
297 | mpc8260_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
298 | |
---|
299 | ## mpc8260/cpm |
---|
300 | include_mpc8260_HEADERS += mpc8260/include/cpm.h |
---|
301 | |
---|
302 | noinst_PROGRAMS += mpc8260/cpm.rel |
---|
303 | mpc8260_cpm_rel_SOURCES = mpc8260/cpm/cp.c mpc8260/cpm/dpram.c mpc8260/cpm/brg.c \ |
---|
304 | mpc8260/include/cpm.h |
---|
305 | mpc8260_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
306 | mpc8260_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
307 | |
---|
308 | ## mpc8260/exceptions |
---|
309 | include_libcpu_HEADERS += mpc8260/exceptions/raw_exception.h |
---|
310 | |
---|
311 | noinst_PROGRAMS += mpc8260/exceptions.rel |
---|
312 | mpc8260_exceptions_rel_SOURCES = mpc8260/exceptions/raw_exception.c \ |
---|
313 | mpc8260/exceptions/asm_utils.S \ |
---|
314 | mpc8260/exceptions/raw_exception.h |
---|
315 | mpc8260_exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
316 | mpc8260_exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
317 | |
---|
318 | ## mpc8260/mmu |
---|
319 | include_mpc8260_HEADERS += mpc8260/include/mmu.h |
---|
320 | |
---|
321 | noinst_PROGRAMS += mpc8260/mmu.rel |
---|
322 | mpc8260_mmu_rel_SOURCES = mpc8260/mmu/mmu.c mpc8260/include/mmu.h |
---|
323 | mpc8260_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
324 | mpc8260_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
325 | |
---|
326 | ## mpc8260/timer |
---|
327 | noinst_PROGRAMS += mpc8260/timer.rel |
---|
328 | mpc8260_timer_rel_SOURCES = mpc8260/timer/timer.c |
---|
329 | mpc8260_timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
330 | mpc8260_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
331 | endif |
---|
332 | |
---|
333 | include $(srcdir)/preinstall.am |
---|
334 | include $(top_srcdir)/../../../automake/local.am |
---|