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