1 | ## |
---|
2 | # |
---|
3 | # @file |
---|
4 | # |
---|
5 | # @brief Makefile of LibBSP for the LPC247X boards. |
---|
6 | # |
---|
7 | |
---|
8 | # $Id$ |
---|
9 | |
---|
10 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
11 | |
---|
12 | include $(top_srcdir)/../../../../automake/compile.am |
---|
13 | include $(top_srcdir)/../../bsp.am |
---|
14 | |
---|
15 | dist_project_lib_DATA = bsp_specs |
---|
16 | |
---|
17 | include_bspdir = $(includedir)/bsp |
---|
18 | |
---|
19 | ############################################################################### |
---|
20 | # Header # |
---|
21 | ############################################################################### |
---|
22 | |
---|
23 | include_HEADERS = include/bsp.h |
---|
24 | |
---|
25 | nodist_include_HEADERS = include/bspopts.h |
---|
26 | DISTCLEANFILES = include/bspopts.h |
---|
27 | |
---|
28 | include_bsp_HEADERS = ../../shared/include/utility.h \ |
---|
29 | ../../shared/include/irq-generic.h \ |
---|
30 | ../../shared/tod.h \ |
---|
31 | ../shared/include/linker-symbols.h \ |
---|
32 | ../shared/include/start.h \ |
---|
33 | include/irq-config.h \ |
---|
34 | include/irq.h \ |
---|
35 | include/lpc24xx.h \ |
---|
36 | include/system-clocks.h |
---|
37 | |
---|
38 | ############################################################################### |
---|
39 | # Data # |
---|
40 | ############################################################################### |
---|
41 | |
---|
42 | EXTRA_DIST = ../shared/start/start.S |
---|
43 | |
---|
44 | project_lib_DATA = start.$(OBJEXT) |
---|
45 | |
---|
46 | dist_project_lib_DATA += ../shared/startup/linkcmds.base \ |
---|
47 | startup/linkcmds |
---|
48 | |
---|
49 | ############################################################################### |
---|
50 | # LibBSP # |
---|
51 | ############################################################################### |
---|
52 | |
---|
53 | shared_SOURCES = ../../shared/bootcard.c \ |
---|
54 | ../../shared/bspclean.c \ |
---|
55 | ../../shared/bspreset.c \ |
---|
56 | ../../shared/bspgetworkarea.c \ |
---|
57 | ../../shared/bsplibc.c \ |
---|
58 | ../../shared/bsppost.c \ |
---|
59 | ../../shared/bsppredriverhook.c \ |
---|
60 | ../../shared/bsppretaskinghook.c \ |
---|
61 | ../../shared/gnatinstallhandler.c \ |
---|
62 | ../../shared/sbrk.c \ |
---|
63 | ../shared/abort/simple_abort.c |
---|
64 | |
---|
65 | startup_SOURCES = startup/bspstart.c |
---|
66 | |
---|
67 | irq_SOURCES = ../../shared/src/irq-generic.c \ |
---|
68 | ../../shared/src/irq-legacy.c \ |
---|
69 | ../shared/irq/irq_asm.S \ |
---|
70 | irq/irq.c |
---|
71 | |
---|
72 | console_SOURCES = ../../shared/console.c \ |
---|
73 | console/console-config.c |
---|
74 | |
---|
75 | clock_SOURCES = clock/clock-config.c |
---|
76 | |
---|
77 | rtc_SOURCES = ../../shared/tod.c \ |
---|
78 | rtc/rtc-config.c |
---|
79 | |
---|
80 | misc_SOURCES = misc/system-clocks.c |
---|
81 | |
---|
82 | noinst_LIBRARIES = libbsp.a |
---|
83 | |
---|
84 | libbsp_a_SOURCES = $(clock_SOURCES) \ |
---|
85 | $(console_SOURCES) \ |
---|
86 | $(irq_SOURCES) \ |
---|
87 | $(misc_SOURCES) \ |
---|
88 | $(rtc_SOURCES) \ |
---|
89 | $(shared_SOURCES) \ |
---|
90 | $(startup_SOURCES) |
---|
91 | |
---|
92 | ############################################################################### |
---|
93 | # Special Rules # |
---|
94 | ############################################################################### |
---|
95 | |
---|
96 | start.$(OBJEXT): ../shared/start/start.S |
---|
97 | $(CPPASCOMPILE) -o $@ -c $< |
---|
98 | |
---|
99 | include $(srcdir)/preinstall.am |
---|
100 | include $(top_srcdir)/../../../../automake/local.am |
---|