1 | ## |
---|
2 | ## $Id: Makefile.am,v 1.30 2011/03/16 20:05:26 joel Exp |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../../automake/compile.am |
---|
8 | |
---|
9 | include_bspdir = $(includedir)/bsp |
---|
10 | |
---|
11 | dist_project_lib_DATA = bsp_specs |
---|
12 | |
---|
13 | include_HEADERS = include/bsp.h |
---|
14 | include_HEADERS += include/tm27.h |
---|
15 | include_HEADERS += ../../sparc/shared/include/debug_defs.h |
---|
16 | |
---|
17 | nodist_include_HEADERS = include/bspopts.h |
---|
18 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
19 | DISTCLEANFILES = include/bspopts.h |
---|
20 | |
---|
21 | noinst_PROGRAMS = |
---|
22 | |
---|
23 | include_HEADERS += include/leon.h |
---|
24 | include_HEADERS += ../../shared/include/coverhd.h |
---|
25 | |
---|
26 | noinst_LIBRARIES = libbspstart.a |
---|
27 | libbspstart_a_SOURCES = ../../sparc/shared/start.S |
---|
28 | project_lib_DATA = start.$(OBJEXT) |
---|
29 | |
---|
30 | dist_project_lib_DATA += startup/linkcmds ../shared/startup/linkcmds.base |
---|
31 | |
---|
32 | noinst_LIBRARIES += libbsp.a |
---|
33 | libbsp_a_SOURCES = |
---|
34 | |
---|
35 | # startup |
---|
36 | libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \ |
---|
37 | ../../shared/bsppost.c ../../shared/bootcard.c startup/bspstart.c \ |
---|
38 | ../../sparc/shared/bsppretaskinghook.c ../../shared/bsppredriverhook.c \ |
---|
39 | ../../sparc/shared/bspgetworkarea.c ../../shared/sbrk.c startup/setvec.c \ |
---|
40 | startup/spurious.c startup/bspidle.S startup/bspdelay.c \ |
---|
41 | ../../shared/bspinit.c |
---|
42 | |
---|
43 | # ISR Handler |
---|
44 | libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S |
---|
45 | # gnatsupp |
---|
46 | libbsp_a_SOURCES += gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c |
---|
47 | # amba |
---|
48 | include_HEADERS += include/amba.h |
---|
49 | include_HEADERS += ../../sparc/shared/include/ambapp.h |
---|
50 | libbsp_a_SOURCES += amba/amba.c ../../sparc/shared/amba/ambapp.c |
---|
51 | # console |
---|
52 | libbsp_a_SOURCES += console/console.c |
---|
53 | # debugio |
---|
54 | libbsp_a_SOURCES += console/debugputs.c |
---|
55 | # clock |
---|
56 | libbsp_a_SOURCES += clock/ckinit.c |
---|
57 | libbsp_a_SOURCES += ../../shared/clockdrv_shell.h |
---|
58 | # PCI |
---|
59 | include_HEADERS += ../../sparc/shared/include/pci.h |
---|
60 | libbsp_a_SOURCES += pci/pci.c ../../sparc/shared/pci/pcifinddevice.c |
---|
61 | |
---|
62 | # B1553BRM |
---|
63 | include_HEADERS += ../../sparc/shared/include/b1553brm.h \ |
---|
64 | ../../sparc/shared/include/b1553brm_pci.h |
---|
65 | libbsp_a_SOURCES += ../../sparc/shared/1553/b1553brm.c \ |
---|
66 | ../../sparc/shared/1553/b1553brm_pci.c |
---|
67 | |
---|
68 | # CAN |
---|
69 | include_HEADERS += ../../sparc/shared/include/occan.h \ |
---|
70 | ../../sparc/shared/include/occan_pci.h ../../sparc/shared/include/grcan.h |
---|
71 | libbsp_a_SOURCES += ../../sparc/shared/can/occan.c \ |
---|
72 | ../../sparc/shared/can/occan_pci.c ../../sparc/shared/can/grcan.c |
---|
73 | |
---|
74 | # SpaceWire |
---|
75 | include_HEADERS += ../../sparc/shared/include/grspw.h \ |
---|
76 | ../../sparc/shared/include/grspw_pci.h |
---|
77 | libbsp_a_SOURCES += ../../sparc/shared/spw/grspw.c \ |
---|
78 | ../../sparc/shared/spw/grspw_pci.c |
---|
79 | |
---|
80 | # UART |
---|
81 | include_HEADERS += ../../sparc/shared/include/apbuart.h \ |
---|
82 | ../../sparc/shared/include/apbuart_pci.h |
---|
83 | libbsp_a_SOURCES += ../../sparc/shared/uart/apbuart.c \ |
---|
84 | ../../sparc/shared/uart/apbuart_pci.c |
---|
85 | |
---|
86 | # I2CMST |
---|
87 | include_HEADERS += ../../sparc/shared/include/i2cmst.h |
---|
88 | libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c |
---|
89 | |
---|
90 | # timer |
---|
91 | libbsp_a_SOURCES += timer/timer.c |
---|
92 | |
---|
93 | if HAS_SMP |
---|
94 | libbsp_a_SOURCES += smp/getcpuid.c |
---|
95 | libbsp_a_SOURCES += smp/smp_leon3.c |
---|
96 | endif |
---|
97 | |
---|
98 | if HAS_NETWORKING |
---|
99 | noinst_PROGRAMS += leon_smc91111.rel |
---|
100 | leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c |
---|
101 | leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
102 | leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
103 | leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
104 | endif |
---|
105 | |
---|
106 | if HAS_NETWORKING |
---|
107 | noinst_PROGRAMS += leon_open_eth.rel |
---|
108 | leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c |
---|
109 | leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
110 | leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
111 | leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
112 | endif |
---|
113 | |
---|
114 | if HAS_NETWORKING |
---|
115 | noinst_PROGRAMS += leon_greth.rel |
---|
116 | leon_greth_rel_SOURCES = leon_greth/leon_greth.c |
---|
117 | leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
118 | leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
119 | leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
120 | endif |
---|
121 | |
---|
122 | EXTRA_DIST = shmsupp/README |
---|
123 | if HAS_MP |
---|
124 | # shmsupp |
---|
125 | libbsp_a_SOURCES += shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \ |
---|
126 | shmsupp/mpisr.c |
---|
127 | endif |
---|
128 | |
---|
129 | libbsp_a_LIBADD = \ |
---|
130 | ../../../libcpu/@RTEMS_CPU@/access.rel \ |
---|
131 | ../../../libcpu/@RTEMS_CPU@/cache.rel \ |
---|
132 | ../../../libcpu/@RTEMS_CPU@/reg_win.rel \ |
---|
133 | ../../../libcpu/@RTEMS_CPU@/syscall.rel |
---|
134 | |
---|
135 | if HAS_NETWORKING |
---|
136 | libbsp_a_LIBADD += leon_open_eth.rel |
---|
137 | libbsp_a_LIBADD += leon_greth.rel |
---|
138 | libbsp_a_LIBADD += leon_smc91111.rel |
---|
139 | endif |
---|
140 | |
---|
141 | EXTRA_DIST += times |
---|
142 | |
---|
143 | include $(srcdir)/preinstall.am |
---|
144 | include $(top_srcdir)/../../../../automake/local.am |
---|