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

4.104.114.9
Last change on this file since 3c6fe2e was 3c6fe2e, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on Jul 14, 2008 at 8:46:06 AM

added haleakala BSP contributed by Michael Hamel

  • Property mode set to 100644
File size: 12.0 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 = shared/include/powerpc-utility.h
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 # ppc403
130
131if ppc405
132
133## ppc4xx/include
134include_ppc4xxdir = $(includedir)/ppc4xx
135include_ppc4xx_HEADERS = ppc403/include/ppc405gp.h \
136                         ppc403/include/ppc405ex.h
137
138endif # ppc405
139
140
141## mpc5xx
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)
256
257## e500/mmu
258include_libcpu_HEADERS += e500/mmu/e500_mmu.h
259noinst_PROGRAMS += e500/mmu.rel
260e500_mmu_rel_SOURCES = e500/mmu/mmu.c e500/mmu/e500_mmu.h
261e500_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
262e500_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
263endif
264
265EXTRA_DIST += mpc8xx/README
266if mpc8xx
267include_mpc8xxdir = $(includedir)/mpc8xx
268
269include_HEADERS = mpc8xx/include/mpc8xx.h
270
271## mpc8xx/clock
272noinst_PROGRAMS += mpc8xx/clock.rel
273mpc8xx_clock_rel_SOURCES = mpc8xx/clock/clock.c
274mpc8xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
275mpc8xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
276
277## mpc8xx/console-generic
278include_mpc8xx_HEADERS = mpc8xx/include/console.h
279
280noinst_PROGRAMS += mpc8xx/console-generic.rel
281mpc8xx_console_generic_rel_SOURCES = mpc8xx/console-generic/console-generic.c
282mpc8xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
283mpc8xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
284
285## mpc8xx/cpm
286include_mpc8xx_HEADERS += mpc8xx/include/cpm.h
287
288noinst_PROGRAMS += mpc8xx/cpm.rel
289mpc8xx_cpm_rel_SOURCES = mpc8xx/cpm/cp.c mpc8xx/cpm/dpram.c
290mpc8xx_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
291mpc8xx_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
292
293## mpc8xx/mmu
294include_mpc8xx_HEADERS += mpc8xx/include/mmu.h
295
296noinst_PROGRAMS += mpc8xx/mmu.rel
297mpc8xx_mmu_rel_SOURCES = mpc8xx/mmu/mmu.c
298mpc8xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
299mpc8xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
300
301## mpc8xx/timer
302noinst_PROGRAMS += mpc8xx/timer.rel
303mpc8xx_timer_rel_SOURCES = mpc8xx/timer/timer.c
304mpc8xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
305mpc8xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
306endif
307
308EXTRA_DIST += mpc8260/README
309if mpc8260
310include_mpc8260dir = $(includedir)/mpc8260
311
312include_HEADERS = mpc8260/include/mpc8260.h
313
314## mpc8260/console-generic
315include_mpc8260_HEADERS = mpc8260/include/console.h
316
317noinst_PROGRAMS += mpc8260/console-generic.rel
318mpc8260_console_generic_rel_SOURCES = mpc8260/console-generic/console-generic.c \
319    mpc8260/include/console.h
320mpc8260_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
321mpc8260_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
322
323## mpc8260/clock
324noinst_PROGRAMS += mpc8260/clock.rel
325mpc8260_clock_rel_SOURCES = mpc8260/clock/clock.c
326mpc8260_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
327mpc8260_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
328
329## mpc8260/cpm
330include_mpc8260_HEADERS += mpc8260/include/cpm.h
331
332noinst_PROGRAMS += mpc8260/cpm.rel
333mpc8260_cpm_rel_SOURCES = mpc8260/cpm/cp.c mpc8260/cpm/dpram.c mpc8260/cpm/brg.c \
334    mpc8260/include/cpm.h
335mpc8260_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
336mpc8260_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
337
338## mpc8260/mmu
339include_mpc8260_HEADERS += mpc8260/include/mmu.h
340
341noinst_PROGRAMS += mpc8260/mmu.rel
342mpc8260_mmu_rel_SOURCES = mpc8260/mmu/mmu.c \
343                          mpc8260/include/mmu.h
344mpc8260_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
345mpc8260_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
346
347## mpc8260/timer
348noinst_PROGRAMS += mpc8260/timer.rel
349mpc8260_timer_rel_SOURCES = mpc8260/timer/timer.c
350mpc8260_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
351mpc8260_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
352endif
353
354if mpc83xx
355
356include_mpc83xxdir = $(includedir)/mpc83xx
357include_mpc83xx_HEADERS  = mpc83xx/include/mpc83xx.h
358include_mpc83xx_HEADERS += mpc83xx/network/tsec.h
359
360## mpc83xx/network
361if HAS_NETWORKING
362noinst_PROGRAMS += mpc83xx/tsec.rel
363mpc83xx_tsec_rel_SOURCES   = mpc83xx/network/tsec.c
364mpc83xx_tsec_rel_CPPFLAGS  = $(AM_CPPFLAGS)
365mpc83xx_tsec_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__  -D__BSD_VISIBLE
366mpc83xx_tsec_rel_LDFLAGS   = $(RTEMS_RELLDFLAGS)
367endif
368## mpc83xx/i2c
369include_mpc83xx_HEADERS += mpc83xx/i2c/mpc83xx_i2cdrv.h
370noinst_PROGRAMS += mpc83xx/i2c.rel
371mpc83xx_i2c_rel_SOURCES   = mpc83xx/i2c/mpc83xx_i2cdrv.c \
372                            mpc83xx/i2c/mpc83xx_i2cdrv.h
373mpc83xx_i2c_rel_CPPFLAGS  = $(AM_CPPFLAGS)
374mpc83xx_i2c_rel_LDFLAGS   = $(RTEMS_RELLDFLAGS)
375
376## mpc83xx/spi
377include_mpc83xx_HEADERS += mpc83xx/spi/mpc83xx_spidrv.h
378noinst_PROGRAMS += mpc83xx/spi.rel
379mpc83xx_spi_rel_SOURCES   = mpc83xx/spi/mpc83xx_spidrv.c \
380                            mpc83xx/spi/mpc83xx_spidrv.h
381mpc83xx_spi_rel_CPPFLAGS  = $(AM_CPPFLAGS)
382mpc83xx_spi_rel_LDFLAGS   = $(RTEMS_RELLDFLAGS)
383
384endif
385
386include $(srcdir)/preinstall.am
387include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.