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

4.104.115
Last change on this file since c468f18b was c468f18b, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 12/15/09 at 15:20:47

add support for LPC32xx

  • Property mode set to 100644
File size: 4.7 KB
Line 
1##
2#
3# @file
4#
5# @brief Makefile of LibBSP for the LPC24XX boards.
6#
7
8# $Id$
9
10ACLOCAL_AMFLAGS = -I ../../../../aclocal
11
12include $(top_srcdir)/../../../../automake/compile.am
13
14include_bspdir = $(includedir)/bsp
15
16dist_project_lib_DATA = bsp_specs
17
18###############################################################################
19#                  Header                                                     #
20###############################################################################
21
22include_HEADERS = include/bsp.h
23
24nodist_include_HEADERS = ../../shared/include/coverhd.h \
25        include/bspopts.h
26
27nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
28
29include_bsp_HEADERS =
30include_bsp_HEADERS += ../../shared/include/utility.h
31include_bsp_HEADERS += ../../shared/include/irq-generic.h
32include_bsp_HEADERS += ../../shared/include/irq-info.h
33include_bsp_HEADERS += ../../shared/include/stackalloc.h
34include_bsp_HEADERS += ../../shared/tod.h
35include_bsp_HEADERS += ../shared/include/linker-symbols.h
36include_bsp_HEADERS += ../shared/include/start.h
37include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
38include_bsp_HEADERS += include/irq-config.h
39include_bsp_HEADERS += include/irq.h
40include_bsp_HEADERS += include/lpc24xx.h
41include_bsp_HEADERS += include/system-clocks.h
42include_bsp_HEADERS += include/ssp.h
43include_bsp_HEADERS += include/dma.h
44include_bsp_HEADERS += include/i2c.h
45include_bsp_HEADERS += include/io.h
46include_bsp_HEADERS += include/lpc-clock-config.h
47
48include_HEADERS += ../../shared/include/tm27.h
49
50###############################################################################
51#                  Data                                                       #
52###############################################################################
53
54noinst_LIBRARIES = libbspstart.a
55
56libbspstart_a_SOURCES = ../shared/start/start.S
57
58project_lib_DATA = start.$(OBJEXT)
59
60project_lib_DATA += startup/linkcmds
61project_lib_DATA += ../shared/startup/linkcmds.base
62EXTRA_DIST = startup/linkcmds.lpc24xx_ea
63EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_int
64EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_ext
65EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_ram
66EXTRA_DIST += startup/linkcmds.lpc2362
67
68###############################################################################
69#                  LibBSP                                                     #
70###############################################################################
71
72noinst_LIBRARIES += libbsp.a
73
74libbsp_a_SOURCES =
75
76# Shared
77libbsp_a_SOURCES += ../../shared/bootcard.c \
78        ../../shared/bspclean.c \
79        ../../shared/bspgetworkarea.c \
80        ../../shared/bsplibc.c \
81        ../../shared/bsppost.c \
82        ../../shared/bsppredriverhook.c \
83        ../../shared/bsppretaskinghook.c \
84        ../../shared/gnatinstallhandler.c \
85        ../../shared/sbrk.c \
86        ../../shared/src/stackalloc.c \
87        ../shared/abort/simple_abort.c
88
89# Startup
90libbsp_a_SOURCES += startup/bspstart.c \
91        startup/bspreset.c
92
93# IRQ
94libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
95        ../../shared/src/irq-legacy.c \
96        ../../shared/src/irq-info.c \
97        ../../shared/src/irq-shell.c \
98        ../../shared/src/irq-server.c \
99        irq/irq.c
100
101# Console
102libbsp_a_SOURCES += ../../shared/console.c \
103        console/console-config.c
104
105# Clock
106libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c \
107        ../../../shared/clockdrv_shell.h
108
109# RTC
110libbsp_a_SOURCES += ../../shared/tod.c \
111        rtc/rtc-config.c
112
113# Misc
114libbsp_a_SOURCES += misc/system-clocks.c \
115        misc/dma.c \
116        misc/dma-copy.c \
117        misc/bspidle.c \
118        misc/io.c \
119        misc/timer.c
120
121# SSP
122libbsp_a_SOURCES += ssp/ssp.c
123
124# I2C
125libbsp_a_SOURCES += i2c/i2c.c
126
127# Start hooks (FIXME: This is brittle.)
128libbsp_a_SOURCES += startup/bspstarthooks.c
129bspstarthooks.o: startup/bspstarthooks.c
130        $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS:-mthumb=) \
131        -MT bspstarthooks.o -MD -MP -MF $(DEPDIR)/bspstarthooks.Tpo -c -o bspstarthooks.o \
132        `test -f 'startup/bspstarthooks.c' || echo '$(srcdir)/'`startup/bspstarthooks.c
133
134###############################################################################
135#                  Network                                                    #
136###############################################################################
137
138if HAS_NETWORKING
139
140noinst_PROGRAMS = network.rel
141
142network_rel_SOURCES = network/network.c
143network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
144network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
145
146libbsp_a_LIBADD = network.rel
147
148endif
149
150###############################################################################
151#                  Special Rules                                              #
152###############################################################################
153
154DISTCLEANFILES = include/bspopts.h
155
156include $(srcdir)/preinstall.am
157include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.