source: rtems/c/src/lib/libbsp/arm/lpc32xx/Makefile.am @ 0f31fddc

4.115
Last change on this file since 0f31fddc was 0f31fddc, checked in by Sebastian Huber <sebastian.huber@…>, on 03/24/12 at 21:01:08

bsps: Add shared default IRQ handler

  • Property mode set to 100644
File size: 5.8 KB
Line 
1##
2#
3# @file
4#
5# @brief Makefile of LibBSP for the LPC32XX boards.
6#
7
8# $Id$
9
10ACLOCAL_AMFLAGS = -I ../../../../aclocal
11
12include $(top_srcdir)/../../../../automake/compile.am
13
14include_bspdir = $(includedir)/bsp
15include_libcpudir = $(includedir)/libcpu
16
17dist_project_lib_DATA = bsp_specs
18
19###############################################################################
20#                  Header                                                     #
21###############################################################################
22
23include_HEADERS = include/bsp.h
24include_HEADERS += include/tm27.h
25
26nodist_include_HEADERS = ../../shared/include/coverhd.h \
27        include/bspopts.h
28
29nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
30
31include_bsp_HEADERS =
32include_bsp_HEADERS += ../../shared/include/utility.h
33include_bsp_HEADERS += ../../shared/include/irq-generic.h
34include_bsp_HEADERS += ../../shared/include/irq-info.h
35include_bsp_HEADERS += ../../shared/include/stackalloc.h
36include_bsp_HEADERS += ../../shared/include/uart-output-char.h
37include_bsp_HEADERS += ../../shared/tod.h
38include_bsp_HEADERS += ../shared/include/start.h
39include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
40include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
41include_bsp_HEADERS += ../shared/lpc/include/lpc-i2s.h
42include_bsp_HEADERS += ../shared/lpc/include/lpc-emc.h
43include_bsp_HEADERS += ../shared/lpc/include/lpc-lcd.h
44include_bsp_HEADERS += include/irq.h
45include_bsp_HEADERS += include/mmu.h
46include_bsp_HEADERS += include/lpc32xx.h
47include_bsp_HEADERS += include/lpc-clock-config.h
48include_bsp_HEADERS += include/lpc-ethernet-config.h
49include_bsp_HEADERS += include/nand-mlc.h
50include_bsp_HEADERS += include/boot.h
51include_bsp_HEADERS += include/i2c.h
52include_bsp_HEADERS += include/emc.h
53
54include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/arm-cp15.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
67project_lib_DATA += startup/linkcmds.lpc32xx
68
69EXTRA_DIST = startup/linkcmds.lpc32xx_phycore \
70        startup/linkcmds.lpc32xx_mzx_stage_1 \
71        startup/linkcmds.lpc32xx_mzx_stage_2 \
72        startup/linkcmds.lpc32xx_mzx
73
74###############################################################################
75#                  LibBSP                                                     #
76###############################################################################
77
78noinst_LIBRARIES += libbsp.a
79
80libbsp_a_SOURCES =
81libbsp_a_CPPFLAGS =
82libbsp_a_LIBADD =
83
84# Shared
85libbsp_a_SOURCES += ../../shared/bootcard.c
86libbsp_a_SOURCES += ../../shared/bspclean.c
87libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
88libbsp_a_SOURCES += ../../shared/bsplibc.c
89libbsp_a_SOURCES += ../../shared/bsppost.c
90libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
91libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
92libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
93libbsp_a_SOURCES += ../../shared/sbrk.c
94libbsp_a_SOURCES += ../../shared/src/stackalloc.c
95libbsp_a_SOURCES += ../../shared/src/uart-output-char.c
96libbsp_a_SOURCES += ../shared/abort/simple_abort.c
97libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
98
99# Startup
100libbsp_a_SOURCES += startup/bspreset.c
101libbsp_a_SOURCES += startup/bspstart.c
102
103# IRQ
104libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
105libbsp_a_SOURCES += ../../shared/src/irq-generic.c
106libbsp_a_SOURCES += ../../shared/src/irq-info.c
107libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
108libbsp_a_SOURCES += ../../shared/src/irq-server.c
109libbsp_a_SOURCES += ../../shared/src/irq-shell.c
110libbsp_a_SOURCES += irq/irq.c
111
112# Console
113libbsp_a_SOURCES += ../../shared/console.c \
114        ../../shared/console_select.c \
115        console/console-config.c \
116        console/hsu.c \
117        ../../shared/console_read.c \
118        ../../shared/console_write.c \
119        ../../shared/console_control.c
120
121# Clock
122libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c
123libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
124
125# RTC
126libbsp_a_SOURCES += ../../shared/tod.c \
127        rtc/rtc-config.c
128
129# Misc
130libbsp_a_SOURCES += misc/boot.c
131libbsp_a_SOURCES += misc/emc.c
132libbsp_a_SOURCES += misc/i2c.c
133libbsp_a_SOURCES += misc/mmu.c
134libbsp_a_SOURCES += misc/nand-mlc.c
135libbsp_a_SOURCES += misc/nand-mlc-erase-block-safe.c
136libbsp_a_SOURCES += misc/nand-mlc-read-blocks.c
137libbsp_a_SOURCES += misc/nand-mlc-write-blocks.c
138libbsp_a_SOURCES += misc/restart.c
139libbsp_a_SOURCES += misc/system-clocks.c
140libbsp_a_SOURCES += misc/timer.c
141
142# SSP
143
144# I2C
145
146# Cache
147libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
148libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
149libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
150
151# Start hooks
152libbsp_a_SOURCES += startup/bspstarthooks.c
153
154###############################################################################
155#                  Network                                                    #
156###############################################################################
157
158if HAS_NETWORKING
159
160noinst_PROGRAMS = network.rel
161
162network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c
163network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
164network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
165
166libbsp_a_LIBADD += network.rel
167
168endif
169
170###############################################################################
171#                  Special Rules                                              #
172###############################################################################
173
174DISTCLEANFILES = include/bspopts.h
175
176include $(srcdir)/preinstall.am
177include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.