source: rtems/c/src/lib/libbsp/riscv/riscv_generic/Makefile.am @ 6897cb1

5
Last change on this file since 6897cb1 was 6897cb1, checked in by Chris Johns <chrisj@…>, on 12/28/17 at 12:21:14

bsps: Add AM_CPPFLAGS to special case CPPFLAGS

This is necessary to pick up mandatory flags provided by the build
system.

Update #3254.

  • Property mode set to 100644
File size: 3.1 KB
Line 
1##
2#
3# @brief Makefile of LibBSP for the RISCV/Spike simulator.
4#
5#
6ACLOCAL_AMFLAGS = -I ../../../../aclocal
7EXTRA_DIST =
8
9include $(top_srcdir)/../../../../automake/compile.am
10include $(top_srcdir)/../../bsp.am
11
12include_bspdir = $(includedir)/bsp
13include_libcpudir = $(includedir)/libcpu
14
15dist_project_lib_DATA = bsp_specs
16
17###############################################################################
18#                  Header                                                     #
19###############################################################################
20
21include_HEADERS = include/bsp.h
22include_HEADERS += include/tm27.h
23
24nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
25include_bsp_HEADERS = ../shared/include/linker-symbols.h
26
27include_bsp_HEADERS += ../../../libbsp/shared/include/mm.h
28include_bsp_HEADERS += ../../shared/include/utility.h
29include_bsp_HEADERS += ../../shared/include/irq-generic.h
30include_bsp_HEADERS += ../../shared/include/irq-info.h
31include_bsp_HEADERS += ../../shared/include/stackalloc.h
32include_bsp_HEADERS += ../../shared/include/console-polled.h
33include_bsp_HEADERS += include/irq.h
34
35nodist_include_HEADERS = include/bspopts.h
36
37###############################################################################
38#                  Data                                                       #
39###############################################################################
40
41EXTRA_DIST += start/start.S
42start.$(OBJEXT): start/start.S
43        $(CPPASCOMPILE) -o $@ -c $<
44project_lib_DATA = start.$(OBJEXT)
45
46project_lib_DATA += startup/linkcmds
47
48###############################################################################
49#                  LibBSP                                                     #
50###############################################################################
51
52noinst_LIBRARIES = libbsp.a
53
54# Startup
55libbsp_a_SOURCES = ../../shared/bspreset.c
56libbsp_a_SOURCES += ../../shared/bspstart.c
57libbsp_a_SOURCES += startup/bsp_fatal_halt.c
58
59# Shared
60libbsp_a_SOURCES += ../../shared/bootcard.c
61libbsp_a_SOURCES += ../../shared/bspclean.c
62libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
63libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
64libbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
65libbsp_a_SOURCES += ../../shared/sbrk.c
66libbsp_a_SOURCES += ../../shared/src/stackalloc.c
67libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
68
69# clock
70libbsp_a_SOURCES += clock/clockdrv.c ../../../shared/clockdrv_shell.h
71
72# Timer
73libbsp_a_SOURCES += timer/timer.c
74
75# console
76libbsp_a_SOURCES += ../../shared/console-polled.c
77
78# IRQ
79libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
80libbsp_a_SOURCES += ../../shared/src/irq-generic.c
81libbsp_a_SOURCES += ../../shared/src/irq-info.c
82libbsp_a_SOURCES += irq/irq.c
83
84# Cache
85libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
86libbsp_a_SOURCES += ../../shared/include/cache_.h
87libbsp_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/../../shared/include
88
89# debugio
90libbsp_a_SOURCES += console/console-io.c
91
92DISTCLEANFILES = include/bspopts.h
93
94include $(srcdir)/preinstall.am
95include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.