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

4.104.114.84.95
Last change on this file since 78f96ab was 78f96ab, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on Jul 5, 2007 at 8:32:43 PM

fixed some problems with shared PPC exception handling code

  • Property mode set to 100644
File size: 10.1 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 =
101shared_cpuIdent_rel_SOURCES = shared/include/cpuIdent.c
102shared_cpuIdent_rel_CPPFLAGS = $(AM_CPPFLAGS)
103shared_cpuIdent_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
104
105endif
106
107if OLD_EXCEPTIONS
108noinst_PROGRAMS += ppc403/ictrl.rel
109ppc403_ictrl_rel_SOURCES = ppc403/ictrl/ictrl.c ppc403/ictrl/ictrl.h
110ppc403_ictrl_rel_CPPFLAGS = $(AM_CPPFLAGS)
111ppc403_ictrl_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
112endif
113
114## ppc403/timer
115noinst_PROGRAMS += ppc403/timer.rel
116ppc403_timer_rel_SOURCES = ppc403/timer/timer.c
117ppc403_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
118ppc403_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
119
120## ppc403/tty_drv
121if ppc405
122include_HEADERS += ppc403/tty_drv/tty_drv.h
123
124noinst_PROGRAMS += ppc403/tty_drv.rel
125ppc403_tty_drv_rel_SOURCES = ppc403/tty_drv/tty_drv.c ppc403/tty_drv/tty_drv.h
126ppc403_tty_drv_rel_CPPFLAGS = $(AM_CPPFLAGS)
127ppc403_tty_drv_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
128endif
129
130if OLD_EXCEPTIONS
131## ppc403/vectors
132noinst_PROGRAMS += ppc403/vectors.rel
133ppc403_vectors_rel_SOURCES = ppc403/vectors/vectors.S ppc403/vectors/align_h.S
134ppc403_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
135ppc403_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
136endif
137endif
138
139EXTRA_DIST += mpc5xx/README
140if mpc5xx
141include_mpc5xxdir = $(includedir)/mpc5xx
142
143include_HEADERS = mpc5xx/include/mpc5xx.h
144
145## mpc5xx/clock
146noinst_PROGRAMS += mpc5xx/clock.rel
147mpc5xx_clock_rel_SOURCES = mpc5xx/clock/clock.c
148mpc5xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
149mpc5xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
150
151## mpc5xx/console-generic
152include_mpc5xx_HEADERS = mpc5xx/include/console.h
153
154noinst_PROGRAMS += mpc5xx/console-generic.rel
155mpc5xx_console_generic_rel_SOURCES = mpc5xx/console-generic/console-generic.c
156mpc5xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
157mpc5xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
158
159## mpc5xx/exceptions
160include_libcpu_HEADERS += mpc5xx/exceptions/raw_exception.h
161
162noinst_PROGRAMS += mpc5xx/exceptions.rel
163mpc5xx_exceptions_rel_SOURCES = mpc5xx/exceptions/raw_exception.c
164mpc5xx_exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS)
165mpc5xx_exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
166
167## mpc5xx/irq
168include_libcpu_HEADERS += mpc5xx/irq/irq.h
169
170noinst_PROGRAMS += mpc5xx/irq.rel
171mpc5xx_irq_rel_SOURCES = mpc5xx/irq/irq.c mpc5xx/irq/irq_init.c mpc5xx/irq/irq_asm.S
172mpc5xx_irq_rel_CPPFLAGS = $(AM_CPPFLAGS)
173mpc5xx_irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
174
175## mpc5xx/timer
176noinst_PROGRAMS += mpc5xx/timer.rel
177mpc5xx_timer_rel_SOURCES = mpc5xx/timer/timer.c
178mpc5xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
179mpc5xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
180
181## mpc5xx/vectors
182include_libcpu_HEADERS += mpc5xx/vectors/vectors.h
183
184noinst_PROGRAMS += mpc5xx/vectors.rel
185mpc5xx_vectors_rel_SOURCES = mpc5xx/vectors/vectors_init.c mpc5xx/vectors/vectors.S
186mpc5xx_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
187mpc5xx_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
188endif
189
190if mpc505
191## mpc505/ictrl
192include_HEADERS = mpc505/ictrl/ictrl.h
193
194noinst_PROGRAMS += mpc505/ictrl.rel
195mpc505_ictrl_rel_SOURCES = mpc505/ictrl/ictrl.c
196mpc505_ictrl_rel_CPPFLAGS = $(AM_CPPFLAGS)
197mpc505_ictrl_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
198
199## mpc505/timer
200noinst_PROGRAMS += mpc505/timer.rel
201mpc505_timer_rel_SOURCES = mpc505/timer/timer.c
202mpc505_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
203mpc505_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
204
205## mpc505/vector
206noinst_PROGRAMS += mpc505/vectors.rel
207mpc505_vectors_rel_SOURCES = mpc505/vectors/vectors.S
208mpc505_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
209mpc505_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
210endif
211
212if mpc6xx
213
214## mpc6xx/mmu
215include_libcpu_HEADERS += mpc6xx/mmu/bat.h mpc6xx/mmu/pte121.h
216
217noinst_PROGRAMS += mpc6xx/mmu.rel
218mpc6xx_mmu_rel_SOURCES = mpc6xx/mmu/bat.c mpc6xx/mmu/bat.h \
219    mpc6xx/mmu/pte121.c mpc6xx/mmu/pte121.h \
220    mpc6xx/mmu/mmuAsm.S
221mpc6xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
222mpc6xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
223
224## mpc6xx/clock
225include_libcpu_HEADERS += mpc6xx/clock/c_clock.h
226
227noinst_PROGRAMS += mpc6xx/clock.rel
228mpc6xx_clock_rel_SOURCES = mpc6xx/clock/c_clock.c mpc6xx/clock/c_clock.h
229mpc6xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
230mpc6xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
231
232## mpc6xx/timer
233noinst_PROGRAMS += mpc6xx/timer.rel
234mpc6xx_timer_rel_SOURCES = mpc6xx/timer/timer.c
235mpc6xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
236mpc6xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
237endif
238
239EXTRA_DIST += mpc8xx/README
240if mpc8xx
241include_mpc8xxdir = $(includedir)/mpc8xx
242
243include_HEADERS = mpc8xx/include/mpc8xx.h
244
245## mpc8xx/clock
246noinst_PROGRAMS += mpc8xx/clock.rel
247mpc8xx_clock_rel_SOURCES = mpc8xx/clock/clock.c
248mpc8xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
249mpc8xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
250
251## mpc8xx/console-generic
252include_mpc8xx_HEADERS = mpc8xx/include/console.h
253
254noinst_PROGRAMS += mpc8xx/console-generic.rel
255mpc8xx_console_generic_rel_SOURCES = mpc8xx/console-generic/console-generic.c
256mpc8xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
257mpc8xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
258
259## mpc8xx/cpm
260include_mpc8xx_HEADERS += mpc8xx/include/cpm.h
261
262noinst_PROGRAMS += mpc8xx/cpm.rel
263mpc8xx_cpm_rel_SOURCES = mpc8xx/cpm/cp.c mpc8xx/cpm/dpram.c
264mpc8xx_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
265mpc8xx_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
266
267## mpc8xx/mmu
268include_mpc8xx_HEADERS += mpc8xx/include/mmu.h
269
270noinst_PROGRAMS += mpc8xx/mmu.rel
271mpc8xx_mmu_rel_SOURCES = mpc8xx/mmu/mmu.c
272mpc8xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
273mpc8xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
274
275## mpc8xx/timer
276noinst_PROGRAMS += mpc8xx/timer.rel
277mpc8xx_timer_rel_SOURCES = mpc8xx/timer/timer.c
278mpc8xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
279mpc8xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
280endif
281
282EXTRA_DIST += mpc8260/README
283if mpc8260
284include_mpc8260dir = $(includedir)/mpc8260
285
286include_HEADERS = mpc8260/include/mpc8260.h
287
288## mpc8260/console-generic
289include_mpc8260_HEADERS = mpc8260/include/console.h
290
291noinst_PROGRAMS += mpc8260/console-generic.rel
292mpc8260_console_generic_rel_SOURCES = mpc8260/console-generic/console-generic.c \
293    mpc8260/include/console.h
294mpc8260_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
295mpc8260_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
296
297## mpc8260/clock
298noinst_PROGRAMS += mpc8260/clock.rel
299mpc8260_clock_rel_SOURCES = mpc8260/clock/clock.c
300mpc8260_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
301mpc8260_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
302
303## mpc8260/cpm
304include_mpc8260_HEADERS += mpc8260/include/cpm.h
305
306noinst_PROGRAMS += mpc8260/cpm.rel
307mpc8260_cpm_rel_SOURCES = mpc8260/cpm/cp.c mpc8260/cpm/dpram.c mpc8260/cpm/brg.c \
308    mpc8260/include/cpm.h
309mpc8260_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
310mpc8260_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
311
312## mpc8260/mmu
313include_mpc8260_HEADERS += mpc8260/include/mmu.h
314
315noinst_PROGRAMS += mpc8260/mmu.rel
316mpc8260_mmu_rel_SOURCES = mpc8260/mmu/mmu.c mpc8260/include/mmu.h
317mpc8260_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
318mpc8260_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
319
320## mpc8260/timer
321noinst_PROGRAMS += mpc8260/timer.rel
322mpc8260_timer_rel_SOURCES = mpc8260/timer/timer.c
323mpc8260_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
324mpc8260_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
325endif
326
327include $(srcdir)/preinstall.am
328include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.