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

4.115
Last change on this file since af03345 was af03345, checked in by Joel Sherrill <joel.sherrill@…>, on 10/13/14 at 21:54:12

Move CPU cache support from mcf5225x BSP to libcpu

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