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

4.104.114.84.95
Last change on this file since 20074c49 was 73cdeb6, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 07/04/07 at 12:25:49

merged individual exception handler code to a common one.

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