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 | include_bspdir = $(includedir)/bsp |
---|
16 | |
---|
17 | libcpudir = ../../../libcpu/@RTEMS_CPU@ |
---|
18 | |
---|
19 | ############################################################################### |
---|
20 | # Header # |
---|
21 | ############################################################################### |
---|
22 | |
---|
23 | include_HEADERS = include/bsp.h |
---|
24 | |
---|
25 | nodist_include_HEADERS = include/bspopts.h |
---|
26 | |
---|
27 | include_bsp_HEADERS = ../../shared/include/irq-generic.h \ |
---|
28 | ../../shared/tod.h \ |
---|
29 | ../shared/include/linker-symbols.h \ |
---|
30 | ../shared/include/start.h \ |
---|
31 | include/irq-config.h \ |
---|
32 | include/irq.h \ |
---|
33 | include/lpc24xx.h \ |
---|
34 | include/system-clocks.h |
---|
35 | |
---|
36 | ############################################################################### |
---|
37 | # Data # |
---|
38 | ############################################################################### |
---|
39 | |
---|
40 | EXTRA_DIST = ../shared/start/start.S |
---|
41 | |
---|
42 | project_lib_DATA = start.$(OBJEXT) |
---|
43 | |
---|
44 | dist_project_lib_DATA = ../shared/startup/linkcmds.base \ |
---|
45 | startup/linkcmds \ |
---|
46 | bsp_specs |
---|
47 | |
---|
48 | ############################################################################### |
---|
49 | # LibBSP # |
---|
50 | ############################################################################### |
---|
51 | |
---|
52 | shared_SOURCES = ../../shared/bootcard.c \ |
---|
53 | ../../shared/bspclean.c \ |
---|
54 | ../../shared/bspgetworkarea.c \ |
---|
55 | ../../shared/bsplibc.c \ |
---|
56 | ../../shared/bsppost.c \ |
---|
57 | ../../shared/bsppredriverhook.c \ |
---|
58 | ../../shared/bsppretaskinghook.c \ |
---|
59 | ../../shared/gnatinstallhandler.c \ |
---|
60 | ../../shared/sbrk.c \ |
---|
61 | ../shared/abort/simple_abort.c |
---|
62 | |
---|
63 | startup_SOURCES = startup/bspstart.c |
---|
64 | |
---|
65 | irq_SOURCES = ../../shared/src/irq-generic.c \ |
---|
66 | ../../shared/src/irq-legacy.c \ |
---|
67 | ../shared/irq/irq_asm.S \ |
---|
68 | irq/irq.c |
---|
69 | |
---|
70 | console_SOURCES = ../../shared/console.c \ |
---|
71 | console/console-config.c |
---|
72 | |
---|
73 | clock_SOURCES = clock/clock-config.c |
---|
74 | |
---|
75 | rtc_SOURCES = ../../shared/tod.c \ |
---|
76 | rtc/rtc-config.c |
---|
77 | |
---|
78 | misc_SOURCES = misc/system-clocks.c |
---|
79 | |
---|
80 | noinst_LIBRARIES = libbsp.a |
---|
81 | |
---|
82 | libbsp_a_SOURCES = $(clock_SOURCES) \ |
---|
83 | $(console_SOURCES) \ |
---|
84 | $(irq_SOURCES) \ |
---|
85 | $(misc_SOURCES) \ |
---|
86 | $(rtc_SOURCES) \ |
---|
87 | $(shared_SOURCES) \ |
---|
88 | $(startup_SOURCES) |
---|
89 | |
---|
90 | ############################################################################### |
---|
91 | # Network # |
---|
92 | ############################################################################### |
---|
93 | |
---|
94 | if HAS_NETWORKING |
---|
95 | |
---|
96 | noinst_PROGRAMS = network.rel |
---|
97 | |
---|
98 | network_rel_SOURCES = network/network.c |
---|
99 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
100 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
101 | |
---|
102 | libbsp_a_LIBADD = network.rel |
---|
103 | |
---|
104 | endif |
---|
105 | |
---|
106 | ############################################################################### |
---|
107 | # Special Rules # |
---|
108 | ############################################################################### |
---|
109 | |
---|
110 | start.$(OBJEXT): ../shared/start/start.S |
---|
111 | $(CPPASCOMPILE) -o $@ -c $< |
---|
112 | |
---|
113 | include $(srcdir)/preinstall.am |
---|
114 | include $(top_srcdir)/../../../../automake/local.am |
---|