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 | |
---|
16 | dist_project_lib_DATA = bsp_specs |
---|
17 | |
---|
18 | ############################################################################### |
---|
19 | # Header # |
---|
20 | ############################################################################### |
---|
21 | |
---|
22 | include_HEADERS = include/bsp.h |
---|
23 | |
---|
24 | nodist_include_HEADERS = ../../shared/include/coverhd.h \ |
---|
25 | include/bspopts.h |
---|
26 | |
---|
27 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
28 | |
---|
29 | include_bsp_HEADERS = |
---|
30 | include_bsp_HEADERS += ../../shared/include/utility.h |
---|
31 | include_bsp_HEADERS += ../../shared/include/irq-generic.h |
---|
32 | include_bsp_HEADERS += ../../shared/include/irq-info.h |
---|
33 | include_bsp_HEADERS += ../../shared/include/stackalloc.h |
---|
34 | include_bsp_HEADERS += ../../shared/tod.h |
---|
35 | include_bsp_HEADERS += ../shared/include/linker-symbols.h |
---|
36 | include_bsp_HEADERS += ../shared/include/start.h |
---|
37 | include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h |
---|
38 | include_bsp_HEADERS += include/irq-config.h |
---|
39 | include_bsp_HEADERS += include/irq.h |
---|
40 | include_bsp_HEADERS += include/lpc24xx.h |
---|
41 | include_bsp_HEADERS += include/system-clocks.h |
---|
42 | include_bsp_HEADERS += include/ssp.h |
---|
43 | include_bsp_HEADERS += include/dma.h |
---|
44 | include_bsp_HEADERS += include/i2c.h |
---|
45 | include_bsp_HEADERS += include/io.h |
---|
46 | include_bsp_HEADERS += include/lpc-clock-config.h |
---|
47 | |
---|
48 | include_HEADERS += ../../shared/include/tm27.h |
---|
49 | |
---|
50 | ############################################################################### |
---|
51 | # Data # |
---|
52 | ############################################################################### |
---|
53 | |
---|
54 | noinst_LIBRARIES = libbspstart.a |
---|
55 | |
---|
56 | libbspstart_a_SOURCES = ../shared/start/start.S |
---|
57 | |
---|
58 | project_lib_DATA = start.$(OBJEXT) |
---|
59 | |
---|
60 | project_lib_DATA += startup/linkcmds |
---|
61 | project_lib_DATA += ../shared/startup/linkcmds.base |
---|
62 | EXTRA_DIST = startup/linkcmds.lpc24xx_ea |
---|
63 | EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_int |
---|
64 | EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_ext |
---|
65 | EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_ram |
---|
66 | EXTRA_DIST += startup/linkcmds.lpc2362 |
---|
67 | |
---|
68 | ############################################################################### |
---|
69 | # LibBSP # |
---|
70 | ############################################################################### |
---|
71 | |
---|
72 | noinst_LIBRARIES += libbsp.a |
---|
73 | |
---|
74 | libbsp_a_SOURCES = |
---|
75 | |
---|
76 | # Shared |
---|
77 | libbsp_a_SOURCES += ../../shared/bootcard.c \ |
---|
78 | ../../shared/bspclean.c \ |
---|
79 | ../../shared/bspgetworkarea.c \ |
---|
80 | ../../shared/bsplibc.c \ |
---|
81 | ../../shared/bsppost.c \ |
---|
82 | ../../shared/bsppredriverhook.c \ |
---|
83 | ../../shared/bsppretaskinghook.c \ |
---|
84 | ../../shared/gnatinstallhandler.c \ |
---|
85 | ../../shared/sbrk.c \ |
---|
86 | ../../shared/src/stackalloc.c \ |
---|
87 | ../shared/abort/simple_abort.c |
---|
88 | |
---|
89 | # Startup |
---|
90 | libbsp_a_SOURCES += startup/bspstart.c \ |
---|
91 | startup/bspreset.c |
---|
92 | |
---|
93 | # IRQ |
---|
94 | libbsp_a_SOURCES += ../../shared/src/irq-generic.c \ |
---|
95 | ../../shared/src/irq-legacy.c \ |
---|
96 | ../../shared/src/irq-info.c \ |
---|
97 | ../../shared/src/irq-shell.c \ |
---|
98 | ../../shared/src/irq-server.c \ |
---|
99 | irq/irq.c |
---|
100 | |
---|
101 | # Console |
---|
102 | libbsp_a_SOURCES += ../../shared/console.c \ |
---|
103 | console/console-config.c |
---|
104 | |
---|
105 | # Clock |
---|
106 | libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c \ |
---|
107 | ../../../shared/clockdrv_shell.h |
---|
108 | |
---|
109 | # RTC |
---|
110 | libbsp_a_SOURCES += ../../shared/tod.c \ |
---|
111 | rtc/rtc-config.c |
---|
112 | |
---|
113 | # Misc |
---|
114 | libbsp_a_SOURCES += misc/system-clocks.c \ |
---|
115 | misc/dma.c \ |
---|
116 | misc/dma-copy.c \ |
---|
117 | misc/bspidle.c \ |
---|
118 | misc/io.c \ |
---|
119 | misc/timer.c |
---|
120 | |
---|
121 | # SSP |
---|
122 | libbsp_a_SOURCES += ssp/ssp.c |
---|
123 | |
---|
124 | # I2C |
---|
125 | libbsp_a_SOURCES += i2c/i2c.c |
---|
126 | |
---|
127 | # Start hooks (FIXME: This is brittle.) |
---|
128 | libbsp_a_SOURCES += startup/bspstarthooks.c |
---|
129 | bspstarthooks.o: startup/bspstarthooks.c |
---|
130 | $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS:-mthumb=) \ |
---|
131 | -MT bspstarthooks.o -MD -MP -MF $(DEPDIR)/bspstarthooks.Tpo -c -o bspstarthooks.o \ |
---|
132 | `test -f 'startup/bspstarthooks.c' || echo '$(srcdir)/'`startup/bspstarthooks.c |
---|
133 | |
---|
134 | ############################################################################### |
---|
135 | # Network # |
---|
136 | ############################################################################### |
---|
137 | |
---|
138 | if HAS_NETWORKING |
---|
139 | |
---|
140 | noinst_PROGRAMS = network.rel |
---|
141 | |
---|
142 | network_rel_SOURCES = network/network.c |
---|
143 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE |
---|
144 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
145 | |
---|
146 | libbsp_a_LIBADD = network.rel |
---|
147 | |
---|
148 | endif |
---|
149 | |
---|
150 | ############################################################################### |
---|
151 | # Special Rules # |
---|
152 | ############################################################################### |
---|
153 | |
---|
154 | DISTCLEANFILES = include/bspopts.h |
---|
155 | |
---|
156 | include $(srcdir)/preinstall.am |
---|
157 | include $(top_srcdir)/../../../../automake/local.am |
---|