[fe8bc62f] | 1 | ACLOCAL_AMFLAGS = -I ../../../aclocal |
---|
[400c552] | 2 | |
---|
[d23c9187] | 3 | include $(top_srcdir)/../../../automake/compile.am |
---|
| 4 | |
---|
| 5 | noinst_PROGRAMS = |
---|
| 6 | |
---|
| 7 | if shared |
---|
| 8 | |
---|
| 9 | ## shared/misc |
---|
| 10 | |
---|
| 11 | # gcc doesn't recognize difference between the cpu32 and cpu32+ so we have to |
---|
| 12 | if mcpu32p |
---|
| 13 | M68K_CPPFLAGS = -D__mcpu32p__ |
---|
| 14 | endif |
---|
| 15 | if mcf5272 |
---|
| 16 | M68K_CPPFLAGS = -Dmcf5272 |
---|
| 17 | endif |
---|
| 18 | |
---|
| 19 | noinst_PROGRAMS += shared/misc.rel |
---|
[b37fb8d] | 20 | shared_misc_rel_SOURCES = shared/misc/m68kidle.c shared/misc/memProbe.c |
---|
[d23c9187] | 21 | shared_misc_rel_CPPFLAGS = $(AM_CPPFLAGS) $(M68K_CPPFLAGS) |
---|
| 22 | shared_misc_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 23 | endif |
---|
| 24 | |
---|
[2db9bc09] | 25 | if m68040 |
---|
[6101bdb] | 26 | ## m68040/fpsp |
---|
[2db9bc09] | 27 | noinst_PROGRAMS += m68040/fpsp.rel |
---|
[fe26418] | 28 | noinst_PROGRAMS += m68040/fpsp_tmp.rel |
---|
| 29 | m68040_fpsp_tmp_rel_SOURCES = m68040/fpsp/rtems_fpsp.c m68040/fpsp/bindec.S \ |
---|
[2db9bc09] | 30 | m68040/fpsp/binstr.S m68040/fpsp/bugfix.S m68040/fpsp/decbin.S \ |
---|
| 31 | m68040/fpsp/do_func.S m68040/fpsp/gen_except.S m68040/fpsp/get_op.S \ |
---|
| 32 | m68040/fpsp/kernel_ex.S m68040/fpsp/res_func.S m68040/fpsp/round.S \ |
---|
| 33 | m68040/fpsp/rtems_skel.S m68040/fpsp/sacos.S m68040/fpsp/sasin.S \ |
---|
| 34 | m68040/fpsp/satan.S m68040/fpsp/satanh.S m68040/fpsp/scale.S \ |
---|
| 35 | m68040/fpsp/scosh.S m68040/fpsp/setox.S m68040/fpsp/sgetem.S \ |
---|
| 36 | m68040/fpsp/sint.S m68040/fpsp/slog2.S m68040/fpsp/slogn.S \ |
---|
| 37 | m68040/fpsp/smovecr.S m68040/fpsp/srem_mod.S m68040/fpsp/ssin.S \ |
---|
| 38 | m68040/fpsp/ssinh.S m68040/fpsp/stan.S m68040/fpsp/stanh.S \ |
---|
| 39 | m68040/fpsp/sto_res.S m68040/fpsp/stwotox.S m68040/fpsp/tbldo.S \ |
---|
| 40 | m68040/fpsp/util.S m68040/fpsp/x_bsun.S m68040/fpsp/x_fline.S \ |
---|
| 41 | m68040/fpsp/x_operr.S m68040/fpsp/x_ovfl.S m68040/fpsp/x_snan.S \ |
---|
| 42 | m68040/fpsp/x_store.S m68040/fpsp/x_unfl.S m68040/fpsp/x_unimp.S \ |
---|
| 43 | m68040/fpsp/x_unsupp.S |
---|
[fe26418] | 44 | m68040_fpsp_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 45 | m68040_fpsp_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 46 | |
---|
| 47 | # avoid name clashes and modifying the source by |
---|
| 48 | # prefixing all (global) symbols in the binary |
---|
| 49 | m68040/fpsp_tmp1.rel: m68040/fpsp_tmp.rel |
---|
| 50 | $(OBJCOPY) --prefix-symbols __fpsp_ $^ $@ |
---|
| 51 | |
---|
| 52 | # Then remove the prefix again on all global |
---|
| 53 | # symbols we really need: |
---|
| 54 | m68040/fpsp.rel: m68040/fpsp_tmp1.rel |
---|
| 55 | $(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 $^ $@ |
---|
[2db9bc09] | 56 | |
---|
| 57 | noinst_HEADERS = m68040/fpsp/fpsp.defs |
---|
| 58 | endif |
---|
| 59 | EXTRA_DIST = m68040/fpsp/README |
---|
| 60 | |
---|
[6101bdb] | 61 | if mcf5206 |
---|
| 62 | # mcf5206/include |
---|
| 63 | ## mcf5206/clock |
---|
| 64 | noinst_PROGRAMS += mcf5206/clock.rel |
---|
| 65 | mcf5206_clock_rel_SOURCES = mcf5206/clock/ckinit.c |
---|
| 66 | mcf5206_clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 67 | mcf5206_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 68 | |
---|
| 69 | ## mcf5206/mcfuart |
---|
| 70 | noinst_PROGRAMS += mcf5206/mcfuart.rel |
---|
| 71 | mcf5206_mcfuart_rel_SOURCES = mcf5206/console/mcfuart.c |
---|
| 72 | mcf5206_mcfuart_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 73 | mcf5206_mcfuart_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 74 | |
---|
| 75 | ## mcf5206/mbus |
---|
| 76 | noinst_PROGRAMS += mcf5206/mbus.rel |
---|
| 77 | mcf5206_mbus_rel_SOURCES = mcf5206/mbus/mcfmbus.c |
---|
| 78 | mcf5206_mbus_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 79 | mcf5206_mbus_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 80 | |
---|
| 81 | ## mcf5206/timer |
---|
| 82 | noinst_PROGRAMS += mcf5206/timer.rel |
---|
| 83 | mcf5206_timer_rel_SOURCES = mcf5206/timer/timer.c mcf5206/timer/timerisr.S |
---|
| 84 | mcf5206_timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 85 | mcf5206_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 86 | endif |
---|
| 87 | |
---|
[ea5ed37] | 88 | if mcf5272 |
---|
| 89 | ## mcf5272/include |
---|
| 90 | ## clock |
---|
| 91 | noinst_PROGRAMS += mcf5272/clock.rel |
---|
| 92 | mcf5272_clock_rel_SOURCES = mcf5272/clock/ckinit.c |
---|
| 93 | mcf5272_clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 94 | mcf5272_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 95 | |
---|
| 96 | ## timer |
---|
| 97 | noinst_PROGRAMS += mcf5272/timer.rel |
---|
| 98 | mcf5272_timer_rel_SOURCES = mcf5272/timer/timer.c mcf5272/timer/timerisr.S |
---|
| 99 | mcf5272_timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 100 | mcf5272_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 101 | endif |
---|
| 102 | |
---|
[1898d72] | 103 | if mcf548x |
---|
| 104 | ## mcf548x/include |
---|
[6229b2a7] | 105 | ## mcf548x/mcdma |
---|
| 106 | noinst_PROGRAMS += mcf548x/mcdma.rel |
---|
| 107 | mcf548x_mcdma_rel_SOURCES = mcf548x/mcdma/MCD_dmaApi.c mcf548x/mcdma/MCD_tasksInit.c \ |
---|
| 108 | mcf548x/mcdma/MCD_tasks.c mcf548x/mcdma/mcdma_glue.c |
---|
| 109 | |
---|
| 110 | mcf548x_mcdma_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 111 | mcf548x_mcdma_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
[1898d72] | 112 | endif |
---|
| 113 | |
---|
[5321250] | 114 | include $(top_srcdir)/../../../automake/local.am |
---|