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

4.104.115
Last change on this file since b1ded240 was 182674ed, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 15, 2008 at 5:54:09 PM

2008-09-15 Joel Sherrill <joel.sherrill@…>

  • Makefile.am: Use shared bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization.
  • Property mode set to 100644
File size: 4.3 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
14include_HEADERS += include/rasta.h
15include_HEADERS += include/cchip.h
16include_HEADERS += ../../sparc/shared/include/ambapp.h
17include_HEADERS += ../../sparc/shared/include/grspw.h
18include_HEADERS += ../../sparc/shared/include/grspw_pci.h
19include_HEADERS += ../../sparc/shared/include/grspw_rasta.h
20include_HEADERS += ../../sparc/shared/include/occan.h
21include_HEADERS += ../../sparc/shared/include/occan_pci.h
22include_HEADERS += ../../sparc/shared/include/grcan.h
23include_HEADERS += ../../sparc/shared/include/grcan_rasta.h
24include_HEADERS += ../../sparc/shared/include/apbuart.h
25include_HEADERS += ../../sparc/shared/include/apbuart_pci.h
26include_HEADERS += ../../sparc/shared/include/apbuart_rasta.h
27include_HEADERS += ../../sparc/shared/include/b1553brm.h
28include_HEADERS += ../../sparc/shared/include/b1553brm_pci.h
29include_HEADERS += ../../sparc/shared/include/b1553brm_rasta.h
30include_HEADERS += ../../sparc/shared/include/debug_defs.h
31include_HEADERS += ../../sparc/shared/include/pci.h
32
33nodist_include_HEADERS = include/bspopts.h
34DISTCLEANFILES = include/bspopts.h
35
36noinst_PROGRAMS =
37
38# wrapup is the one that actually builds and installs the library
39# from the individual .rel files built in other directories
40SUBDIRS = . tools
41
42include_HEADERS += include/leon.h
43include_HEADERS += include/coverhd.h
44
45EXTRA_DIST = ../../sparc/shared/start.S
46start.$(OBJEXT): ../../sparc/shared/start.S
47        $(CPPASCOMPILE) -o $@ -c $<
48
49project_lib_DATA = start.$(OBJEXT)
50
51dist_project_lib_DATA += startup/linkcmds
52
53startup_SOURCES = ../../sparc/shared/bspclean.c ../../shared/bsplibc.c \
54    ../../shared/bsppost.c ../../shared/bsppredriverhook.c \
55    ../../sparc/shared/bspgetworkarea.c ../../sparc/shared/bspstart.c \
56    ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \
57    startup/spurious.c
58gnatsupp_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
59console_SOURCES = console/console.c console/debugputs.c
60clock_SOURCES = clock/ckinit.c
61# AMBA PnP Scanning
62amba_SOURCES = ../../sparc/shared/amba/ambapp.c
63# PCI
64pci_SOURCES = pci/pci.c ../../sparc/shared/pci/pcifinddevice.c
65# RASTA Kit
66rasta_SOURCES = rasta/rasta.c
67# Companion Chip Kit
68cchip_SOURCES = cchip/cchip.c
69# B1553BRM
70brm_SOURCES = ../../sparc/shared/1553/b1553brm.c \
71    ../../sparc/shared/1553/b1553brm_pci.c \
72    ../../sparc/shared/1553/b1553brm_rasta.c
73# CAN
74can_SOURCES = ../../sparc/shared/can/occan.c \
75    ../../sparc/shared/can/occan_pci.c \
76    ../../sparc/shared/can/grcan.c \
77    ../../sparc/shared/can/grcan_rasta.c
78# SpaceWire
79spw_SOURCES = ../../sparc/shared/spw/grspw.c \
80    ../../sparc/shared/spw/grspw_pci.c ../../sparc/shared/spw/grspw_rasta.c
81# UART (RAW)
82uart_SOURCES = ../../sparc/shared/uart/apbuart.c \
83    ../../sparc/shared/uart/apbuart_pci.c \
84    ../../sparc/shared/uart/apbuart_rasta.c
85# I2CMST
86include_HEADERS += ../../sparc/shared/include/i2cmst.h
87i2cmst_SOURCES = ../../sparc/shared/i2c/i2cmst.c
88
89timer_SOURCES = timer/timer.c
90
91if HAS_NETWORKING
92noinst_PROGRAMS += leon_smc91111.rel
93leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
94leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
95leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
96leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
97endif
98
99if HAS_NETWORKING
100noinst_PROGRAMS += leon_open_eth.rel
101leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
102leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
103leon_open_eth_rel_CPPFLAGS +=  -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
104leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
105endif
106
107noinst_LIBRARIES = libbsp.a
108libbsp_a_SOURCES = $(startup_SOURCES) $(gnatsupp_SOURCES) $(console_SOURCES) \
109    $(clock_SOURCES) $(amba_SOURCES) $(pci_SOURCES) $(rasta_SOURCES) \
110    $(cchip_SOURCES) $(brm_SOURCES) $(can_SOURCES) $(spw_SOURCES) \
111    $(uart_SOURCES) $(i2cmst_SOURCES) $(timer_SOURCES)
112
113libbsp_a_LIBADD = \
114    ../../../libcpu/@RTEMS_CPU@/cache.rel \
115    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
116    ../../../libcpu/@RTEMS_CPU@/syscall.rel
117
118if HAS_NETWORKING
119libbsp_a_LIBADD += leon_open_eth.rel
120libbsp_a_LIBADD += leon_smc91111.rel
121endif
122
123EXTRA_DIST += times
124
125include $(srcdir)/preinstall.am
126include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.