source: rtems/c/src/lib/libbsp/sparc/leon3/Makefile.am @ 344ba65

4.104.114.84.95
Last change on this file since 344ba65 was 344ba65, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 6, 2007 at 1:23:43 PM

2007-09-06 Daniel Hellstrom <daniel@…>

  • Makefile.am, preinstall.am: New files, split of printk.
  • console/console.c, console/debugputs.c: Split printk support out.
  • include/spacewire.h: Removed.
  • Makefile.am, preinstall.am: Use the following new drivers from sparc/shared: PCI, b1553BRM, SpaceWire?(GRSPW), CAN (GRCAN), Raw UART.
  • Property mode set to 100644
File size: 5.2 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 += ../../sparc/shared/include/debug_defs.h
15
16nodist_include_HEADERS = include/bspopts.h
17DISTCLEANFILES = include/bspopts.h
18
19noinst_PROGRAMS =
20
21# wrapup is the one that actually builds and installs the library
22# from the individual .rel files built in other directories
23SUBDIRS = . tools
24
25include_HEADERS += include/leon.h
26include_HEADERS += include/coverhd.h
27
28EXTRA_DIST = ../../sparc/shared/start.S
29start.$(OBJEXT): ../../sparc/shared/start.S
30        $(CPPASCOMPILE) -o $@ -c $<
31
32project_lib_DATA = start.$(OBJEXT)
33
34dist_project_lib_DATA += startup/linkcmds
35
36noinst_PROGRAMS += startup.rel
37startup_rel_SOURCES = ../../sparc/shared/bspclean.c ../../shared/bsplibc.c \
38    ../../shared/bsppost.c startup/bspstart.c \
39    ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \
40    startup/spurious.c startup/ithread.S
41startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
42startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
43
44noinst_PROGRAMS += gnatsupp.rel
45gnatsupp_rel_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
46gnatsupp_rel_CPPFLAGS = $(AM_CPPFLAGS)
47gnatsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49include_HEADERS += include/amba.h
50include_HEADERS += ../../sparc/shared/include/ambapp.h
51
52noinst_PROGRAMS += amba.rel
53amba_rel_SOURCES = amba/amba.c ../../sparc/shared/amba/ambapp.c
54amba_rel_CPPFLAGS = $(AM_CPPFLAGS)
55amba_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
56
57noinst_PROGRAMS += console.rel
58console_rel_SOURCES = console/console.c console/consolereserveresources.c
59console_rel_CPPFLAGS = $(AM_CPPFLAGS)
60console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
61
62noinst_PROGRAMS += debugio.rel
63debugio_rel_SOURCES = console/debugputs.c
64debugio_rel_CPPFLAGS = $(AM_CPPFLAGS)
65debugio_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
66
67noinst_PROGRAMS += clock.rel
68clock_rel_SOURCES = clock/ckinit.c
69clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
70clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
71
72# PCI
73include_HEADERS += ../../sparc/shared/include/pci.h
74noinst_PROGRAMS += pci.rel
75pci_rel_SOURCES = pci/pci.c ../../sparc/shared/pci/pcifinddevice.c
76pci_rel_CPPFLAGS = $(AM_CPPFLAGS)
77pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
78
79# B1553BRM
80include_HEADERS += ../../sparc/shared/include/b1553brm.h ../../sparc/shared/include/b1553brm_pci.h
81noinst_PROGRAMS += brm.rel
82brm_rel_SOURCES = ../../sparc/shared/1553/b1553brm.c ../../sparc/shared/1553/b1553brm_pci.c
83brm_rel_CPPFLAGS = $(AM_CPPFLAGS)
84brm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
85
86# CAN
87include_HEADERS += ../../sparc/shared/include/occan.h ../../sparc/shared/include/occan_pci.h ../../sparc/shared/include/grcan.h
88noinst_PROGRAMS += can.rel
89can_rel_SOURCES = ../../sparc/shared/can/occan.c ../../sparc/shared/can/occan_pci.c  ../../sparc/shared/can/grcan.c
90can_rel_CPPFLAGS = $(AM_CPPFLAGS)
91can_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
92
93# SpaceWire
94include_HEADERS += ../../sparc/shared/include/grspw.h ../../sparc/shared/include/grspw_pci.h
95noinst_PROGRAMS += spw.rel
96spw_rel_SOURCES = ../../sparc/shared/spw/grspw.c ../../sparc/shared/spw/grspw_pci.c
97spw_rel_CPPFLAGS = $(AM_CPPFLAGS)
98spw_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
99
100# UART
101include_HEADERS += ../../sparc/shared/include/apbuart.h ../../sparc/shared/include/apbuart_pci.h
102noinst_PROGRAMS += uart.rel
103uart_rel_SOURCES = ../../sparc/shared/uart/apbuart.c ../../sparc/shared/uart/apbuart_pci.c
104uart_rel_CPPFLAGS = $(AM_CPPFLAGS)
105uart_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
106
107
108if HAS_NETWORKING
109noinst_PROGRAMS += leon_smc91111.rel
110leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
111leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
112leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
113leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
114endif
115
116noinst_PROGRAMS += timer.rel
117timer_rel_SOURCES = timer/timer.c
118timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
119timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
120
121if HAS_NETWORKING
122noinst_PROGRAMS += leon_open_eth.rel
123leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
124leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
125leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
126leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
127endif
128
129if HAS_NETWORKING
130noinst_PROGRAMS += leon_greth.rel
131leon_greth_rel_SOURCES = leon_greth/leon_greth.c
132leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS)
133leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
134leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
135endif
136
137noinst_LIBRARIES = libbsp.a
138libbsp_a_SOURCES =
139libbsp_a_LIBADD = startup.rel amba.rel console.rel clock.rel debugio.rel \
140  timer.rel gnatsupp.rel brm.rel can.rel spw.rel uart.rel pci.rel
141
142if HAS_NETWORKING
143libbsp_a_LIBADD += leon_open_eth.rel
144endif
145
146if HAS_NETWORKING
147libbsp_a_LIBADD += leon_greth.rel
148endif
149
150if HAS_MP
151EXTRA_DIST += shmsupp/README
152
153noinst_PROGRAMS += shmsupp.rel
154shmsupp_rel_SOURCES = shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \
155    shmsupp/mpisr.c
156shmsupp_rel_CPPFLAGS = $(AM_CPPFLAGS)
157shmsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
158endif
159
160libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \
161    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
162    ../../../libcpu/@RTEMS_CPU@/syscall.rel
163
164if HAS_MP
165libbsp_a_LIBADD += shmsupp.rel
166endif
167
168EXTRA_DIST += times
169
170include $(srcdir)/preinstall.am
171include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.