source: rtems/c/src/lib/libbsp/arm/lpc24xx/Makefile.am @ fb0584f

4.115
Last change on this file since fb0584f was fb0584f, checked in by Sebastian Huber <sebastian.huber@…>, on May 3, 2013 at 8:39:26 AM

bsps/arm: Move implementation to inline functions

  • Property mode set to 100644
File size: 6.4 KB
Line 
1##
2#
3# @file
4#
5# @brief Makefile of LibBSP for the LPC24XX boards.
6#
7
8ACLOCAL_AMFLAGS = -I ../../../../aclocal
9
10include $(top_srcdir)/../../../../automake/compile.am
11
12include_bspdir = $(includedir)/bsp
13
14dist_project_lib_DATA = bsp_specs
15
16###############################################################################
17#                  Header                                                     #
18###############################################################################
19
20include_HEADERS = include/bsp.h
21
22nodist_include_HEADERS = ../../shared/include/coverhd.h \
23        include/bspopts.h
24
25nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
26
27include_bsp_HEADERS =
28include_bsp_HEADERS += ../../shared/include/utility.h
29include_bsp_HEADERS += ../../shared/include/irq-generic.h
30include_bsp_HEADERS += ../../shared/include/irq-info.h
31include_bsp_HEADERS += ../../shared/include/stackalloc.h
32include_bsp_HEADERS += ../../shared/include/uart-output-char.h
33include_bsp_HEADERS += ../../shared/tod.h
34include_bsp_HEADERS += ../shared/include/start.h
35include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
36include_bsp_HEADERS += ../shared/lpc/include/lpc-i2s.h
37include_bsp_HEADERS += ../shared/lpc/include/lpc-emc.h
38include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
39include_bsp_HEADERS += ../shared/lpc/include/lpc-lcd.h
40include_bsp_HEADERS += ../shared/armv7m/include/armv7m-irq.h
41include_bsp_HEADERS += include/dma.h
42include_bsp_HEADERS += include/i2c.h
43include_bsp_HEADERS += include/io.h
44include_bsp_HEADERS += include/irq.h
45include_bsp_HEADERS += include/lcd.h
46include_bsp_HEADERS += include/lpc17xx.h
47include_bsp_HEADERS += include/lpc24xx.h
48include_bsp_HEADERS += include/lpc-clock-config.h
49include_bsp_HEADERS += include/lpc-ethernet-config.h
50include_bsp_HEADERS += include/ssp.h
51include_bsp_HEADERS += include/start-config.h
52include_bsp_HEADERS += include/system-clocks.h
53
54include_HEADERS += ../../shared/include/tm27.h
55
56###############################################################################
57#                  Data                                                       #
58###############################################################################
59
60noinst_LIBRARIES = libbspstart.a
61
62libbspstart_a_SOURCES = ../shared/start/start.S
63
64project_lib_DATA = start.$(OBJEXT)
65
66project_lib_DATA += startup/linkcmds
67EXTRA_DIST =
68EXTRA_DIST += startup/linkcmds.lpc17xx_ea_ram
69EXTRA_DIST += startup/linkcmds.lpc17xx_ea_rom_int
70EXTRA_DIST += startup/linkcmds.lpc17xx_plx800_ram
71EXTRA_DIST += startup/linkcmds.lpc17xx_plx800_rom_int
72EXTRA_DIST += startup/linkcmds.lpc2362
73EXTRA_DIST += startup/linkcmds.lpc23xx_tli800
74EXTRA_DIST += startup/linkcmds.lpc24xx_ea
75EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_ram
76EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_ext
77EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_int
78EXTRA_DIST += startup/linkcmds.lpc24xx_plx800_ram
79EXTRA_DIST += startup/linkcmds.lpc24xx_plx800_rom_int
80
81###############################################################################
82#                  LibBSP                                                     #
83###############################################################################
84
85noinst_LIBRARIES += libbsp.a
86
87libbsp_a_SOURCES =
88libbsp_a_CPPFLAGS =
89libbsp_a_LIBADD =
90
91# Shared
92libbsp_a_SOURCES += ../../shared/bootcard.c \
93        ../../shared/bspclean.c \
94        ../../shared/bspgetworkarea.c \
95        ../../shared/bsplibc.c \
96        ../../shared/bsppost.c \
97        ../../shared/bsppredriverhook.c \
98        ../../shared/gnatinstallhandler.c \
99        ../../shared/sbrk.c \
100        ../../shared/src/stackalloc.c \
101        ../../shared/src/uart-output-char.c
102
103# Startup
104libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
105libbsp_a_SOURCES += startup/bspreset.c
106libbsp_a_SOURCES += startup/bspstart.c
107
108# IRQ
109libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
110libbsp_a_SOURCES += ../../shared/src/irq-generic.c
111libbsp_a_SOURCES += ../../shared/src/irq-info.c
112libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
113libbsp_a_SOURCES += ../../shared/src/irq-server.c
114libbsp_a_SOURCES += ../../shared/src/irq-shell.c
115libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq.c
116libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq-dispatch.c
117libbsp_a_SOURCES += irq/irq.c
118libbsp_a_SOURCES += irq/irq-dispatch.c
119
120# Console
121libbsp_a_SOURCES += ../../shared/console.c
122libbsp_a_SOURCES += ../../shared/console_control.c
123libbsp_a_SOURCES += ../../shared/console_read.c
124libbsp_a_SOURCES += ../../shared/console_select.c
125libbsp_a_SOURCES += ../../shared/console_write.c
126libbsp_a_SOURCES += console/console-config.c
127libbsp_a_SOURCES += console/uart-probe-1.c
128libbsp_a_SOURCES += console/uart-probe-2.c
129libbsp_a_SOURCES += console/uart-probe-3.c
130
131# Clock
132libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
133libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c
134libbsp_a_SOURCES += ../shared/armv7m/clock/armv7m-clock-config.c
135
136# RTC
137libbsp_a_SOURCES += ../../shared/tod.c \
138        rtc/rtc-config.c
139
140# Misc
141libbsp_a_SOURCES += misc/system-clocks.c \
142        misc/dma.c \
143        misc/dma-copy.c \
144        misc/bspidle.c \
145        misc/io.c \
146        misc/lcd.c \
147        misc/restart.c \
148        misc/timer.c
149
150# SSP
151libbsp_a_SOURCES += ssp/ssp.c
152
153# I2C
154libbsp_a_SOURCES += i2c/i2c.c \
155        i2c/i2c-config.c
156
157# Cache
158libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
159libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
160libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
161
162# Start hooks
163libbsp_a_SOURCES += startup/bspstarthooks.c
164libbsp_a_SOURCES += startup/start-config-emc-dynamic.c
165libbsp_a_SOURCES += startup/start-config-emc-static.c
166libbsp_a_SOURCES += startup/start-config-mpu.c
167libbsp_a_SOURCES += startup/start-config-pinsel.c
168
169###############################################################################
170#                  Network                                                    #
171###############################################################################
172
173if HAS_NETWORKING
174
175noinst_PROGRAMS = network.rel
176
177network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c
178network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
179network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
180
181libbsp_a_LIBADD += network.rel
182
183endif
184
185###############################################################################
186#                  Special Rules                                              #
187###############################################################################
188
189DISTCLEANFILES = include/bspopts.h
190
191include $(srcdir)/preinstall.am
192include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.