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.include_bsp_HEADERS += |
---|
23 | |
---|
24 | nodist_include_HEADERS = include/bspopts.h |
---|
25 | |
---|
26 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
27 | nodist_include_HEADERS += ../../shared/include/coverhd.h |
---|
28 | |
---|
29 | include_bsp_HEADERS = ../../shared/include/utility.h |
---|
30 | include_bsp_HEADERS += ../../shared/include/irq-generic.h |
---|
31 | include_bsp_HEADERS += ../../shared/tod.h |
---|
32 | include_bsp_HEADERS += ../shared/include/linker-symbols.h |
---|
33 | include_bsp_HEADERS += ../shared/include/start.h |
---|
34 | include_bsp_HEADERS += include/irq-config.h |
---|
35 | include_bsp_HEADERS += include/irq.h |
---|
36 | include_bsp_HEADERS += include/lpc24xx.h |
---|
37 | include_bsp_HEADERS += include/system-clocks.h |
---|
38 | include_bsp_HEADERS += include/ssp.h |
---|
39 | include_bsp_HEADERS += include/dma.h |
---|
40 | include_HEADERS += ../../shared/include/tm27.h |
---|
41 | |
---|
42 | ############################################################################### |
---|
43 | # Data # |
---|
44 | ############################################################################### |
---|
45 | |
---|
46 | noinst_LIBRARIES = libbspstart.a |
---|
47 | |
---|
48 | libbspstart_a_SOURCES = ../shared/start/start.S |
---|
49 | |
---|
50 | project_lib_DATA = start.$(OBJEXT) |
---|
51 | |
---|
52 | dist_project_lib_DATA += ../shared/startup/linkcmds.base \ |
---|
53 | startup/linkcmds |
---|
54 | |
---|
55 | ############################################################################### |
---|
56 | # LibBSP # |
---|
57 | ############################################################################### |
---|
58 | |
---|
59 | noinst_LIBRARIES += libbsp.a |
---|
60 | |
---|
61 | libbsp_a_SOURCES = |
---|
62 | |
---|
63 | # Shared |
---|
64 | libbsp_a_SOURCES += ../../shared/bootcard.c \ |
---|
65 | ../../shared/bspclean.c \ |
---|
66 | ../../shared/bspreset.c \ |
---|
67 | ../../shared/bspgetworkarea.c \ |
---|
68 | ../../shared/bsplibc.c \ |
---|
69 | ../../shared/bsppost.c \ |
---|
70 | ../../shared/bsppredriverhook.c \ |
---|
71 | ../../shared/bsppretaskinghook.c \ |
---|
72 | ../../shared/gnatinstallhandler.c \ |
---|
73 | ../../shared/sbrk.c \ |
---|
74 | ../shared/abort/simple_abort.c |
---|
75 | |
---|
76 | # Startup |
---|
77 | libbsp_a_SOURCES += startup/bspstart.c |
---|
78 | |
---|
79 | # IRQ |
---|
80 | libbsp_a_SOURCES += ../../shared/src/irq-generic.c \ |
---|
81 | ../../shared/src/irq-legacy.c \ |
---|
82 | ../shared/irq/irq_asm.S \ |
---|
83 | irq/irq.c |
---|
84 | |
---|
85 | # Console |
---|
86 | libbsp_a_SOURCES += ../../shared/console.c \ |
---|
87 | console/console-config.c |
---|
88 | |
---|
89 | # Clock |
---|
90 | libbsp_a_SOURCES += clock/clock-config.c \ |
---|
91 | ../../../shared/clockdrv_shell.h |
---|
92 | |
---|
93 | # RTC |
---|
94 | libbsp_a_SOURCES += ../../shared/tod.c \ |
---|
95 | rtc/rtc-config.c |
---|
96 | # Timer |
---|
97 | libbsp_a_SOURCES += ../../shared/timerstub.c |
---|
98 | |
---|
99 | # Misc |
---|
100 | libbsp_a_SOURCES += misc/system-clocks.c \ |
---|
101 | misc/dma.c |
---|
102 | |
---|
103 | # SSP |
---|
104 | libbsp_a_SOURCES += ssp/ssp.c |
---|
105 | |
---|
106 | ############################################################################### |
---|
107 | # Special Rules # |
---|
108 | ############################################################################### |
---|
109 | |
---|
110 | DISTCLEANFILES = include/bspopts.h |
---|
111 | |
---|
112 | include $(srcdir)/preinstall.am |
---|
113 | include $(top_srcdir)/../../../../automake/local.am |
---|