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

4.104.114.9
Last change on this file since a86f3aac was cd12be09, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 19, 2008 at 6:10:21 PM

Remove refs to OLD_EXCEPTIONS.

  • Property mode set to 100644
File size: 11.8 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 =
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
130
131EXTRA_DIST += mpc5xx/README
132if mpc5xx
133include_mpc5xxdir = $(includedir)/mpc5xx
134
135include_HEADERS = mpc5xx/include/mpc5xx.h
136
137## mpc5xx/clock
138noinst_PROGRAMS += mpc5xx/clock.rel
139mpc5xx_clock_rel_SOURCES = mpc5xx/clock/clock.c
140mpc5xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
141mpc5xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
142
143## mpc5xx/console-generic
144include_mpc5xx_HEADERS = mpc5xx/include/console.h
145
146noinst_PROGRAMS += mpc5xx/console-generic.rel
147mpc5xx_console_generic_rel_SOURCES = mpc5xx/console-generic/console-generic.c
148mpc5xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
149mpc5xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
150
151## mpc5xx/exceptions
152include_libcpu_HEADERS += mpc5xx/exceptions/raw_exception.h
153
154noinst_PROGRAMS += mpc5xx/exceptions.rel
155mpc5xx_exceptions_rel_SOURCES = mpc5xx/exceptions/raw_exception.c
156mpc5xx_exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS)
157mpc5xx_exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
158
159## mpc5xx/irq
160include_libcpu_HEADERS += mpc5xx/irq/irq.h
161
162noinst_PROGRAMS += mpc5xx/irq.rel
163mpc5xx_irq_rel_SOURCES = mpc5xx/irq/irq.c mpc5xx/irq/irq_init.c mpc5xx/irq/irq_asm.S
164mpc5xx_irq_rel_CPPFLAGS = $(AM_CPPFLAGS)
165mpc5xx_irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
166
167## mpc5xx/timer
168noinst_PROGRAMS += mpc5xx/timer.rel
169mpc5xx_timer_rel_SOURCES = mpc5xx/timer/timer.c
170mpc5xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
171mpc5xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
172
173## mpc5xx/vectors
174include_libcpu_HEADERS += mpc5xx/vectors/vectors.h
175
176noinst_PROGRAMS += mpc5xx/vectors.rel
177mpc5xx_vectors_rel_SOURCES = mpc5xx/vectors/vectors_init.c mpc5xx/vectors/vectors.S
178mpc5xx_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
179mpc5xx_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
180endif
181
182if mpc505
183## mpc505/ictrl
184include_HEADERS = mpc505/ictrl/ictrl.h
185
186noinst_PROGRAMS += mpc505/ictrl.rel
187mpc505_ictrl_rel_SOURCES = mpc505/ictrl/ictrl.c
188mpc505_ictrl_rel_CPPFLAGS = $(AM_CPPFLAGS)
189mpc505_ictrl_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
190
191## mpc505/timer
192noinst_PROGRAMS += mpc505/timer.rel
193mpc505_timer_rel_SOURCES = mpc505/timer/timer.c
194mpc505_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
195mpc505_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
196
197## mpc505/vector
198noinst_PROGRAMS += mpc505/vectors.rel
199mpc505_vectors_rel_SOURCES = mpc505/vectors/vectors.S
200mpc505_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
201mpc505_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
202endif
203
204if mpc6xx
205
206## mpc6xx/mmu
207include_libcpu_HEADERS += mpc6xx/mmu/bat.h mpc6xx/mmu/pte121.h
208
209noinst_PROGRAMS += mpc6xx/mmu.rel
210mpc6xx_mmu_rel_SOURCES = mpc6xx/mmu/bat.c mpc6xx/mmu/bat.h \
211    mpc6xx/mmu/pte121.c mpc6xx/mmu/pte121.h \
212    mpc6xx/mmu/mmuAsm.S
213mpc6xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
214mpc6xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
215
216## mpc6xx/clock
217include_libcpu_HEADERS += mpc6xx/clock/c_clock.h
218
219noinst_PROGRAMS += mpc6xx/clock.rel
220mpc6xx_clock_rel_SOURCES = mpc6xx/clock/c_clock.c mpc6xx/clock/c_clock.h
221mpc6xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
222mpc6xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
223
224## mpc6xx/timer
225noinst_PROGRAMS += mpc6xx/timer.rel
226mpc6xx_timer_rel_SOURCES = mpc6xx/timer/timer.c
227mpc6xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
228mpc6xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
229endif
230
231if e500
232## mpc6xx/clock
233include_libcpu_HEADERS += mpc6xx/clock/c_clock.h
234
235noinst_PROGRAMS += e500/clock.rel
236e500_clock_rel_SOURCES = mpc6xx/clock/c_clock.c mpc6xx/clock/c_clock.h
237e500_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
238e500_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
239
240## mpc6xx/timer
241noinst_PROGRAMS += e500/timer.rel
242e500_timer_rel_SOURCES = mpc6xx/timer/timer.c
243e500_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
244e500_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
245
246## e500/mmu
247include_libcpu_HEADERS += e500/mmu/e500_mmu.h
248noinst_PROGRAMS += e500/mmu.rel
249e500_mmu_rel_SOURCES = e500/mmu/mmu.c e500/mmu/e500_mmu.h
250e500_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
251e500_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
252endif
253
254EXTRA_DIST += mpc8xx/README
255if mpc8xx
256include_mpc8xxdir = $(includedir)/mpc8xx
257
258include_HEADERS = mpc8xx/include/mpc8xx.h
259
260## mpc8xx/clock
261noinst_PROGRAMS += mpc8xx/clock.rel
262mpc8xx_clock_rel_SOURCES = mpc8xx/clock/clock.c
263mpc8xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
264mpc8xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
265
266## mpc8xx/console-generic
267include_mpc8xx_HEADERS = mpc8xx/include/console.h
268
269noinst_PROGRAMS += mpc8xx/console-generic.rel
270mpc8xx_console_generic_rel_SOURCES = mpc8xx/console-generic/console-generic.c
271mpc8xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
272mpc8xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
273
274## mpc8xx/cpm
275include_mpc8xx_HEADERS += mpc8xx/include/cpm.h
276
277noinst_PROGRAMS += mpc8xx/cpm.rel
278mpc8xx_cpm_rel_SOURCES = mpc8xx/cpm/cp.c mpc8xx/cpm/dpram.c
279mpc8xx_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
280mpc8xx_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
281
282## mpc8xx/mmu
283include_mpc8xx_HEADERS += mpc8xx/include/mmu.h
284
285noinst_PROGRAMS += mpc8xx/mmu.rel
286mpc8xx_mmu_rel_SOURCES = mpc8xx/mmu/mmu.c
287mpc8xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
288mpc8xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
289
290## mpc8xx/timer
291noinst_PROGRAMS += mpc8xx/timer.rel
292mpc8xx_timer_rel_SOURCES = mpc8xx/timer/timer.c
293mpc8xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
294mpc8xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
295endif
296
297EXTRA_DIST += mpc8260/README
298if mpc8260
299include_mpc8260dir = $(includedir)/mpc8260
300
301include_HEADERS = mpc8260/include/mpc8260.h
302
303## mpc8260/console-generic
304include_mpc8260_HEADERS = mpc8260/include/console.h
305
306noinst_PROGRAMS += mpc8260/console-generic.rel
307mpc8260_console_generic_rel_SOURCES = mpc8260/console-generic/console-generic.c \
308    mpc8260/include/console.h
309mpc8260_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
310mpc8260_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
311
312## mpc8260/clock
313noinst_PROGRAMS += mpc8260/clock.rel
314mpc8260_clock_rel_SOURCES = mpc8260/clock/clock.c
315mpc8260_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
316mpc8260_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
317
318## mpc8260/cpm
319include_mpc8260_HEADERS += mpc8260/include/cpm.h
320
321noinst_PROGRAMS += mpc8260/cpm.rel
322mpc8260_cpm_rel_SOURCES = mpc8260/cpm/cp.c mpc8260/cpm/dpram.c mpc8260/cpm/brg.c \
323    mpc8260/include/cpm.h
324mpc8260_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
325mpc8260_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
326
327## mpc8260/mmu
328include_mpc8260_HEADERS += mpc8260/include/mmu.h
329
330noinst_PROGRAMS += mpc8260/mmu.rel
331mpc8260_mmu_rel_SOURCES = mpc8260/mmu/mmu.c \
332                          mpc8260/include/mmu.h
333mpc8260_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
334mpc8260_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
335
336## mpc8260/timer
337noinst_PROGRAMS += mpc8260/timer.rel
338mpc8260_timer_rel_SOURCES = mpc8260/timer/timer.c
339mpc8260_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
340mpc8260_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
341endif
342
343if mpc83xx
344include_mpc83xxdir = $(includedir)/mpc83xx
345include_mpc83xx_HEADERS  = mpc83xx/include/mpc83xx.h
346include_mpc83xx_HEADERS += mpc83xx/network/tsec.h
347
348## mpc83xx/network
349if HAS_NETWORKING
350noinst_PROGRAMS += mpc83xx/tsec.rel
351mpc83xx_tsec_rel_SOURCES   = mpc83xx/network/tsec.c
352mpc83xx_tsec_rel_CPPFLAGS  = $(AM_CPPFLAGS)
353mpc83xx_tsec_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__  -D__BSD_VISIBLE
354mpc83xx_tsec_rel_LDFLAGS   = $(RTEMS_RELLDFLAGS)
355endif
356## mpc83xx/i2c
357include_mpc83xx_HEADERS += mpc83xx/i2c/mpc83xx_i2cdrv.h
358noinst_PROGRAMS += mpc83xx/i2c.rel
359mpc83xx_i2c_rel_SOURCES   = mpc83xx/i2c/mpc83xx_i2cdrv.c \
360                            mpc83xx/i2c/mpc83xx_i2cdrv.h
361mpc83xx_i2c_rel_CPPFLAGS  = $(AM_CPPFLAGS)
362mpc83xx_i2c_rel_LDFLAGS   = $(RTEMS_RELLDFLAGS)
363
364## mpc83xx/spi
365include_mpc83xx_HEADERS += mpc83xx/spi/mpc83xx_spidrv.h
366noinst_PROGRAMS += mpc83xx/spi.rel
367mpc83xx_spi_rel_SOURCES   = mpc83xx/spi/mpc83xx_spidrv.c \
368                            mpc83xx/spi/mpc83xx_spidrv.h
369mpc83xx_spi_rel_CPPFLAGS  = $(AM_CPPFLAGS)
370mpc83xx_spi_rel_LDFLAGS   = $(RTEMS_RELLDFLAGS)
371
372endif
373
374include $(srcdir)/preinstall.am
375include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.