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 |
---|
14 | |
---|
15 | nodist_include_HEADERS = include/bspopts.h |
---|
16 | DISTCLEANFILES = include/bspopts.h |
---|
17 | |
---|
18 | noinst_PROGRAMS = |
---|
19 | |
---|
20 | # wrapup is the one that actually builds and installs the library |
---|
21 | # from the individual .rel files built in other directories |
---|
22 | SUBDIRS = . tools |
---|
23 | |
---|
24 | include_HEADERS += include/leon.h |
---|
25 | include_HEADERS += include/coverhd.h |
---|
26 | |
---|
27 | EXTRA_DIST = ../../sparc/shared/start.S |
---|
28 | start.$(OBJEXT): ../../sparc/shared/start.S |
---|
29 | $(CPPASCOMPILE) -o $@ -c $< |
---|
30 | |
---|
31 | project_lib_DATA = start.$(OBJEXT) |
---|
32 | |
---|
33 | dist_project_lib_DATA += startup/linkcmds |
---|
34 | |
---|
35 | noinst_PROGRAMS += startup.rel |
---|
36 | startup_rel_SOURCES = ../../sparc/shared/bspclean.c ../../shared/bsplibc.c \ |
---|
37 | ../../shared/bsppost.c ../../sparc/shared/bspstart.c \ |
---|
38 | ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \ |
---|
39 | startup/spurious.c |
---|
40 | startup_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
41 | startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
42 | |
---|
43 | noinst_PROGRAMS += gnatsupp.rel |
---|
44 | gnatsupp_rel_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c |
---|
45 | gnatsupp_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
46 | gnatsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
47 | |
---|
48 | noinst_PROGRAMS += console.rel |
---|
49 | console_rel_SOURCES = console/console.c console/consolereserveresources.c \ |
---|
50 | console/debugputs.c |
---|
51 | console_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
52 | console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
53 | |
---|
54 | noinst_PROGRAMS += clock.rel |
---|
55 | clock_rel_SOURCES = clock/ckinit.c |
---|
56 | clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
57 | clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
58 | |
---|
59 | if HAS_NETWORKING |
---|
60 | noinst_PROGRAMS += leon_smc91111.rel |
---|
61 | leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c |
---|
62 | leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
63 | leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
64 | leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
65 | endif |
---|
66 | |
---|
67 | noinst_PROGRAMS += timer.rel |
---|
68 | timer_rel_SOURCES = timer/timer.c |
---|
69 | timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
70 | timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
71 | |
---|
72 | if HAS_NETWORKING |
---|
73 | noinst_PROGRAMS += leon_open_eth.rel |
---|
74 | leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c |
---|
75 | leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
76 | leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
77 | leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
78 | endif |
---|
79 | |
---|
80 | noinst_LIBRARIES = libbsp.a |
---|
81 | libbsp_a_SOURCES = |
---|
82 | libbsp_a_LIBADD = startup.rel console.rel clock.rel timer.rel gnatsupp.rel |
---|
83 | |
---|
84 | if HAS_NETWORKING |
---|
85 | libbsp_a_LIBADD += leon_open_eth.rel |
---|
86 | libbsp_a_LIBADD += leon_smc91111.rel |
---|
87 | endif |
---|
88 | |
---|
89 | libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \ |
---|
90 | ../../../libcpu/@RTEMS_CPU@/reg_win.rel \ |
---|
91 | ../../../libcpu/@RTEMS_CPU@/syscall.rel |
---|
92 | |
---|
93 | EXTRA_DIST += times |
---|
94 | |
---|
95 | include $(srcdir)/preinstall.am |
---|
96 | include $(top_srcdir)/../../../../automake/local.am |
---|