source: rtems/c/src/lib/libcpu/powerpc/Makefile.am @ 079c3ed

4.104.114.9
Last change on this file since 079c3ed was 079c3ed, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 27, 2008 at 7:10:37 AM

Remove doxygen comments.

  • Property mode set to 100644
File size: 14.3 KB
Line 
1#
2# $Id$
3#
4
5ACLOCAL_AMFLAGS = -I ../../../aclocal
6
7include $(top_srcdir)/../../../automake/compile.am
8
9include_rtems_powerpcdir = $(includedir)/rtems/powerpc
10include_rtems_powerpc_HEADERS = rtems/powerpc/cache.h \
11    rtems/powerpc/debugmod.h rtems/powerpc/powerpc.h
12
13include_rtems_scoredir = $(includedir)/rtems/score
14include_libcpudir = $(includedir)/libcpu
15
16include_libcpu_HEADERS = shared/include/powerpc-utility.h
17
18EXTRA_DIST =
19
20noinst_PROGRAMS = new-exceptions/rtems-cpu.rel
21new_exceptions_rtems_cpu_rel_SOURCES = new-exceptions/cpu.c \
22    new-exceptions/cpu_asm.S
23new_exceptions_rtems_cpu_rel_CPPFLAGS = $(AM_CPPFLAGS)
24new_exceptions_rtems_cpu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
25
26
27if !mpc5xx
28include_libcpu_HEADERS += new-exceptions/raw_exception.h
29noinst_PROGRAMS += new-exceptions/raw_exception.rel
30new_exceptions_raw_exception_rel_SOURCES = new-exceptions/raw_exception.c \
31    new-exceptions/asm_utils.S \
32        new-exceptions/e500_raw_exc_init.c
33new_exceptions_raw_exception_rel_CPPFLAGS = $(AM_CPPFLAGS)
34new_exceptions_raw_exception_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
35
36noinst_PROGRAMS += new-exceptions/exc_bspsupport.rel
37new_exceptions_exc_bspsupport_rel_SOURCES = \
38    new-exceptions/bspsupport/ppc_exc.S \
39    new-exceptions/bspsupport/ppc_exc_hdl.c \
40    new-exceptions/bspsupport/vectors_init.c
41new_exceptions_exc_bspsupport_rel_CPPFLAGS = $(AM_CPPFLAGS)
42new_exceptions_exc_bspsupport_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
43
44noinst_PROGRAMS += new-exceptions/irq_bspsupport.rel
45
46new_exceptions_irq_bspsupport_rel_SOURCES = new-exceptions/bspsupport/irq.c
47new_exceptions_irq_bspsupport_rel_CPPFLAGS = $(AM_CPPFLAGS)
48new_exceptions_irq_bspsupport_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
49endif
50
51EXTRA_DIST += new-exceptions/bspsupport/vectors.h
52EXTRA_DIST += new-exceptions/bspsupport/irq_supp.h
53EXTRA_DIST += new-exceptions/bspsupport/ppc_exc_bspsupp.h
54EXTRA_DIST += new-exceptions/bspsupport/README
55EXTRA_DIST += new-exceptions/bspsupport/nest_irq_test.c
56EXTRA_DIST += new-exceptions/bspsupport/ppc_exc_test.c
57
58# shared/include
59if shared
60include_libcpu_HEADERS += shared/include/io.h shared/include/mmu.h shared/include/page.h \
61    shared/include/byteorder.h shared/include/pgtable.h
62
63noinst_PROGRAMS += shared/cpuIdent.rel
64shared_cpuIdent_rel_SOURCES = shared/include/cpuIdent.c shared/include/cpuIdent.h
65shared_cpuIdent_rel_CPPFLAGS = $(AM_CPPFLAGS)
66shared_cpuIdent_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
67
68include_libcpu_HEADERS += shared/include/cpuIdent.h
69
70# shared/cache
71noinst_PROGRAMS += shared/cache.rel
72shared_cache_rel_SOURCES = shared/src/cache.c shared/src/cache_.h \
73    ../shared/src/cache_aligned_malloc.c ../shared/src/cache_manager.c \
74    ../shared/include/cache.h
75shared_cache_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/src
76shared_cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
77
78include_libcpu_HEADERS += ../shared/include/cache.h
79
80# shared/stack
81noinst_PROGRAMS += shared/stack.rel
82shared_stack_rel_SOURCES = shared/src/stack.c shared/include/spr.h shared/src/stackTrace.h
83shared_stack_rel_CPPFLAGS = $(AM_CPPFLAGS)
84shared_stack_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
85
86include_libcpu_HEADERS += shared/include/spr.h
87include_libcpu_HEADERS += shared/src/stackTrace.h
88endif
89
90EXTRA_DIST += ppc403/README ppc403/vectors/README
91if ppc403
92# ppc403/clock
93noinst_PROGRAMS += ppc403/clock.rel
94ppc403_clock_rel_SOURCES = ppc403/clock/clock.c
95ppc403_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
96ppc403_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
97
98# ppc403/console
99noinst_PROGRAMS += ppc403/console.rel
100if ppc405
101ppc403_console_rel_SOURCES = ppc403/console/console405.c
102else
103ppc403_console_rel_SOURCES = ppc403/console/console.c
104endif
105ppc403_console_rel_CPPFLAGS = $(AM_CPPFLAGS)
106ppc403_console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
107
108include_HEADERS =
109shared_cpuIdent_rel_SOURCES = shared/include/cpuIdent.c
110shared_cpuIdent_rel_CPPFLAGS = $(AM_CPPFLAGS)
111shared_cpuIdent_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
112
113# ppc403/timer
114noinst_PROGRAMS += ppc403/timer.rel
115ppc403_timer_rel_SOURCES = ppc403/timer/timer.c
116ppc403_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
117ppc403_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
118
119# ppc403/tty_drv
120if ppc405
121include_HEADERS += ppc403/tty_drv/tty_drv.h
122
123noinst_PROGRAMS += ppc403/tty_drv.rel
124ppc403_tty_drv_rel_SOURCES = ppc403/tty_drv/tty_drv.c ppc403/tty_drv/tty_drv.h
125ppc403_tty_drv_rel_CPPFLAGS = $(AM_CPPFLAGS)
126ppc403_tty_drv_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
127endif
128
129endif # ppc403
130
131if ppc405
132
133## ppc4xx/include
134include_ppc4xxdir = $(includedir)/ppc4xx
135include_ppc4xx_HEADERS = ppc403/include/ppc405gp.h \
136                         ppc403/include/ppc405ex.h
137
138endif # ppc405
139
140
141## mpc5xx
142EXTRA_DIST += mpc5xx/README
143if mpc5xx
144include_mpc5xxdir = $(includedir)/mpc5xx
145
146include_HEADERS = mpc5xx/include/mpc5xx.h
147
148# mpc5xx/clock
149noinst_PROGRAMS += mpc5xx/clock.rel
150mpc5xx_clock_rel_SOURCES = mpc5xx/clock/clock.c
151mpc5xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
152mpc5xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
153
154# mpc5xx/console-generic
155include_mpc5xx_HEADERS = mpc5xx/include/console.h
156
157noinst_PROGRAMS += mpc5xx/console-generic.rel
158mpc5xx_console_generic_rel_SOURCES = mpc5xx/console-generic/console-generic.c
159mpc5xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
160mpc5xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
161
162# mpc5xx/exceptions
163include_libcpu_HEADERS += mpc5xx/exceptions/raw_exception.h
164
165noinst_PROGRAMS += mpc5xx/exceptions.rel
166mpc5xx_exceptions_rel_SOURCES = mpc5xx/exceptions/raw_exception.c
167mpc5xx_exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS)
168mpc5xx_exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
169
170# mpc5xx/irq
171include_libcpu_HEADERS += mpc5xx/irq/irq.h
172
173noinst_PROGRAMS += mpc5xx/irq.rel
174mpc5xx_irq_rel_SOURCES = mpc5xx/irq/irq.c mpc5xx/irq/irq_init.c mpc5xx/irq/irq_asm.S
175mpc5xx_irq_rel_CPPFLAGS = $(AM_CPPFLAGS)
176mpc5xx_irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
177
178# mpc5xx/timer
179noinst_PROGRAMS += mpc5xx/timer.rel
180mpc5xx_timer_rel_SOURCES = mpc5xx/timer/timer.c
181mpc5xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
182mpc5xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
183
184# mpc5xx/vectors
185include_libcpu_HEADERS += mpc5xx/vectors/vectors.h
186
187noinst_PROGRAMS += mpc5xx/vectors.rel
188mpc5xx_vectors_rel_SOURCES = mpc5xx/vectors/vectors_init.c mpc5xx/vectors/vectors.S
189mpc5xx_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
190mpc5xx_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
191endif
192
193if mpc505
194# mpc505/ictrl
195include_HEADERS = mpc505/ictrl/ictrl.h
196
197noinst_PROGRAMS += mpc505/ictrl.rel
198mpc505_ictrl_rel_SOURCES = mpc505/ictrl/ictrl.c
199mpc505_ictrl_rel_CPPFLAGS = $(AM_CPPFLAGS)
200mpc505_ictrl_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
201
202# mpc505/timer
203noinst_PROGRAMS += mpc505/timer.rel
204mpc505_timer_rel_SOURCES = mpc505/timer/timer.c
205mpc505_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
206mpc505_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
207
208# mpc505/vector
209noinst_PROGRAMS += mpc505/vectors.rel
210mpc505_vectors_rel_SOURCES = mpc505/vectors/vectors.S
211mpc505_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
212mpc505_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
213endif
214
215if mpc6xx
216
217# mpc6xx/mmu
218include_libcpu_HEADERS += mpc6xx/mmu/bat.h mpc6xx/mmu/pte121.h
219
220noinst_PROGRAMS += mpc6xx/mmu.rel
221mpc6xx_mmu_rel_SOURCES = mpc6xx/mmu/bat.c mpc6xx/mmu/bat.h \
222    mpc6xx/mmu/pte121.c mpc6xx/mmu/pte121.h \
223    mpc6xx/mmu/mmuAsm.S
224mpc6xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
225mpc6xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
226
227# mpc6xx/clock
228include_libcpu_HEADERS += mpc6xx/clock/c_clock.h
229
230noinst_PROGRAMS += mpc6xx/clock.rel
231mpc6xx_clock_rel_SOURCES = mpc6xx/clock/c_clock.c mpc6xx/clock/c_clock.h
232mpc6xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
233mpc6xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
234
235# mpc6xx/timer
236noinst_PROGRAMS += mpc6xx/timer.rel
237mpc6xx_timer_rel_SOURCES = mpc6xx/timer/timer.c
238mpc6xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
239mpc6xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
240endif
241
242if e500
243# mpc6xx/clock
244include_libcpu_HEADERS += mpc6xx/clock/c_clock.h
245
246noinst_PROGRAMS += e500/clock.rel
247e500_clock_rel_SOURCES = mpc6xx/clock/c_clock.c mpc6xx/clock/c_clock.h
248e500_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
249e500_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
250
251# mpc6xx/timer
252noinst_PROGRAMS += e500/timer.rel
253e500_timer_rel_SOURCES = mpc6xx/timer/timer.c
254e500_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
255e500_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
256
257# e500/mmu
258include_libcpu_HEADERS += e500/mmu/e500_mmu.h
259noinst_PROGRAMS += e500/mmu.rel
260e500_mmu_rel_SOURCES = e500/mmu/mmu.c e500/mmu/e500_mmu.h
261e500_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
262e500_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
263endif
264
265EXTRA_DIST += mpc8xx/README
266if mpc8xx
267include_mpc8xxdir = $(includedir)/mpc8xx
268
269include_HEADERS = mpc8xx/include/mpc8xx.h
270
271# mpc8xx/clock
272noinst_PROGRAMS += mpc8xx/clock.rel
273mpc8xx_clock_rel_SOURCES = mpc8xx/clock/clock.c
274mpc8xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
275mpc8xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
276
277# mpc8xx/console-generic
278include_mpc8xx_HEADERS = mpc8xx/include/console.h
279
280noinst_PROGRAMS += mpc8xx/console-generic.rel
281mpc8xx_console_generic_rel_SOURCES = mpc8xx/console-generic/console-generic.c
282mpc8xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
283mpc8xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
284
285# mpc8xx/cpm
286include_mpc8xx_HEADERS += mpc8xx/include/cpm.h
287
288noinst_PROGRAMS += mpc8xx/cpm.rel
289mpc8xx_cpm_rel_SOURCES = mpc8xx/cpm/cp.c mpc8xx/cpm/dpram.c
290mpc8xx_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
291mpc8xx_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
292
293# mpc8xx/mmu
294include_mpc8xx_HEADERS += mpc8xx/include/mmu.h
295
296noinst_PROGRAMS += mpc8xx/mmu.rel
297mpc8xx_mmu_rel_SOURCES = mpc8xx/mmu/mmu.c
298mpc8xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
299mpc8xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
300
301# mpc8xx/timer
302noinst_PROGRAMS += mpc8xx/timer.rel
303mpc8xx_timer_rel_SOURCES = mpc8xx/timer/timer.c
304mpc8xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
305mpc8xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
306endif
307
308EXTRA_DIST += mpc8260/README
309if mpc8260
310include_mpc8260dir = $(includedir)/mpc8260
311
312include_HEADERS = mpc8260/include/mpc8260.h
313
314# mpc8260/console-generic
315include_mpc8260_HEADERS = mpc8260/include/console.h
316
317noinst_PROGRAMS += mpc8260/console-generic.rel
318mpc8260_console_generic_rel_SOURCES = mpc8260/console-generic/console-generic.c \
319    mpc8260/include/console.h
320mpc8260_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
321mpc8260_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
322
323# mpc8260/clock
324noinst_PROGRAMS += mpc8260/clock.rel
325mpc8260_clock_rel_SOURCES = mpc8260/clock/clock.c
326mpc8260_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
327mpc8260_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
328
329# mpc8260/cpm
330include_mpc8260_HEADERS += mpc8260/include/cpm.h
331
332noinst_PROGRAMS += mpc8260/cpm.rel
333mpc8260_cpm_rel_SOURCES = mpc8260/cpm/cp.c mpc8260/cpm/dpram.c mpc8260/cpm/brg.c \
334    mpc8260/include/cpm.h
335mpc8260_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
336mpc8260_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
337
338# mpc8260/mmu
339include_mpc8260_HEADERS += mpc8260/include/mmu.h
340
341noinst_PROGRAMS += mpc8260/mmu.rel
342mpc8260_mmu_rel_SOURCES = mpc8260/mmu/mmu.c \
343                          mpc8260/include/mmu.h
344mpc8260_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
345mpc8260_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
346
347# mpc8260/timer
348noinst_PROGRAMS += mpc8260/timer.rel
349mpc8260_timer_rel_SOURCES = mpc8260/timer/timer.c
350mpc8260_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
351mpc8260_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
352endif
353
354##############################################################################
355# START: MPC83XX                                                             #
356##############################################################################
357if mpc83xx
358
359# Includes
360include_bspdir = $(includedir)/bsp
361
362include_bsp_HEADERS = new-exceptions/bspsupport/vectors.h \
363        new-exceptions/bspsupport/ppc_exc_bspsupp.h
364
365include_mpc83xxdir = $(includedir)/mpc83xx
366
367include_mpc83xx_HEADERS = mpc83xx/include/mpc83xx.h
368
369# Network
370include_mpc83xx_HEADERS += mpc83xx/network/tsec.h
371if HAS_NETWORKING
372noinst_PROGRAMS += mpc83xx/tsec.rel
373mpc83xx_tsec_rel_SOURCES = mpc83xx/network/tsec.c
374mpc83xx_tsec_rel_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
375mpc83xx_tsec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
376endif
377
378# i2c
379include_mpc83xx_HEADERS += mpc83xx/i2c/mpc83xx_i2cdrv.h
380noinst_PROGRAMS += mpc83xx/i2c.rel
381mpc83xx_i2c_rel_SOURCES = mpc83xx/i2c/mpc83xx_i2cdrv.c \
382        mpc83xx/i2c/mpc83xx_i2cdrv.h
383mpc83xx_i2c_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
384
385# SPI
386include_mpc83xx_HEADERS += mpc83xx/spi/mpc83xx_spidrv.h
387noinst_PROGRAMS += mpc83xx/spi.rel
388mpc83xx_spi_rel_SOURCES = mpc83xx/spi/mpc83xx_spidrv.c \
389        mpc83xx/spi/mpc83xx_spidrv.h
390mpc83xx_spi_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
391
392# GTM
393include_mpc83xx_HEADERS += mpc83xx/include/gtm.h
394noinst_PROGRAMS += mpc83xx/gtm.rel
395mpc83xx_gtm_rel_SOURCES = mpc83xx/gtm/gtm.c \
396        mpc83xx/include/gtm.h
397mpc83xx_gtm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
398
399endif
400##############################################################################
401# END: MPC83XX                                                               #
402##############################################################################
403
404##############################################################################
405# START: MPC55XX                                                             #
406##############################################################################
407if mpc55xx
408
409# Includes
410include_bspdir = $(includedir)/bsp
411
412include_bsp_HEADERS = new-exceptions/bspsupport/vectors.h \
413        new-exceptions/bspsupport/ppc_exc_bspsupp.h \
414        mpc55xx/include/irq.h
415
416include_mpc55xxdir = $(includedir)/mpc55xx
417
418include_mpc55xx_HEADERS = mpc55xx/include/regs.h \
419        mpc55xx/include/reg-defs.h \
420        mpc55xx/include/dspi.h \
421        mpc55xx/include/edma.h \
422        mpc55xx/include/mpc55xx.h \
423        mpc55xx/include/esci.h \
424        mpc55xx/include/watchdog.h
425
426# IRQ
427noinst_PROGRAMS += mpc55xx/irq.rel
428mpc55xx_irq_rel_SOURCES = mpc55xx/irq/irq.c
429mpc55xx_irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
430
431# FEC
432noinst_PROGRAMS += mpc55xx/fec.rel
433mpc55xx_fec_rel_SOURCES = mpc55xx/fec/fec.c
434mpc55xx_fec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
435
436# EMDA
437noinst_PROGRAMS += mpc55xx/edma.rel
438mpc55xx_edma_rel_SOURCES = mpc55xx/edma/edma.c
439mpc55xx_edma_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
440
441# ESCI
442noinst_PROGRAMS += mpc55xx/esci.rel
443mpc55xx_esci_rel_SOURCES = mpc55xx/esci/esci.c
444mpc55xx_esci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
445
446# DSPI
447noinst_PROGRAMS += mpc55xx/dspi.rel
448mpc55xx_dspi_rel_SOURCES = mpc55xx/dspi/dspi.c
449mpc55xx_dspi_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
450
451# Misc
452noinst_PROGRAMS += mpc55xx/misc.rel
453mpc55xx_misc_rel_SOURCES = mpc55xx/misc/copy.S \
454        mpc55xx/misc/fmpll.S \
455        mpc55xx/misc/flash.S
456mpc55xx_misc_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
457
458endif
459##############################################################################
460# END: MPC55XX                                                               #
461##############################################################################
462
463include $(srcdir)/preinstall.am
464include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.