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

4.115
Last change on this file since a3579d3b was 14782ec0, checked in by Joel Sherrill <joel.sherrill@…>, on 04/05/10 at 17:11:48

2010-04-05 Thomas Znidar <t.znidar@…>

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