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

4.104.114.95
Last change on this file since e1c30baf was e1c30baf, checked in by Till Straumann <strauman@…>, on 12/11/07 at 05:26:28

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

  • Makefile.am: build new-exceptions/bspsupport for non-mpc5xx, new-exception CPUs.
  • Property mode set to 100644
File size: 12.4 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
37if !mpc5xx
38include_libcpu_HEADERS += new-exceptions/raw_exception.h
39noinst_PROGRAMS += new-exceptions/raw_exception.rel
40new_exceptions_raw_exception_rel_SOURCES = new-exceptions/raw_exception.c \
41    new-exceptions/asm_utils.S \
42        new-exceptions/e500_raw_exc_init.c
43new_exceptions_raw_exception_rel_CPPFLAGS = $(AM_CPPFLAGS)
44new_exceptions_raw_exception_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
45
46noinst_PROGRAMS += new-exceptions/exc_bspsupport.rel
47new_exceptions_exc_bspsupport_rel_SOURCES = \
48    new-exceptions/bspsupport/ppc_exc.S \
49    new-exceptions/bspsupport/ppc_exc_hdl.c \
50    new-exceptions/bspsupport/irq.c \
51    new-exceptions/bspsupport/vectors_init.c
52new_exceptions_exc_bspsupport_rel_CPPFLAGS = $(AM_CPPFLAGS)
53new_exceptions_exc_bspsupport_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
54endif
55endif
56EXTRA_DIST += new-exceptions/bspsupport/vectors.h
57EXTRA_DIST += new-exceptions/bspsupport/irq_supp.h
58EXTRA_DIST += new-exceptions/bspsupport/ppc_exc_bspsupp.h
59EXTRA_DIST += new-exceptions/bspsupport/README
60EXTRA_DIST += new-exceptions/bspsupport/nest_irq_test.c
61EXTRA_DIST += new-exceptions/bspsupport/ppc_exc_test.c
62
63## shared/include
64if shared
65include_libcpu_HEADERS += shared/include/io.h shared/include/mmu.h shared/include/page.h \
66    shared/include/byteorder.h shared/include/pgtable.h
67
68noinst_PROGRAMS += shared/cpuIdent.rel
69shared_cpuIdent_rel_SOURCES = shared/include/cpuIdent.c shared/include/cpuIdent.h
70shared_cpuIdent_rel_CPPFLAGS = $(AM_CPPFLAGS)
71shared_cpuIdent_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
72
73include_libcpu_HEADERS += shared/include/cpuIdent.h
74
75## shared/cache
76noinst_PROGRAMS += shared/cache.rel
77shared_cache_rel_SOURCES = shared/src/cache.c shared/src/cache_.h \
78    ../shared/src/cache_aligned_malloc.c ../shared/src/cache_manager.c \
79    ../shared/include/cache.h
80shared_cache_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/src
81shared_cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
82
83include_libcpu_HEADERS += ../shared/include/cache.h
84
85## shared/stack
86noinst_PROGRAMS += shared/stack.rel
87shared_stack_rel_SOURCES = shared/src/stack.c shared/include/spr.h shared/src/stackTrace.h
88shared_stack_rel_CPPFLAGS = $(AM_CPPFLAGS)
89shared_stack_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
90
91include_libcpu_HEADERS += shared/include/spr.h
92include_libcpu_HEADERS += shared/src/stackTrace.h
93endif
94
95EXTRA_DIST += ppc403/README ppc403/vectors/README
96if ppc403
97## ppc403/clock
98noinst_PROGRAMS += ppc403/clock.rel
99ppc403_clock_rel_SOURCES = ppc403/clock/clock.c
100ppc403_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
101ppc403_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
102
103## ppc403/console
104noinst_PROGRAMS += ppc403/console.rel
105if ppc405
106ppc403_console_rel_SOURCES = ppc403/console/console405.c
107else
108ppc403_console_rel_SOURCES = ppc403/console/console.c
109endif
110ppc403_console_rel_CPPFLAGS = $(AM_CPPFLAGS)
111ppc403_console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
112
113if OLD_EXCEPTIONS
114## ppc403/ictrl
115include_HEADERS = ppc403/ictrl/ictrl.h
116else
117include_HEADERS =
118shared_cpuIdent_rel_SOURCES = shared/include/cpuIdent.c
119shared_cpuIdent_rel_CPPFLAGS = $(AM_CPPFLAGS)
120shared_cpuIdent_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
121
122endif
123
124if OLD_EXCEPTIONS
125noinst_PROGRAMS += ppc403/ictrl.rel
126ppc403_ictrl_rel_SOURCES = ppc403/ictrl/ictrl.c ppc403/ictrl/ictrl.h
127ppc403_ictrl_rel_CPPFLAGS = $(AM_CPPFLAGS)
128ppc403_ictrl_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
129endif
130
131## ppc403/timer
132noinst_PROGRAMS += ppc403/timer.rel
133ppc403_timer_rel_SOURCES = ppc403/timer/timer.c
134ppc403_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
135ppc403_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
136
137## ppc403/tty_drv
138if ppc405
139include_HEADERS += ppc403/tty_drv/tty_drv.h
140
141noinst_PROGRAMS += ppc403/tty_drv.rel
142ppc403_tty_drv_rel_SOURCES = ppc403/tty_drv/tty_drv.c ppc403/tty_drv/tty_drv.h
143ppc403_tty_drv_rel_CPPFLAGS = $(AM_CPPFLAGS)
144ppc403_tty_drv_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
145endif
146
147if OLD_EXCEPTIONS
148## ppc403/vectors
149noinst_PROGRAMS += ppc403/vectors.rel
150ppc403_vectors_rel_SOURCES = ppc403/vectors/vectors.S ppc403/vectors/align_h.S
151ppc403_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
152ppc403_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
153endif
154endif
155
156EXTRA_DIST += mpc5xx/README
157if mpc5xx
158include_mpc5xxdir = $(includedir)/mpc5xx
159
160include_HEADERS = mpc5xx/include/mpc5xx.h
161
162## mpc5xx/clock
163noinst_PROGRAMS += mpc5xx/clock.rel
164mpc5xx_clock_rel_SOURCES = mpc5xx/clock/clock.c
165mpc5xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
166mpc5xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
167
168## mpc5xx/console-generic
169include_mpc5xx_HEADERS = mpc5xx/include/console.h
170
171noinst_PROGRAMS += mpc5xx/console-generic.rel
172mpc5xx_console_generic_rel_SOURCES = mpc5xx/console-generic/console-generic.c
173mpc5xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
174mpc5xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
175
176## mpc5xx/exceptions
177include_libcpu_HEADERS += mpc5xx/exceptions/raw_exception.h
178
179noinst_PROGRAMS += mpc5xx/exceptions.rel
180mpc5xx_exceptions_rel_SOURCES = mpc5xx/exceptions/raw_exception.c
181mpc5xx_exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS)
182mpc5xx_exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
183
184## mpc5xx/irq
185include_libcpu_HEADERS += mpc5xx/irq/irq.h
186
187noinst_PROGRAMS += mpc5xx/irq.rel
188mpc5xx_irq_rel_SOURCES = mpc5xx/irq/irq.c mpc5xx/irq/irq_init.c mpc5xx/irq/irq_asm.S
189mpc5xx_irq_rel_CPPFLAGS = $(AM_CPPFLAGS)
190mpc5xx_irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
191
192## mpc5xx/timer
193noinst_PROGRAMS += mpc5xx/timer.rel
194mpc5xx_timer_rel_SOURCES = mpc5xx/timer/timer.c
195mpc5xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
196mpc5xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
197
198## mpc5xx/vectors
199include_libcpu_HEADERS += mpc5xx/vectors/vectors.h
200
201noinst_PROGRAMS += mpc5xx/vectors.rel
202mpc5xx_vectors_rel_SOURCES = mpc5xx/vectors/vectors_init.c mpc5xx/vectors/vectors.S
203mpc5xx_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
204mpc5xx_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
205endif
206
207if mpc505
208## mpc505/ictrl
209include_HEADERS = mpc505/ictrl/ictrl.h
210
211noinst_PROGRAMS += mpc505/ictrl.rel
212mpc505_ictrl_rel_SOURCES = mpc505/ictrl/ictrl.c
213mpc505_ictrl_rel_CPPFLAGS = $(AM_CPPFLAGS)
214mpc505_ictrl_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
215
216## mpc505/timer
217noinst_PROGRAMS += mpc505/timer.rel
218mpc505_timer_rel_SOURCES = mpc505/timer/timer.c
219mpc505_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
220mpc505_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
221
222## mpc505/vector
223noinst_PROGRAMS += mpc505/vectors.rel
224mpc505_vectors_rel_SOURCES = mpc505/vectors/vectors.S
225mpc505_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
226mpc505_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
227endif
228
229if mpc6xx
230
231## mpc6xx/mmu
232include_libcpu_HEADERS += mpc6xx/mmu/bat.h mpc6xx/mmu/pte121.h
233
234noinst_PROGRAMS += mpc6xx/mmu.rel
235mpc6xx_mmu_rel_SOURCES = mpc6xx/mmu/bat.c mpc6xx/mmu/bat.h \
236    mpc6xx/mmu/pte121.c mpc6xx/mmu/pte121.h \
237    mpc6xx/mmu/mmuAsm.S
238mpc6xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
239mpc6xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
240
241## mpc6xx/clock
242include_libcpu_HEADERS += mpc6xx/clock/c_clock.h
243
244noinst_PROGRAMS += mpc6xx/clock.rel
245mpc6xx_clock_rel_SOURCES = mpc6xx/clock/c_clock.c mpc6xx/clock/c_clock.h
246mpc6xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
247mpc6xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
248
249## mpc6xx/timer
250noinst_PROGRAMS += mpc6xx/timer.rel
251mpc6xx_timer_rel_SOURCES = mpc6xx/timer/timer.c
252mpc6xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
253mpc6xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
254endif
255
256if e500
257## mpc6xx/clock
258include_libcpu_HEADERS += mpc6xx/clock/c_clock.h
259
260noinst_PROGRAMS += e500/clock.rel
261e500_clock_rel_SOURCES = mpc6xx/clock/c_clock.c mpc6xx/clock/c_clock.h
262e500_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
263e500_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
264
265## mpc6xx/timer
266noinst_PROGRAMS += e500/timer.rel
267e500_timer_rel_SOURCES = mpc6xx/timer/timer.c
268e500_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
269e500_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
270endif
271
272EXTRA_DIST += mpc8xx/README
273if mpc8xx
274include_mpc8xxdir = $(includedir)/mpc8xx
275
276include_HEADERS = mpc8xx/include/mpc8xx.h
277
278## mpc8xx/clock
279noinst_PROGRAMS += mpc8xx/clock.rel
280mpc8xx_clock_rel_SOURCES = mpc8xx/clock/clock.c
281mpc8xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
282mpc8xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
283
284## mpc8xx/console-generic
285include_mpc8xx_HEADERS = mpc8xx/include/console.h
286
287noinst_PROGRAMS += mpc8xx/console-generic.rel
288mpc8xx_console_generic_rel_SOURCES = mpc8xx/console-generic/console-generic.c
289mpc8xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
290mpc8xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
291
292## mpc8xx/cpm
293include_mpc8xx_HEADERS += mpc8xx/include/cpm.h
294
295noinst_PROGRAMS += mpc8xx/cpm.rel
296mpc8xx_cpm_rel_SOURCES = mpc8xx/cpm/cp.c mpc8xx/cpm/dpram.c
297mpc8xx_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
298mpc8xx_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
299
300## mpc8xx/mmu
301include_mpc8xx_HEADERS += mpc8xx/include/mmu.h
302
303noinst_PROGRAMS += mpc8xx/mmu.rel
304mpc8xx_mmu_rel_SOURCES = mpc8xx/mmu/mmu.c
305mpc8xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
306mpc8xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
307
308## mpc8xx/timer
309noinst_PROGRAMS += mpc8xx/timer.rel
310mpc8xx_timer_rel_SOURCES = mpc8xx/timer/timer.c
311mpc8xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
312mpc8xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
313endif
314
315EXTRA_DIST += mpc8260/README
316if mpc8260
317include_mpc8260dir = $(includedir)/mpc8260
318
319include_HEADERS = mpc8260/include/mpc8260.h
320
321## mpc8260/console-generic
322include_mpc8260_HEADERS = mpc8260/include/console.h
323
324noinst_PROGRAMS += mpc8260/console-generic.rel
325mpc8260_console_generic_rel_SOURCES = mpc8260/console-generic/console-generic.c \
326    mpc8260/include/console.h
327mpc8260_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
328mpc8260_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
329
330## mpc8260/clock
331noinst_PROGRAMS += mpc8260/clock.rel
332mpc8260_clock_rel_SOURCES = mpc8260/clock/clock.c
333mpc8260_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
334mpc8260_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
335
336## mpc8260/cpm
337include_mpc8260_HEADERS += mpc8260/include/cpm.h
338
339noinst_PROGRAMS += mpc8260/cpm.rel
340mpc8260_cpm_rel_SOURCES = mpc8260/cpm/cp.c mpc8260/cpm/dpram.c mpc8260/cpm/brg.c \
341    mpc8260/include/cpm.h
342mpc8260_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
343mpc8260_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
344
345## mpc8260/mmu
346include_mpc8260_HEADERS += mpc8260/include/mmu.h
347
348noinst_PROGRAMS += mpc8260/mmu.rel
349mpc8260_mmu_rel_SOURCES = mpc8260/mmu/mmu.c \
350                          mpc8260/include/mmu.h
351mpc8260_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
352mpc8260_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
353
354## mpc8260/timer
355noinst_PROGRAMS += mpc8260/timer.rel
356mpc8260_timer_rel_SOURCES = mpc8260/timer/timer.c
357mpc8260_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
358mpc8260_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
359endif
360
361if mpc83xx
362include_mpc83xxdir = $(includedir)/mpc83xx
363include_mpc83xx_HEADERS  = mpc83xx/include/mpc83xx.h
364include_mpc83xx_HEADERS += mpc83xx/network/tsec.h
365
366## mpc83xx/network
367if HAS_NETWORKING
368noinst_PROGRAMS += mpc83xx/tsec.rel
369mpc83xx_tsec_rel_SOURCES   = mpc83xx/network/tsec.c
370mpc83xx_tsec_rel_CPPFLAGS  = $(AM_CPPFLAGS)
371mpc83xx_tsec_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__  -D__BSD_VISIBLE
372mpc83xx_tsec_rel_LDFLAGS   = $(RTEMS_RELLDFLAGS)
373endif
374## mpc83xx/i2c
375include_mpc83xx_HEADERS += mpc83xx/i2c/mpc83xx_i2cdrv.h
376noinst_PROGRAMS += mpc83xx/i2c.rel
377mpc83xx_i2c_rel_SOURCES   = mpc83xx/i2c/mpc83xx_i2cdrv.c \
378                            mpc83xx/i2c/mpc83xx_i2cdrv.h
379mpc83xx_i2c_rel_CPPFLAGS  = $(AM_CPPFLAGS)
380mpc83xx_i2c_rel_LDFLAGS   = $(RTEMS_RELLDFLAGS)
381
382## mpc83xx/spi
383include_mpc83xx_HEADERS += mpc83xx/spi/mpc83xx_spidrv.h
384noinst_PROGRAMS += mpc83xx/spi.rel
385mpc83xx_spi_rel_SOURCES   = mpc83xx/spi/mpc83xx_spidrv.c \
386                            mpc83xx/spi/mpc83xx_spidrv.h
387mpc83xx_spi_rel_CPPFLAGS  = $(AM_CPPFLAGS)
388mpc83xx_spi_rel_LDFLAGS   = $(RTEMS_RELLDFLAGS)
389
390endif
391
392include $(srcdir)/preinstall.am
393include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.