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

4.104.115
Last change on this file since b23d895 was b23d895, checked in by Joel Sherrill <joel.sherrill@…>, on 09/22/08 at 21:49:23

2008-09-22 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, startup/bspstart.c: Use standardized bsp_cleanup() which can optionally print a message, poll for user to press key, and call bsp_reset(). Using this eliminates the various bsp_cleanup() implementations which had their own implementation and variety of string constants.
  • Property mode set to 100644
File size: 3.2 KB
Line 
1##
2#
3# @file
4#
5# @brief Makefile of LibBSP for the LPC247X boards.
6#
7
8# $Id$
9
10ACLOCAL_AMFLAGS = -I ../../../../aclocal
11
12include $(top_srcdir)/../../../../automake/compile.am
13include $(top_srcdir)/../../bsp.am
14
15include_bspdir = $(includedir)/bsp
16
17libcpudir = ../../../libcpu/@RTEMS_CPU@
18
19###############################################################################
20#                  Header                                                     #
21###############################################################################
22
23include_HEADERS = include/bsp.h
24
25nodist_include_HEADERS = include/bspopts.h
26
27include_bsp_HEADERS = ../../shared/include/irq-generic.h \
28        ../../shared/tod.h \
29        ../shared/include/linker-symbols.h \
30        ../shared/include/start.h \
31        include/irq-config.h \
32        include/irq.h \
33        include/lpc24xx.h \
34        include/system-clocks.h
35
36###############################################################################
37#                  Data                                                       #
38###############################################################################
39
40EXTRA_DIST = ../shared/start/start.S
41
42project_lib_DATA = start.$(OBJEXT)
43
44dist_project_lib_DATA = ../shared/startup/linkcmds.base \
45        startup/linkcmds \
46        bsp_specs
47
48###############################################################################
49#                  LibBSP                                                     #
50###############################################################################
51
52shared_SOURCES = ../../shared/bootcard.c \
53        ../../shared/bspclean.c \
54        ../../shared/bspreset.c \
55        ../../shared/bspgetworkarea.c \
56        ../../shared/bsplibc.c \
57        ../../shared/bsppost.c \
58        ../../shared/bsppredriverhook.c \
59        ../../shared/bsppretaskinghook.c \
60        ../../shared/gnatinstallhandler.c \
61        ../../shared/sbrk.c \
62        ../shared/abort/simple_abort.c
63
64startup_SOURCES = startup/bspstart.c
65
66irq_SOURCES = ../../shared/src/irq-generic.c \
67        ../../shared/src/irq-legacy.c \
68        ../shared/irq/irq_asm.S \
69        irq/irq.c
70
71console_SOURCES = ../../shared/console.c \
72        console/console-config.c
73
74clock_SOURCES = clock/clock-config.c
75
76rtc_SOURCES = ../../shared/tod.c \
77        rtc/rtc-config.c
78
79misc_SOURCES = misc/system-clocks.c
80
81noinst_LIBRARIES = libbsp.a
82
83libbsp_a_SOURCES = $(clock_SOURCES) \
84        $(console_SOURCES) \
85        $(irq_SOURCES) \
86        $(misc_SOURCES) \
87        $(rtc_SOURCES) \
88        $(shared_SOURCES) \
89        $(startup_SOURCES)
90
91###############################################################################
92#                  Network                                                    #
93###############################################################################
94
95if HAS_NETWORKING
96
97noinst_PROGRAMS = network.rel
98
99network_rel_SOURCES = network/network.c
100network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
101network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
102
103libbsp_a_LIBADD = network.rel
104
105endif
106
107###############################################################################
108#                  Special Rules                                              #
109###############################################################################
110
111start.$(OBJEXT): ../shared/start/start.S
112        $(CPPASCOMPILE) -o $@ -c $<
113
114include $(srcdir)/preinstall.am
115include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.