source: rtems/c/src/lib/libbsp/arm/lpc176x/Makefile.am @ 642ef00

Last change on this file since 642ef00 was 642ef00, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 27, 2017 at 5:23:29 AM

bsps: Provide <tm27.h> in each BSP

Since the <tm27.h> is highly BSP-dependent and used only by the tm27
test program we must provide this header file for each BSP. Without the
preinstall build target each header file must have a unique source
header file.

Update #3254.

  • Property mode set to 100644
File size: 4.9 KB
Line 
1##
2#
3# @file
4#
5# @brief Makefile of LibBSP for the LPC176x 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# ----------------------------
18# ------  Headers
19# ----------------------------
20
21include_HEADERS = include/bsp.h
22
23nodist_include_HEADERS = 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/include/start.h
34include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
35include_bsp_HEADERS += ../shared/lpc/include/lpc-i2s.h
36include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
37include_bsp_HEADERS += ../shared/armv7m/include/armv7m-irq.h
38include_bsp_HEADERS += include/dma.h
39include_bsp_HEADERS += include/io-defs.h
40include_bsp_HEADERS += include/io.h
41include_bsp_HEADERS += include/common-types.h
42include_bsp_HEADERS += include/gpio-defs.h
43include_bsp_HEADERS += include/lpc-gpio.h
44include_bsp_HEADERS += include/can.h
45include_bsp_HEADERS += include/can-defs.h
46include_bsp_HEADERS += include/pwmout.h
47include_bsp_HEADERS += include/pwmout-defs.h
48include_bsp_HEADERS += include/adc.h
49include_bsp_HEADERS += include/adc-defs.h
50include_bsp_HEADERS += include/timer-defs.h
51include_bsp_HEADERS += include/timer.h
52include_bsp_HEADERS += include/watchdog.h
53include_bsp_HEADERS += include/watchdog-defs.h
54include_bsp_HEADERS += include/irq.h
55include_bsp_HEADERS += include/lpc176x.h
56include_bsp_HEADERS += include/lpc-clock-config.h
57include_bsp_HEADERS += include/system-clocks.h
58include_bsp_HEADERS += include/mbed-pinmap.h
59
60include_HEADERS += include/tm27.h
61
62
63# ----------------------------
64# ------  Data
65# ----------------------------
66
67noinst_LIBRARIES = libbspstart.a
68
69libbspstart_a_SOURCES = ../shared/start/start.S
70
71project_lib_DATA = start.$(OBJEXT)
72project_lib_DATA += startup/linkcmds
73
74EXTRA_DIST =
75EXTRA_DIST += startup/linkcmds.lpc1768_mbed
76EXTRA_DIST += startup/linkcmds.lpc1768_mbed_ahb_ram
77EXTRA_DIST += startup/linkcmds.lpc1768_mbed_ahb_ram_eth
78
79
80# ----------------------------
81# ------  LibBSP
82# ----------------------------
83
84noinst_LIBRARIES += libbsp.a
85
86libbsp_a_SOURCES =
87libbsp_a_CPPFLAGS =
88libbsp_a_LIBADD =
89
90# Shared
91libbsp_a_SOURCES += ../../shared/bootcard.c
92libbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
93libbsp_a_SOURCES += ../../shared/bspclean.c
94libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
95libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
96libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
97libbsp_a_SOURCES += ../../shared/sbrk.c
98libbsp_a_SOURCES += ../../shared/src/stackalloc.c
99libbsp_a_SOURCES += ../../shared/src/uart-output-char.c
100
101# Startup
102libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
103libbsp_a_SOURCES += ../shared/armv7m/startup/bspreset.c
104libbsp_a_SOURCES += startup/bspstart.c
105
106# IRQ
107libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
108libbsp_a_SOURCES += ../../shared/src/irq-generic.c
109libbsp_a_SOURCES += ../../shared/src/irq-info.c
110libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
111libbsp_a_SOURCES += ../../shared/src/irq-server.c
112libbsp_a_SOURCES += ../../shared/src/irq-shell.c
113libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq.c
114libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq-dispatch.c
115libbsp_a_SOURCES += irq/irq.c
116
117# Console
118libbsp_a_SOURCES += ../../shared/console-termios-init.c
119libbsp_a_SOURCES += ../../shared/console-termios.c
120libbsp_a_SOURCES += console/console-config.c
121
122# Clock
123libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
124libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c
125libbsp_a_SOURCES += ../shared/armv7m/clock/armv7m-clock-config.c
126
127# RTC
128libbsp_a_SOURCES += ../../shared/tod.c \
129                        rtc/rtc-config.c
130
131# GPIO
132libbsp_a_SOURCES += gpio/lpc-gpio.c
133
134# CAN
135libbsp_a_SOURCES += can/can.c
136
137# PWMOUT
138libbsp_a_SOURCES += pwmout/pwmout.c
139
140# ADC
141libbsp_a_SOURCES += adc/adc.c
142
143# Timer
144libbsp_a_SOURCES += timer/timer.c
145
146# Benchmark Timer
147libbsp_a_SOURCES += benchmark_timer/benchmark_timer.c
148
149# Misc
150libbsp_a_SOURCES += misc/system-clocks.c
151libbsp_a_SOURCES += misc/dma.c
152libbsp_a_SOURCES += misc/dma-copy.c
153libbsp_a_SOURCES += misc/bspidle.c
154libbsp_a_SOURCES += misc/io.c
155libbsp_a_SOURCES += misc/restart.c
156
157# Watchdog
158libbsp_a_SOURCES += watchdog/watchdog.c
159
160# Cache
161libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
162libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
163libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
164
165# Start hooks
166libbsp_a_SOURCES += startup/bspstarthooks.c
167
168
169# ----------------------------
170# ------  Special Rules
171# ----------------------------
172
173DISTCLEANFILES = include/bspopts.h
174
175include $(srcdir)/preinstall.am
176include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.