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

4.115
Last change on this file since bdd3b637 was a3931631, checked in by Jennifer Averett <Jennifer.Averett@…>, on 10/18/11 at 18:25:35

2011-10-18 Jennifer Averett <Jennifer.Averett@…>

PR 1917/bsps

  • Makefile.am, console/console-config.c: Modifications to add dynamic tables for libchip serial drivers.
  • Property mode set to 100644
File size: 5.4 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/include/uart-output-char.h
35include_bsp_HEADERS += ../../shared/tod.h
36include_bsp_HEADERS += ../shared/include/start.h
37include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
38include_bsp_HEADERS += ../shared/lpc/include/lpc-i2s.h
39include_bsp_HEADERS += ../shared/lpc/include/lpc-emc.h
40include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
41include_bsp_HEADERS += ../shared/lpc/include/lpc-lcd.h
42include_bsp_HEADERS += include/dma.h
43include_bsp_HEADERS += include/i2c.h
44include_bsp_HEADERS += include/io.h
45include_bsp_HEADERS += include/irq.h
46include_bsp_HEADERS += include/lcd.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.lpc2362
69EXTRA_DIST += startup/linkcmds.lpc23xx_tli800
70EXTRA_DIST += startup/linkcmds.lpc24xx_ea
71EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_ram
72EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_ext
73EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_int
74EXTRA_DIST += startup/linkcmds.lpc24xx_plx800_rom_int
75
76###############################################################################
77#                  LibBSP                                                     #
78###############################################################################
79
80noinst_LIBRARIES += libbsp.a
81
82libbsp_a_SOURCES =
83libbsp_a_CPPFLAGS =
84libbsp_a_LIBADD =
85
86# Shared
87libbsp_a_SOURCES += ../../shared/bootcard.c \
88        ../../shared/bspclean.c \
89        ../../shared/bspgetworkarea.c \
90        ../../shared/bsplibc.c \
91        ../../shared/bsppost.c \
92        ../../shared/bsppredriverhook.c \
93        ../../shared/gnatinstallhandler.c \
94        ../../shared/sbrk.c \
95        ../../shared/src/stackalloc.c \
96        ../../shared/src/uart-output-char.c \
97        ../shared/abort/simple_abort.c
98
99# Startup
100libbsp_a_SOURCES += startup/bspstart.c \
101        startup/bspreset.c
102
103# IRQ
104libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
105        ../../shared/src/irq-legacy.c \
106        ../../shared/src/irq-info.c \
107        ../../shared/src/irq-shell.c \
108        ../../shared/src/irq-server.c \
109        irq/irq.c \
110        irq/irq-dispatch.c
111
112# Console
113libbsp_a_SOURCES += ../../shared/console.c \
114    console/console-config.c ../../shared/console_select.c \
115    ../../shared/console_read.c ../../shared/console_write.c \
116    ../../shared/console_control.c
117
118# Clock
119libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c
120libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
121
122# RTC
123libbsp_a_SOURCES += ../../shared/tod.c \
124        rtc/rtc-config.c
125
126# Misc
127libbsp_a_SOURCES += misc/system-clocks.c \
128        misc/dma.c \
129        misc/dma-copy.c \
130        misc/bspidle.c \
131        misc/io.c \
132        misc/lcd.c \
133        misc/restart.c \
134        misc/timer.c
135
136# SSP
137libbsp_a_SOURCES += ssp/ssp.c
138
139# I2C
140libbsp_a_SOURCES += i2c/i2c.c \
141        i2c/i2c-config.c
142
143# Cache
144libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
145libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
146libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
147
148# Start hooks
149libbsp_a_SOURCES += startup/bspstarthooks.c
150libbsp_a_SOURCES += startup/start-config-emc-dynamic.c
151libbsp_a_SOURCES += startup/start-config-emc-static.c
152libbsp_a_SOURCES += startup/start-config-pinsel.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.