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) -DASM -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 startup/bspstart.c ../../shared/main.c \ |
---|
38 | ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \ |
---|
39 | startup/spurious.c startup/ithread.S |
---|
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 | include_HEADERS += include/amba.h |
---|
49 | |
---|
50 | noinst_PROGRAMS += amba.rel |
---|
51 | amba_rel_SOURCES = amba/amba.c |
---|
52 | amba_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
53 | amba_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
54 | |
---|
55 | noinst_PROGRAMS += console.rel |
---|
56 | console_rel_SOURCES = console/console.c console/consolereserveresources.c \ |
---|
57 | console/debugputs.c |
---|
58 | console_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
59 | console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
60 | |
---|
61 | noinst_PROGRAMS += clock.rel |
---|
62 | clock_rel_SOURCES = clock/ckinit.c |
---|
63 | clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
64 | clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
65 | |
---|
66 | if HAS_NETWORKING |
---|
67 | noinst_PROGRAMS += leon_smc91111.rel |
---|
68 | leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c |
---|
69 | leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
70 | leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
71 | leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
72 | endif |
---|
73 | |
---|
74 | noinst_PROGRAMS += timer.rel |
---|
75 | timer_rel_SOURCES = timer/timer.c |
---|
76 | timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
77 | timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
78 | |
---|
79 | if HAS_NETWORKING |
---|
80 | noinst_PROGRAMS += leon_open_eth.rel |
---|
81 | leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c |
---|
82 | leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
83 | leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
84 | leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
85 | endif |
---|
86 | |
---|
87 | noinst_LIBRARIES = libbsp.a |
---|
88 | libbsp_a_SOURCES = |
---|
89 | libbsp_a_LIBADD = startup.rel amba.rel console.rel clock.rel timer.rel \ |
---|
90 | gnatsupp.rel |
---|
91 | |
---|
92 | if HAS_NETWORKING |
---|
93 | libbsp_a_LIBADD += leon_open_eth.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 | all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) |
---|
101 | |
---|
102 | EXTRA_DIST += times |
---|
103 | |
---|
104 | include $(srcdir)/preinstall.am |
---|
105 | include $(top_srcdir)/../../../../automake/local.am |
---|