source: rtems/c/src/lib/libbsp/sparc/leon2/Makefile.am @ aa4369c

4.104.114.84.95
Last change on this file since aa4369c was aa4369c, checked in by Joel Sherrill <joel.sherrill@…>, on 11/15/06 at 15:24:01

2006-11-15 Joel Sherrill <joel@…>

  • Makefile.am: Merge c_rtems_main() into boot_card(). This eliminated a file and simplified initialization.
  • Property mode set to 100644
File size: 2.7 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7include $(top_srcdir)/../../../../automake/compile.am
8include $(top_srcdir)/../../bsp.am
9
10dist_project_lib_DATA = bsp_specs
11
12include_HEADERS = include/bsp.h
13include_HEADERS += include/tm27.h
14
15nodist_include_HEADERS = include/bspopts.h
16DISTCLEANFILES = include/bspopts.h
17
18noinst_PROGRAMS =
19
20# wrapup is the one that actually builds and installs the library
21# from the individual .rel files built in other directories
22SUBDIRS = . tools
23
24include_HEADERS += include/leon.h
25include_HEADERS += include/coverhd.h
26
27EXTRA_DIST = ../../sparc/shared/start.S
28start.$(OBJEXT): ../../sparc/shared/start.S
29        $(CPPASCOMPILE) -o $@ -c $<
30
31project_lib_DATA = start.$(OBJEXT)
32
33dist_project_lib_DATA += startup/linkcmds
34
35noinst_PROGRAMS += startup.rel
36startup_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
40startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
41startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
42
43noinst_PROGRAMS += gnatsupp.rel
44gnatsupp_rel_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
45gnatsupp_rel_CPPFLAGS = $(AM_CPPFLAGS)
46gnatsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
47
48noinst_PROGRAMS += console.rel
49console_rel_SOURCES = console/console.c console/consolereserveresources.c \
50    console/debugputs.c
51console_rel_CPPFLAGS = $(AM_CPPFLAGS)
52console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
53
54noinst_PROGRAMS += clock.rel
55clock_rel_SOURCES = clock/ckinit.c
56clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
57clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
58
59if HAS_NETWORKING
60noinst_PROGRAMS += leon_smc91111.rel
61leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
62leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
63leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
64leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
65endif
66
67noinst_PROGRAMS += timer.rel
68timer_rel_SOURCES = timer/timer.c
69timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
70timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
71
72if HAS_NETWORKING
73noinst_PROGRAMS += leon_open_eth.rel
74leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
75leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
76leon_open_eth_rel_CPPFLAGS +=  -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
77leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
78endif
79
80noinst_LIBRARIES = libbsp.a
81libbsp_a_SOURCES =
82libbsp_a_LIBADD = startup.rel console.rel clock.rel timer.rel gnatsupp.rel
83
84if HAS_NETWORKING
85libbsp_a_LIBADD += leon_open_eth.rel
86libbsp_a_LIBADD += leon_smc91111.rel
87endif
88
89libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \
90    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
91    ../../../libcpu/@RTEMS_CPU@/syscall.rel
92
93EXTRA_DIST += times
94
95include $(srcdir)/preinstall.am
96include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.