[bec7ba52] | 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 |
---|
[4d3933b3] | 14 | include_HEADERS += ../../sparc/shared/include/ambapp.h |
---|
[bec7ba52] | 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 $< |
---|
[bec7ba52] | 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 ../../sparc/shared/bspstart.c \ |
---|
[bec7ba52] | 39 | ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \ |
---|
| 40 | startup/spurious.c |
---|
| 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 | noinst_PROGRAMS += console.rel |
---|
| 50 | console_rel_SOURCES = console/console.c console/consolereserveresources.c \ |
---|
| 51 | console/debugputs.c |
---|
| 52 | console_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 53 | console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 54 | |
---|
| 55 | noinst_PROGRAMS += clock.rel |
---|
| 56 | clock_rel_SOURCES = clock/ckinit.c |
---|
| 57 | clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 58 | clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 59 | |
---|
[4d3933b3] | 60 | noinst_PROGRAMS += amba.rel |
---|
| 61 | amba_rel_SOURCES = ../../sparc/shared/amba/ambapp.c |
---|
| 62 | amba_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 63 | amba_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 64 | |
---|
[bec7ba52] | 65 | if HAS_NETWORKING |
---|
| 66 | noinst_PROGRAMS += leon_smc91111.rel |
---|
| 67 | leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c |
---|
| 68 | leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 69 | leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
| 70 | leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 71 | endif |
---|
| 72 | |
---|
| 73 | noinst_PROGRAMS += timer.rel |
---|
| 74 | timer_rel_SOURCES = timer/timer.c |
---|
| 75 | timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 76 | timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 77 | |
---|
| 78 | if HAS_NETWORKING |
---|
| 79 | noinst_PROGRAMS += leon_open_eth.rel |
---|
| 80 | leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c |
---|
| 81 | leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 82 | leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
| 83 | leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 84 | endif |
---|
| 85 | |
---|
| 86 | noinst_LIBRARIES = libbsp.a |
---|
| 87 | libbsp_a_SOURCES = |
---|
[4d3933b3] | 88 | libbsp_a_LIBADD = startup.rel console.rel clock.rel timer.rel gnatsupp.rel \ |
---|
| 89 | amba.rel |
---|
[bec7ba52] | 90 | |
---|
| 91 | if HAS_NETWORKING |
---|
| 92 | libbsp_a_LIBADD += leon_open_eth.rel |
---|
| 93 | libbsp_a_LIBADD += leon_smc91111.rel |
---|
| 94 | endif |
---|
| 95 | |
---|
| 96 | libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \ |
---|
| 97 | ../../../libcpu/@RTEMS_CPU@/reg_win.rel \ |
---|
| 98 | ../../../libcpu/@RTEMS_CPU@/syscall.rel |
---|
| 99 | |
---|
| 100 | EXTRA_DIST += times |
---|
| 101 | |
---|
[4d8d475] | 102 | include $(srcdir)/preinstall.am |
---|
[bec7ba52] | 103 | include $(top_srcdir)/../../../../automake/local.am |
---|