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

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

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

  • 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.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 ../../sparc/shared/include/grspw_pci.h ../../sparc/shared/include/grspw_rasta.h
18include_HEADERS += ../../sparc/shared/include/occan.h ../../sparc/shared/include/occan_pci.h
19include_HEADERS += ../../sparc/shared/include/grcan.h ../../sparc/shared/include/grcan_rasta.h
20include_HEADERS += ../../sparc/shared/include/apbuart.h ../../sparc/shared/include/apbuart_pci.h ../../sparc/shared/include/apbuart_rasta.h
21include_HEADERS += ../../sparc/shared/include/b1553brm.h ../../sparc/shared/include/b1553brm_pci.h ../../sparc/shared/include/b1553brm_rasta.h
22include_HEADERS += ../../sparc/shared/include/debug_defs.h
23include_HEADERS += ../../sparc/shared/include/pci.h
24
25nodist_include_HEADERS = include/bspopts.h
26DISTCLEANFILES = include/bspopts.h
27
28noinst_PROGRAMS =
29
30# wrapup is the one that actually builds and installs the library
31# from the individual .rel files built in other directories
32SUBDIRS = . tools
33
34include_HEADERS += include/leon.h
35include_HEADERS += include/coverhd.h
36
37EXTRA_DIST = ../../sparc/shared/start.S
38start.$(OBJEXT): ../../sparc/shared/start.S
39        $(CPPASCOMPILE) -o $@ -c $<
40
41project_lib_DATA = start.$(OBJEXT)
42
43dist_project_lib_DATA += startup/linkcmds
44
45noinst_PROGRAMS += startup.rel
46startup_rel_SOURCES = ../../sparc/shared/bspclean.c ../../shared/bsplibc.c \
47    ../../shared/bsppost.c ../../sparc/shared/bspstart.c \
48    ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \
49    startup/spurious.c
50startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
51startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
52
53noinst_PROGRAMS += gnatsupp.rel
54gnatsupp_rel_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
55gnatsupp_rel_CPPFLAGS = $(AM_CPPFLAGS)
56gnatsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
57
58noinst_PROGRAMS += console.rel
59console_rel_SOURCES = console/console.c console/consolereserveresources.c \
60    console/debugputs.c
61console_rel_CPPFLAGS = $(AM_CPPFLAGS)
62console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
63
64noinst_PROGRAMS += clock.rel
65clock_rel_SOURCES = clock/ckinit.c
66clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
67clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
68
69# AMBA PnP Scanning
70noinst_PROGRAMS += amba.rel
71amba_rel_SOURCES = ../../sparc/shared/amba/ambapp.c
72amba_rel_CPPFLAGS = $(AM_CPPFLAGS)
73amba_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
74
75# PCI
76noinst_PROGRAMS += pci.rel
77pci_rel_SOURCES = pci/pci.c ../../sparc/shared/pci/pcifinddevice.c
78pci_rel_CPPFLAGS = $(AM_CPPFLAGS)
79pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
80
81# RASTA Kit
82noinst_PROGRAMS += rasta.rel
83rasta_rel_SOURCES = rasta/rasta.c
84rasta_rel_CPPFLAGS = $(AM_CPPFLAGS)
85rasta_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
86
87# Companion Chip Kit
88noinst_PROGRAMS += cchip.rel
89cchip_rel_SOURCES = cchip/cchip.c
90cchip_rel_CPPFLAGS = $(AM_CPPFLAGS)
91cchip_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
92
93# B1553BRM
94noinst_PROGRAMS += brm.rel
95brm_rel_SOURCES = ../../sparc/shared/1553/b1553brm.c ../../sparc/shared/1553/b1553brm_pci.c ../../sparc/shared/1553/b1553brm_rasta.c
96brm_rel_CPPFLAGS = $(AM_CPPFLAGS)
97brm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
98
99# CAN
100noinst_PROGRAMS += can.rel
101can_rel_SOURCES = ../../sparc/shared/can/occan.c ../../sparc/shared/can/occan_pci.c ../../sparc/shared/can/grcan.c ../../sparc/shared/can/grcan_rasta.c
102can_rel_CPPFLAGS = $(AM_CPPFLAGS)
103can_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
104
105# SpaceWire
106noinst_PROGRAMS += spw.rel
107spw_rel_SOURCES = ../../sparc/shared/spw/grspw.c ../../sparc/shared/spw/grspw_pci.c ../../sparc/shared/spw/grspw_rasta.c
108spw_rel_CPPFLAGS = $(AM_CPPFLAGS)
109spw_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
110
111# UART (RAW)
112noinst_PROGRAMS += uart.rel
113uart_rel_SOURCES = ../../sparc/shared/uart/apbuart.c ../../sparc/shared/uart/apbuart_pci.c ../../sparc/shared/uart/apbuart_rasta.c
114uart_rel_CPPFLAGS = $(AM_CPPFLAGS)
115uart_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
116
117
118if HAS_NETWORKING
119noinst_PROGRAMS += leon_smc91111.rel
120leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
121leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
122leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
123leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
124endif
125
126noinst_PROGRAMS += timer.rel
127timer_rel_SOURCES = timer/timer.c
128timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
129timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
130
131if HAS_NETWORKING
132noinst_PROGRAMS += leon_open_eth.rel
133leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
134leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
135leon_open_eth_rel_CPPFLAGS +=  -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
136leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
137endif
138
139noinst_LIBRARIES = libbsp.a
140libbsp_a_SOURCES =
141libbsp_a_LIBADD = startup.rel console.rel clock.rel timer.rel gnatsupp.rel \
142                  amba.rel rasta.rel uart.rel spw.rel can.rel brm.rel pci.rel \
143                  cchip.rel
144
145if HAS_NETWORKING
146libbsp_a_LIBADD += leon_open_eth.rel
147libbsp_a_LIBADD += leon_smc91111.rel
148endif
149
150libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \
151    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
152    ../../../libcpu/@RTEMS_CPU@/syscall.rel
153
154EXTRA_DIST += times
155
156include $(srcdir)/preinstall.am
157include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.