source: rtems/c/src/lib/libcpu/m68k/Makefile.am @ c499856

4.115
Last change on this file since c499856 was 1559075, checked in by Ralf Corsépius <ralf.corsepius@…>, on 05/04/12 at 06:51:08

Remove CVS-Ids.

  • Property mode set to 100644
File size: 6.4 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../aclocal
2
3include $(top_srcdir)/../../../automake/compile.am
4
5noinst_PROGRAMS =
6
7if shared
8include_libcpudir = $(includedir)/libcpu
9
10## shared/cache
11include_libcpu_HEADERS = ../shared/include/cache.h
12
13noinst_PROGRAMS += shared/cache.rel
14shared_cache_rel_SOURCES = shared/cache/cache.c shared/cache/cache_.h \
15    ../shared/src/cache_aligned_malloc.c \
16    ../shared/src/cache_manager.c
17shared_cache_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache
18shared_cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
19
20## shared/misc
21
22# gcc doesn't recognize difference between the cpu32 and cpu32+ so we have to
23if mcpu32p
24M68K_CPPFLAGS = -D__mcpu32p__
25endif
26if mcf5272
27M68K_CPPFLAGS = -Dmcf5272
28endif
29
30noinst_PROGRAMS += shared/misc.rel
31shared_misc_rel_SOURCES = shared/misc/m68kidle.c shared/misc/memProbe.c
32shared_misc_rel_CPPFLAGS = $(AM_CPPFLAGS) $(M68K_CPPFLAGS)
33shared_misc_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
34endif
35
36if m68040
37## m68040/fpsp
38noinst_PROGRAMS += m68040/fpsp.rel
39noinst_PROGRAMS += m68040/fpsp_tmp.rel
40m68040_fpsp_tmp_rel_SOURCES = m68040/fpsp/rtems_fpsp.c m68040/fpsp/bindec.S \
41    m68040/fpsp/binstr.S m68040/fpsp/bugfix.S m68040/fpsp/decbin.S \
42    m68040/fpsp/do_func.S m68040/fpsp/gen_except.S m68040/fpsp/get_op.S \
43    m68040/fpsp/kernel_ex.S m68040/fpsp/res_func.S m68040/fpsp/round.S \
44    m68040/fpsp/rtems_skel.S m68040/fpsp/sacos.S m68040/fpsp/sasin.S \
45    m68040/fpsp/satan.S m68040/fpsp/satanh.S m68040/fpsp/scale.S \
46    m68040/fpsp/scosh.S m68040/fpsp/setox.S m68040/fpsp/sgetem.S \
47    m68040/fpsp/sint.S m68040/fpsp/slog2.S m68040/fpsp/slogn.S \
48    m68040/fpsp/smovecr.S m68040/fpsp/srem_mod.S m68040/fpsp/ssin.S \
49    m68040/fpsp/ssinh.S m68040/fpsp/stan.S m68040/fpsp/stanh.S \
50    m68040/fpsp/sto_res.S m68040/fpsp/stwotox.S m68040/fpsp/tbldo.S \
51    m68040/fpsp/util.S m68040/fpsp/x_bsun.S m68040/fpsp/x_fline.S \
52    m68040/fpsp/x_operr.S m68040/fpsp/x_ovfl.S m68040/fpsp/x_snan.S \
53    m68040/fpsp/x_store.S m68040/fpsp/x_unfl.S m68040/fpsp/x_unimp.S \
54    m68040/fpsp/x_unsupp.S
55m68040_fpsp_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS)
56m68040_fpsp_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
57
58# avoid name clashes and modifying the source by
59# prefixing all (global) symbols in the binary
60m68040/fpsp_tmp1.rel: m68040/fpsp_tmp.rel
61        $(OBJCOPY) --prefix-symbols __fpsp_ $^ $@
62
63# Then remove the prefix again on all global
64# symbols we really need:
65m68040/fpsp.rel: m68040/fpsp_tmp1.rel
66            $(OBJCOPY) --redefine-sym __fpsp_M68KFPSPInstallExceptionHandlers=M68KFPSPInstallExceptionHandlers --redefine-sym __fpsp_M68040FPSPUserExceptionHandlers=M68040FPSPUserExceptionHandlers --redefine-sym __fpsp__CPU_ISR_install_raw_handler=_CPU_ISR_install_raw_handler --redefine-sym __fpsp__FPSP_install_raw_handler=_FPSP_install_raw_handler $^ $@
67
68noinst_HEADERS = m68040/fpsp/fpsp.defs
69endif
70EXTRA_DIST = m68040/fpsp/README
71
72if mcf5206
73# mcf5206/include
74include_mcf5206dir = $(includedir)/mcf5206
75include_mcf5206_HEADERS = mcf5206/include/mcf5206e.h mcf5206/include/mcfmbus.h \
76    mcf5206/include/mcfuart.h
77
78## mcf5206/clock
79noinst_PROGRAMS += mcf5206/clock.rel
80mcf5206_clock_rel_SOURCES = mcf5206/clock/ckinit.c
81mcf5206_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
82mcf5206_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
83
84## mcf5206/mcfuart
85noinst_PROGRAMS += mcf5206/mcfuart.rel
86mcf5206_mcfuart_rel_SOURCES = mcf5206/console/mcfuart.c
87mcf5206_mcfuart_rel_CPPFLAGS = $(AM_CPPFLAGS)
88mcf5206_mcfuart_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
89
90## mcf5206/mbus
91noinst_PROGRAMS += mcf5206/mbus.rel
92mcf5206_mbus_rel_SOURCES = mcf5206/mbus/mcfmbus.c
93mcf5206_mbus_rel_CPPFLAGS = $(AM_CPPFLAGS)
94mcf5206_mbus_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
95
96## mcf5206/timer
97noinst_PROGRAMS += mcf5206/timer.rel
98mcf5206_timer_rel_SOURCES = mcf5206/timer/timer.c mcf5206/timer/timerisr.S
99mcf5206_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
100mcf5206_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
101endif
102
103if mcf5223x
104## mcf5223x/include
105include_mcf5223xdir = $(includedir)/mcf5223x
106include_mcf5223x_HEADERS = mcf5223x/include/mcf5223x.h
107
108## mcf5223x/cache
109noinst_PROGRAMS += mcf5223x/cachepd.rel
110mcf5223x_cachepd_rel_SOURCES = mcf5223x/cache/cachepd.c
111mcf5223x_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS)
112mcf5223x_cachepd_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
113endif
114
115if mcf5225x
116## mcf5225x/include
117include_mcf5225xdir = $(includedir)/mcf5225x
118include_mcf5225x_HEADERS = mcf5225x/include/mcf5225x.h
119# Network
120if HAS_NETWORKING
121include_mcf5225x_HEADERS += mcf5225x/include/fec.h
122endif ## HAS_NETWORKING
123endif
124
125if mcf5235
126## mcf5235/include
127include_mcf5235dir = $(includedir)/mcf5235
128include_mcf5235_HEADERS = mcf5235/include/mcf5235.h
129
130## mcf5235/cache
131noinst_PROGRAMS += mcf5235/cachepd.rel
132mcf5235_cachepd_rel_SOURCES = mcf5235/cache/cachepd.c
133mcf5235_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS)
134mcf5235_cachepd_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
135endif
136
137if mcf532x
138## mcf532x/include
139include_mcf532xdir = $(includedir)/mcf532x
140include_mcf532x_HEADERS = mcf532x/include/mcf532x.h
141
142## mcf532x/cache
143noinst_PROGRAMS += mcf532x/cachepd.rel
144mcf532x_cachepd_rel_SOURCES = mcf532x/cache/cachepd.c
145mcf532x_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS)
146mcf532x_cachepd_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
147endif
148
149if mcf5272
150## mcf5272/include
151include_mcf5272dir = $(includedir)/mcf5272
152include_mcf5272_HEADERS = mcf5272/include/mcf5272.h
153
154## clock
155noinst_PROGRAMS += mcf5272/clock.rel
156mcf5272_clock_rel_SOURCES = mcf5272/clock/ckinit.c
157mcf5272_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
158mcf5272_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
159
160## timer
161noinst_PROGRAMS += mcf5272/timer.rel
162mcf5272_timer_rel_SOURCES = mcf5272/timer/timer.c mcf5272/timer/timerisr.S
163mcf5272_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
164mcf5272_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
165endif
166
167if mcf5282
168## mcf5282/include
169include_mcf5282dir = $(includedir)/mcf5282
170include_mcf5282_HEADERS = mcf5282/include/mcf5282.h
171endif
172
173if mcf548x
174## mcf548x/include
175include_mcf548xdir = $(includedir)/mcf548x
176include_mcf548x_HEADERS = mcf548x/include/mcf548x.h
177
178## mcf548x/mcdma
179noinst_PROGRAMS += mcf548x/mcdma.rel
180include_mcf548x_HEADERS +=  mcf548x/mcdma/MCD_progCheck.h mcf548x/mcdma/MCD_dma.h \
181                            mcf548x/mcdma/MCD_tasksInit.h mcf548x/mcdma/mcdma_glue.h
182mcf548x_mcdma_rel_SOURCES = mcf548x/mcdma/MCD_dmaApi.c mcf548x/mcdma/MCD_tasksInit.c \
183                            mcf548x/mcdma/MCD_tasks.c  mcf548x/mcdma/mcdma_glue.c
184
185mcf548x_mcdma_rel_CPPFLAGS = $(AM_CPPFLAGS)
186mcf548x_mcdma_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
187endif
188
189include $(srcdir)/preinstall.am
190include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.