[41c9282] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
| 4 | |
---|
| 5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
| 6 | |
---|
| 7 | include $(top_srcdir)/../../../../automake/compile.am |
---|
| 8 | include $(top_srcdir)/../../bsp.am |
---|
| 9 | |
---|
| 10 | dist_project_lib_DATA = bsp_specs |
---|
| 11 | |
---|
| 12 | include_HEADERS = include/bsp.h |
---|
| 13 | include_HEADERS += include/tm27.h |
---|
[344ba65a] | 14 | include_HEADERS += ../../sparc/shared/include/debug_defs.h |
---|
[41c9282] | 15 | |
---|
| 16 | nodist_include_HEADERS = include/bspopts.h |
---|
| 17 | DISTCLEANFILES = include/bspopts.h |
---|
| 18 | |
---|
| 19 | noinst_PROGRAMS = |
---|
| 20 | |
---|
| 21 | # wrapup is the one that actually builds and installs the library |
---|
| 22 | # from the individual .rel files built in other directories |
---|
| 23 | SUBDIRS = . tools |
---|
| 24 | |
---|
| 25 | include_HEADERS += include/leon.h |
---|
| 26 | include_HEADERS += include/coverhd.h |
---|
| 27 | |
---|
| 28 | EXTRA_DIST = ../../sparc/shared/start.S |
---|
| 29 | start.$(OBJEXT): ../../sparc/shared/start.S |
---|
[57357d9] | 30 | $(CPPASCOMPILE) -o $@ -c $< |
---|
[41c9282] | 31 | |
---|
| 32 | project_lib_DATA = start.$(OBJEXT) |
---|
| 33 | |
---|
| 34 | dist_project_lib_DATA += startup/linkcmds |
---|
| 35 | |
---|
| 36 | noinst_PROGRAMS += startup.rel |
---|
| 37 | startup_rel_SOURCES = ../../sparc/shared/bspclean.c ../../shared/bsplibc.c \ |
---|
[aa4369c] | 38 | ../../shared/bsppost.c startup/bspstart.c \ |
---|
[41c9282] | 39 | ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \ |
---|
| 40 | startup/spurious.c startup/ithread.S |
---|
| 41 | startup_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 42 | startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 43 | |
---|
| 44 | noinst_PROGRAMS += gnatsupp.rel |
---|
| 45 | gnatsupp_rel_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c |
---|
| 46 | gnatsupp_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 47 | gnatsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 48 | |
---|
| 49 | include_HEADERS += include/amba.h |
---|
[1982a19] | 50 | include_HEADERS += ../../sparc/shared/include/ambapp.h |
---|
[41c9282] | 51 | |
---|
| 52 | noinst_PROGRAMS += amba.rel |
---|
[1982a19] | 53 | amba_rel_SOURCES = amba/amba.c ../../sparc/shared/amba/ambapp.c |
---|
[41c9282] | 54 | amba_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 55 | amba_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 56 | |
---|
| 57 | noinst_PROGRAMS += console.rel |
---|
[344ba65a] | 58 | console_rel_SOURCES = console/console.c console/consolereserveresources.c |
---|
[41c9282] | 59 | console_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 60 | console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 61 | |
---|
[344ba65a] | 62 | noinst_PROGRAMS += debugio.rel |
---|
| 63 | debugio_rel_SOURCES = console/debugputs.c |
---|
| 64 | debugio_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 65 | debugio_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 66 | |
---|
[41c9282] | 67 | noinst_PROGRAMS += clock.rel |
---|
| 68 | clock_rel_SOURCES = clock/ckinit.c |
---|
| 69 | clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 70 | clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 71 | |
---|
[344ba65a] | 72 | # PCI |
---|
| 73 | include_HEADERS += ../../sparc/shared/include/pci.h |
---|
| 74 | noinst_PROGRAMS += pci.rel |
---|
| 75 | pci_rel_SOURCES = pci/pci.c ../../sparc/shared/pci/pcifinddevice.c |
---|
| 76 | pci_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 77 | pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 78 | |
---|
| 79 | # B1553BRM |
---|
| 80 | include_HEADERS += ../../sparc/shared/include/b1553brm.h ../../sparc/shared/include/b1553brm_pci.h |
---|
| 81 | noinst_PROGRAMS += brm.rel |
---|
| 82 | brm_rel_SOURCES = ../../sparc/shared/1553/b1553brm.c ../../sparc/shared/1553/b1553brm_pci.c |
---|
| 83 | brm_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 84 | brm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 85 | |
---|
| 86 | # CAN |
---|
| 87 | include_HEADERS += ../../sparc/shared/include/occan.h ../../sparc/shared/include/occan_pci.h ../../sparc/shared/include/grcan.h |
---|
| 88 | noinst_PROGRAMS += can.rel |
---|
| 89 | can_rel_SOURCES = ../../sparc/shared/can/occan.c ../../sparc/shared/can/occan_pci.c ../../sparc/shared/can/grcan.c |
---|
| 90 | can_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 91 | can_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 92 | |
---|
| 93 | # SpaceWire |
---|
| 94 | include_HEADERS += ../../sparc/shared/include/grspw.h ../../sparc/shared/include/grspw_pci.h |
---|
| 95 | noinst_PROGRAMS += spw.rel |
---|
| 96 | spw_rel_SOURCES = ../../sparc/shared/spw/grspw.c ../../sparc/shared/spw/grspw_pci.c |
---|
| 97 | spw_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 98 | spw_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 99 | |
---|
| 100 | # UART |
---|
| 101 | include_HEADERS += ../../sparc/shared/include/apbuart.h ../../sparc/shared/include/apbuart_pci.h |
---|
| 102 | noinst_PROGRAMS += uart.rel |
---|
| 103 | uart_rel_SOURCES = ../../sparc/shared/uart/apbuart.c ../../sparc/shared/uart/apbuart_pci.c |
---|
| 104 | uart_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 105 | uart_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 106 | |
---|
| 107 | |
---|
[41c9282] | 108 | if HAS_NETWORKING |
---|
| 109 | noinst_PROGRAMS += leon_smc91111.rel |
---|
| 110 | leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c |
---|
| 111 | leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 112 | leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
| 113 | leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 114 | endif |
---|
| 115 | |
---|
| 116 | noinst_PROGRAMS += timer.rel |
---|
| 117 | timer_rel_SOURCES = timer/timer.c |
---|
| 118 | timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 119 | timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 120 | |
---|
| 121 | if HAS_NETWORKING |
---|
| 122 | noinst_PROGRAMS += leon_open_eth.rel |
---|
| 123 | leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c |
---|
| 124 | leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 125 | leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
| 126 | leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 127 | endif |
---|
| 128 | |
---|
[6dd1665c] | 129 | if HAS_NETWORKING |
---|
| 130 | noinst_PROGRAMS += leon_greth.rel |
---|
| 131 | leon_greth_rel_SOURCES = leon_greth/leon_greth.c |
---|
| 132 | leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 133 | leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
| 134 | leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 135 | endif |
---|
| 136 | |
---|
[41c9282] | 137 | noinst_LIBRARIES = libbsp.a |
---|
| 138 | libbsp_a_SOURCES = |
---|
[344ba65a] | 139 | libbsp_a_LIBADD = startup.rel amba.rel console.rel clock.rel debugio.rel \ |
---|
| 140 | timer.rel gnatsupp.rel brm.rel can.rel spw.rel uart.rel pci.rel |
---|
[41c9282] | 141 | |
---|
| 142 | if HAS_NETWORKING |
---|
| 143 | libbsp_a_LIBADD += leon_open_eth.rel |
---|
| 144 | endif |
---|
| 145 | |
---|
[6dd1665c] | 146 | if HAS_NETWORKING |
---|
| 147 | libbsp_a_LIBADD += leon_greth.rel |
---|
| 148 | endif |
---|
| 149 | |
---|
[97871c97] | 150 | if HAS_MP |
---|
| 151 | EXTRA_DIST += shmsupp/README |
---|
| 152 | |
---|
| 153 | noinst_PROGRAMS += shmsupp.rel |
---|
| 154 | shmsupp_rel_SOURCES = shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \ |
---|
| 155 | shmsupp/mpisr.c |
---|
| 156 | shmsupp_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 157 | shmsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 158 | endif |
---|
| 159 | |
---|
[41c9282] | 160 | libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \ |
---|
| 161 | ../../../libcpu/@RTEMS_CPU@/reg_win.rel \ |
---|
| 162 | ../../../libcpu/@RTEMS_CPU@/syscall.rel |
---|
| 163 | |
---|
[97871c97] | 164 | if HAS_MP |
---|
| 165 | libbsp_a_LIBADD += shmsupp.rel |
---|
| 166 | endif |
---|
| 167 | |
---|
[41c9282] | 168 | EXTRA_DIST += times |
---|
| 169 | |
---|
[4d8d475] | 170 | include $(srcdir)/preinstall.am |
---|
[41c9282] | 171 | include $(top_srcdir)/../../../../automake/local.am |
---|