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

4.104.115
Last change on this file since c06b3fa was c06b3fa, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/26/08 at 05:15:50

2008-09-26 Ralf Corsépius <ralf.corsepius@…>

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