1 | ## |
---|
2 | # |
---|
3 | # @file |
---|
4 | # |
---|
5 | # @brief Makefile of LibBSP for the LPC32XX 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/lpc32xx.h |
---|
41 | include_bsp_HEADERS += include/lpc-clock-config.h |
---|
42 | |
---|
43 | include_HEADERS += ../../shared/include/tm27.h |
---|
44 | |
---|
45 | ############################################################################### |
---|
46 | # Data # |
---|
47 | ############################################################################### |
---|
48 | |
---|
49 | noinst_LIBRARIES = libbspstart.a |
---|
50 | |
---|
51 | libbspstart_a_SOURCES = ../shared/start/start.S |
---|
52 | |
---|
53 | project_lib_DATA = start.$(OBJEXT) |
---|
54 | |
---|
55 | project_lib_DATA += startup/linkcmds |
---|
56 | project_lib_DATA += ../shared/startup/linkcmds.base |
---|
57 | |
---|
58 | EXTRA_DIST = startup/linkcmds.lpc32xx_phycore |
---|
59 | |
---|
60 | ############################################################################### |
---|
61 | # LibBSP # |
---|
62 | ############################################################################### |
---|
63 | |
---|
64 | noinst_LIBRARIES += libbsp.a |
---|
65 | |
---|
66 | libbsp_a_SOURCES = |
---|
67 | |
---|
68 | # Shared |
---|
69 | libbsp_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 |
---|
82 | libbsp_a_SOURCES += startup/bspstart.c \ |
---|
83 | startup/bspreset.c |
---|
84 | |
---|
85 | # IRQ |
---|
86 | libbsp_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 |
---|
94 | libbsp_a_SOURCES += ../../shared/console.c \ |
---|
95 | console/console-config.c |
---|
96 | |
---|
97 | # Clock |
---|
98 | libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c \ |
---|
99 | ../../../shared/clockdrv_shell.h |
---|
100 | |
---|
101 | # RTC |
---|
102 | libbsp_a_SOURCES += ../../shared/tod.c \ |
---|
103 | rtc/rtc-config.c |
---|
104 | |
---|
105 | # Timer |
---|
106 | libbsp_a_SOURCES += misc/timer.c |
---|
107 | |
---|
108 | # SSP |
---|
109 | |
---|
110 | # I2C |
---|
111 | |
---|
112 | # Start hooks (FIXME: This is brittle.) |
---|
113 | libbsp_a_SOURCES += startup/bspstarthooks.c |
---|
114 | bspstarthooks.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 | |
---|
123 | if 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 | |
---|
133 | endif |
---|
134 | |
---|
135 | ############################################################################### |
---|
136 | # Special Rules # |
---|
137 | ############################################################################### |
---|
138 | |
---|
139 | DISTCLEANFILES = include/bspopts.h |
---|
140 | |
---|
141 | include $(srcdir)/preinstall.am |
---|
142 | include $(top_srcdir)/../../../../automake/local.am |
---|