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

4.104.114.84.95
Last change on this file since 4a1eb75 was 4a1eb75, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 11, 2007 at 1:10:12 PM

2007-09-11 Joel Sherrill <joel.sherrill@…>

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