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

4.104.115
Last change on this file since 7187942 was 7187942, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/03/09 at 11:34:46

2009-11-03 Ralf Corsépius <ralf.corsepius@…>

  • configure.ac: Add RTEMS_BSP_LINKCMDS.
  • make/custom/lpc24xx.inc: Remove LDFLAGS.
  • make/custom/lpc24xx_ea.cfg: Remove LPC24XX_LINKCMDS.
  • make/custom/lpc24xx_ncs_ram.cfg: Remove LPC24XX_LINKCMDS.
  • make/custom/lpc24xx_ncs_rom_ext.cfg: Remove LPC24XX_LINKCMDS.
  • make/custom/lpc24xx_ncs_rom_int.cfg: Remove LPC24XX_LINKCMDS.
  • startup/linkcmds: Remove.
  • Makefile.am: Rework linkcmds handling.
  • Property mode set to 100644
File size: 4.6 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 += include/irq-config.h
38include_bsp_HEADERS += include/irq.h
39include_bsp_HEADERS += include/lpc24xx.h
40include_bsp_HEADERS += include/system-clocks.h
41include_bsp_HEADERS += include/ssp.h
42include_bsp_HEADERS += include/dma.h
43include_bsp_HEADERS += include/i2c.h
44include_bsp_HEADERS += include/io.h
45
46include_HEADERS += ../../shared/include/tm27.h
47
48###############################################################################
49#                  Data                                                       #
50###############################################################################
51
52noinst_LIBRARIES = libbspstart.a
53
54libbspstart_a_SOURCES = ../shared/start/start.S
55
56project_lib_DATA = start.$(OBJEXT)
57
58project_lib_DATA += startup/linkcmds
59project_lib_DATA += ../shared/startup/linkcmds.base
60EXTRA_DIST = startup/linkcmds.lpc24xx_ea
61EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_int
62EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_ext
63EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_ram
64
65###############################################################################
66#                  LibBSP                                                     #
67###############################################################################
68
69noinst_LIBRARIES += libbsp.a
70
71libbsp_a_SOURCES =
72
73# Shared
74libbsp_a_SOURCES += ../../shared/bootcard.c \
75        ../../shared/bspclean.c \
76        ../../shared/bspgetworkarea.c \
77        ../../shared/bsplibc.c \
78        ../../shared/bsppost.c \
79        ../../shared/bsppredriverhook.c \
80        ../../shared/bsppretaskinghook.c \
81        ../../shared/gnatinstallhandler.c \
82        ../../shared/sbrk.c \
83        ../../shared/src/stackalloc.c \
84        ../shared/abort/simple_abort.c
85
86# Startup
87libbsp_a_SOURCES += startup/bspstart.c \
88        startup/bspreset.c
89
90# IRQ
91libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
92        ../../shared/src/irq-legacy.c \
93        ../../shared/src/irq-info.c \
94        ../../shared/src/irq-shell.c \
95        ../../shared/src/irq-server.c \
96        irq/irq.c
97
98# Console
99libbsp_a_SOURCES += ../../shared/console.c \
100        console/console-config.c
101
102# Clock
103libbsp_a_SOURCES += clock/clock-config.c \
104        ../../../shared/clockdrv_shell.h
105
106# RTC
107libbsp_a_SOURCES += ../../shared/tod.c \
108        rtc/rtc-config.c
109
110# Misc
111libbsp_a_SOURCES += misc/system-clocks.c \
112        misc/dma.c \
113        misc/dma-copy.c \
114        misc/bspidle.c \
115        misc/io.c \
116        misc/timer.c
117
118# SSP
119libbsp_a_SOURCES += ssp/ssp.c
120
121# I2C
122libbsp_a_SOURCES += i2c/i2c.c
123
124# Start hooks (FIXME: This is brittle.)
125libbsp_a_SOURCES += startup/bspstarthooks.c
126bspstarthooks.o: startup/bspstarthooks.c
127        $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS:-mthumb=) \
128        -MT bspstarthooks.o -MD -MP -MF $(DEPDIR)/bspstarthooks.Tpo -c -o bspstarthooks.o \
129        `test -f 'startup/bspstarthooks.c' || echo '$(srcdir)/'`startup/bspstarthooks.c
130
131###############################################################################
132#                  Network                                                    #
133###############################################################################
134
135if HAS_NETWORKING
136
137noinst_PROGRAMS = network.rel
138
139network_rel_SOURCES = network/network.c
140network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
141network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
142
143libbsp_a_LIBADD = network.rel
144
145endif
146
147###############################################################################
148#                  Special Rules                                              #
149###############################################################################
150
151DISTCLEANFILES = include/bspopts.h
152
153include $(srcdir)/preinstall.am
154include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.