source: rtems/c/src/lib/libbsp/arm/lpc32xx/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.2 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
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/lpc32xx.h
41include_bsp_HEADERS += include/lpc-clock-config.h
42
43include_HEADERS += ../../shared/include/tm27.h
44
45###############################################################################
46#                  Data                                                       #
47###############################################################################
48
49noinst_LIBRARIES = libbspstart.a
50
51libbspstart_a_SOURCES = ../shared/start/start.S
52
53project_lib_DATA = start.$(OBJEXT)
54
55project_lib_DATA += startup/linkcmds
56project_lib_DATA += ../shared/startup/linkcmds.base
57
58EXTRA_DIST = startup/linkcmds.lpc32xx_phycore
59
60###############################################################################
61#                  LibBSP                                                     #
62###############################################################################
63
64noinst_LIBRARIES += libbsp.a
65
66libbsp_a_SOURCES =
67
68# Shared
69libbsp_a_SOURCES += ../../shared/bootcard.c \
70        ../../shared/bspclean.c \
71        ../../shared/bspgetworkarea.c \
72        ../../shared/bsplibc.c \
73        ../../shared/bsppost.c \
74        ../../shared/bsppredriverhook.c \
75        ../../shared/bsppretaskinghook.c \
76        ../../shared/gnatinstallhandler.c \
77        ../../shared/sbrk.c \
78        ../../shared/src/stackalloc.c \
79        ../shared/abort/simple_abort.c
80
81# Startup
82libbsp_a_SOURCES += startup/bspstart.c \
83        startup/bspreset.c
84
85# IRQ
86libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
87        ../../shared/src/irq-legacy.c \
88        ../../shared/src/irq-info.c \
89        ../../shared/src/irq-shell.c \
90        ../../shared/src/irq-server.c \
91        irq/irq.c
92
93# Console
94libbsp_a_SOURCES += ../../shared/console.c \
95        console/console-config.c
96
97# Clock
98libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c \
99        ../../../shared/clockdrv_shell.h
100
101# RTC
102libbsp_a_SOURCES += ../../shared/tod.c \
103        rtc/rtc-config.c
104
105# Timer
106libbsp_a_SOURCES += misc/timer.c
107
108# SSP
109
110# I2C
111
112# Start hooks (FIXME: This is brittle.)
113libbsp_a_SOURCES += startup/bspstarthooks.c
114bspstarthooks.o: startup/bspstarthooks.c
115        $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS:-mthumb=) \
116        -MT bspstarthooks.o -MD -MP -MF $(DEPDIR)/bspstarthooks.Tpo -c -o bspstarthooks.o \
117        `test -f 'startup/bspstarthooks.c' || echo '$(srcdir)/'`startup/bspstarthooks.c
118
119###############################################################################
120#                  Network                                                    #
121###############################################################################
122
123if HAS_NETWORKING
124
125# noinst_PROGRAMS = network.rel
126
127# network_rel_SOURCES = network/network.c
128# network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
129# network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
130
131# libbsp_a_LIBADD = network.rel
132
133endif
134
135###############################################################################
136#                  Special Rules                                              #
137###############################################################################
138
139DISTCLEANFILES = include/bspopts.h
140
141include $(srcdir)/preinstall.am
142include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.