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

4.104.114.95
Last change on this file since 694c00cb was 694c00cb, checked in by Till Straumann <strauman@…>, on 12/06/07 at 00:21:07

2007-12-05 Till Straumann <strauman@…>

  • Makefile.am, configure.ac, preinstall.am, new-exceptions/e500_raw_exc_init.c: Started adding support for e500 CPU. Most stuff is borrowed from mpc6xx.
  • Property mode set to 100644
File size: 11.7 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 \
33        new-exceptions/e500_raw_exc_init.c
34new_exceptions_rtems_cpu_rel_CPPFLAGS = $(AM_CPPFLAGS)
35new_exceptions_rtems_cpu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
36
37
38if !mpc5xx
39include_libcpu_HEADERS += new-exceptions/raw_exception.h
40noinst_PROGRAMS += new-exceptions/raw_exception.rel
41new_exceptions_raw_exception_rel_SOURCES = new-exceptions/raw_exception.c \
42    new-exceptions/asm_utils.S
43new_exceptions_raw_exception_rel_CPPFLAGS = $(AM_CPPFLAGS)
44new_exceptions_raw_exception_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
45endif
46
47endif
48
49## shared/include
50if shared
51include_libcpu_HEADERS += shared/include/io.h shared/include/mmu.h shared/include/page.h \
52    shared/include/byteorder.h shared/include/pgtable.h
53
54noinst_PROGRAMS += shared/cpuIdent.rel
55shared_cpuIdent_rel_SOURCES = shared/include/cpuIdent.c shared/include/cpuIdent.h
56shared_cpuIdent_rel_CPPFLAGS = $(AM_CPPFLAGS)
57shared_cpuIdent_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
58
59include_libcpu_HEADERS += shared/include/cpuIdent.h
60
61## shared/cache
62noinst_PROGRAMS += shared/cache.rel
63shared_cache_rel_SOURCES = shared/src/cache.c shared/src/cache_.h \
64    ../shared/src/cache_aligned_malloc.c ../shared/src/cache_manager.c \
65    ../shared/include/cache.h
66shared_cache_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/src
67shared_cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
68
69include_libcpu_HEADERS += ../shared/include/cache.h
70
71## shared/stack
72noinst_PROGRAMS += shared/stack.rel
73shared_stack_rel_SOURCES = shared/src/stack.c shared/include/spr.h shared/src/stackTrace.h
74shared_stack_rel_CPPFLAGS = $(AM_CPPFLAGS)
75shared_stack_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
76
77include_libcpu_HEADERS += shared/include/spr.h
78include_libcpu_HEADERS += shared/src/stackTrace.h
79endif
80
81EXTRA_DIST += ppc403/README ppc403/vectors/README
82if ppc403
83## ppc403/clock
84noinst_PROGRAMS += ppc403/clock.rel
85ppc403_clock_rel_SOURCES = ppc403/clock/clock.c
86ppc403_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
87ppc403_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
88
89## ppc403/console
90noinst_PROGRAMS += ppc403/console.rel
91if ppc405
92ppc403_console_rel_SOURCES = ppc403/console/console405.c
93else
94ppc403_console_rel_SOURCES = ppc403/console/console.c
95endif
96ppc403_console_rel_CPPFLAGS = $(AM_CPPFLAGS)
97ppc403_console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
98
99if OLD_EXCEPTIONS
100## ppc403/ictrl
101include_HEADERS = ppc403/ictrl/ictrl.h
102else
103include_HEADERS =
104shared_cpuIdent_rel_SOURCES = shared/include/cpuIdent.c
105shared_cpuIdent_rel_CPPFLAGS = $(AM_CPPFLAGS)
106shared_cpuIdent_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
107
108endif
109
110if OLD_EXCEPTIONS
111noinst_PROGRAMS += ppc403/ictrl.rel
112ppc403_ictrl_rel_SOURCES = ppc403/ictrl/ictrl.c ppc403/ictrl/ictrl.h
113ppc403_ictrl_rel_CPPFLAGS = $(AM_CPPFLAGS)
114ppc403_ictrl_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
115endif
116
117## ppc403/timer
118noinst_PROGRAMS += ppc403/timer.rel
119ppc403_timer_rel_SOURCES = ppc403/timer/timer.c
120ppc403_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
121ppc403_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
122
123## ppc403/tty_drv
124if ppc405
125include_HEADERS += ppc403/tty_drv/tty_drv.h
126
127noinst_PROGRAMS += ppc403/tty_drv.rel
128ppc403_tty_drv_rel_SOURCES = ppc403/tty_drv/tty_drv.c ppc403/tty_drv/tty_drv.h
129ppc403_tty_drv_rel_CPPFLAGS = $(AM_CPPFLAGS)
130ppc403_tty_drv_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
131endif
132
133if OLD_EXCEPTIONS
134## ppc403/vectors
135noinst_PROGRAMS += ppc403/vectors.rel
136ppc403_vectors_rel_SOURCES = ppc403/vectors/vectors.S ppc403/vectors/align_h.S
137ppc403_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
138ppc403_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
139endif
140endif
141
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)
256endif
257
258EXTRA_DIST += mpc8xx/README
259if mpc8xx
260include_mpc8xxdir = $(includedir)/mpc8xx
261
262include_HEADERS = mpc8xx/include/mpc8xx.h
263
264## mpc8xx/clock
265noinst_PROGRAMS += mpc8xx/clock.rel
266mpc8xx_clock_rel_SOURCES = mpc8xx/clock/clock.c
267mpc8xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
268mpc8xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
269
270## mpc8xx/console-generic
271include_mpc8xx_HEADERS = mpc8xx/include/console.h
272
273noinst_PROGRAMS += mpc8xx/console-generic.rel
274mpc8xx_console_generic_rel_SOURCES = mpc8xx/console-generic/console-generic.c
275mpc8xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
276mpc8xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
277
278## mpc8xx/cpm
279include_mpc8xx_HEADERS += mpc8xx/include/cpm.h
280
281noinst_PROGRAMS += mpc8xx/cpm.rel
282mpc8xx_cpm_rel_SOURCES = mpc8xx/cpm/cp.c mpc8xx/cpm/dpram.c
283mpc8xx_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
284mpc8xx_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
285
286## mpc8xx/mmu
287include_mpc8xx_HEADERS += mpc8xx/include/mmu.h
288
289noinst_PROGRAMS += mpc8xx/mmu.rel
290mpc8xx_mmu_rel_SOURCES = mpc8xx/mmu/mmu.c
291mpc8xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
292mpc8xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
293
294## mpc8xx/timer
295noinst_PROGRAMS += mpc8xx/timer.rel
296mpc8xx_timer_rel_SOURCES = mpc8xx/timer/timer.c
297mpc8xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
298mpc8xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
299endif
300
301EXTRA_DIST += mpc8260/README
302if mpc8260
303include_mpc8260dir = $(includedir)/mpc8260
304
305include_HEADERS = mpc8260/include/mpc8260.h
306
307## mpc8260/console-generic
308include_mpc8260_HEADERS = mpc8260/include/console.h
309
310noinst_PROGRAMS += mpc8260/console-generic.rel
311mpc8260_console_generic_rel_SOURCES = mpc8260/console-generic/console-generic.c \
312    mpc8260/include/console.h
313mpc8260_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
314mpc8260_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
315
316## mpc8260/clock
317noinst_PROGRAMS += mpc8260/clock.rel
318mpc8260_clock_rel_SOURCES = mpc8260/clock/clock.c
319mpc8260_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
320mpc8260_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
321
322## mpc8260/cpm
323include_mpc8260_HEADERS += mpc8260/include/cpm.h
324
325noinst_PROGRAMS += mpc8260/cpm.rel
326mpc8260_cpm_rel_SOURCES = mpc8260/cpm/cp.c mpc8260/cpm/dpram.c mpc8260/cpm/brg.c \
327    mpc8260/include/cpm.h
328mpc8260_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
329mpc8260_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
330
331## mpc8260/mmu
332include_mpc8260_HEADERS += mpc8260/include/mmu.h
333
334noinst_PROGRAMS += mpc8260/mmu.rel
335mpc8260_mmu_rel_SOURCES = mpc8260/mmu/mmu.c \
336                          mpc8260/include/mmu.h
337mpc8260_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
338mpc8260_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
339
340## mpc8260/timer
341noinst_PROGRAMS += mpc8260/timer.rel
342mpc8260_timer_rel_SOURCES = mpc8260/timer/timer.c
343mpc8260_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
344mpc8260_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
345endif
346
347if mpc83xx
348include_mpc83xxdir = $(includedir)/mpc83xx
349include_mpc83xx_HEADERS  = mpc83xx/include/mpc83xx.h
350include_mpc83xx_HEADERS += mpc83xx/network/tsec.h
351
352## mpc83xx/network
353if HAS_NETWORKING
354noinst_PROGRAMS += mpc83xx/tsec.rel
355mpc83xx_tsec_rel_SOURCES   = mpc83xx/network/tsec.c
356mpc83xx_tsec_rel_CPPFLAGS  = $(AM_CPPFLAGS)
357mpc83xx_tsec_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__  -D__BSD_VISIBLE
358mpc83xx_tsec_rel_LDFLAGS   = $(RTEMS_RELLDFLAGS)
359endif
360## mpc83xx/i2c
361include_mpc83xx_HEADERS += mpc83xx/i2c/mpc83xx_i2cdrv.h
362noinst_PROGRAMS += mpc83xx/i2c.rel
363mpc83xx_i2c_rel_SOURCES   = mpc83xx/i2c/mpc83xx_i2cdrv.c \
364                            mpc83xx/i2c/mpc83xx_i2cdrv.h
365mpc83xx_i2c_rel_CPPFLAGS  = $(AM_CPPFLAGS)
366mpc83xx_i2c_rel_LDFLAGS   = $(RTEMS_RELLDFLAGS)
367
368## mpc83xx/spi
369include_mpc83xx_HEADERS += mpc83xx/spi/mpc83xx_spidrv.h
370noinst_PROGRAMS += mpc83xx/spi.rel
371mpc83xx_spi_rel_SOURCES   = mpc83xx/spi/mpc83xx_spidrv.c \
372                            mpc83xx/spi/mpc83xx_spidrv.h
373mpc83xx_spi_rel_CPPFLAGS  = $(AM_CPPFLAGS)
374mpc83xx_spi_rel_LDFLAGS   = $(RTEMS_RELLDFLAGS)
375
376endif
377
378include $(srcdir)/preinstall.am
379include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.