1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../../automake/compile.am |
---|
8 | include $(top_srcdir)/../../bsp.am |
---|
9 | |
---|
10 | libcpudir = ../../../libcpu/@RTEMS_CPU@ |
---|
11 | |
---|
12 | DISTCLEANFILES = include/bspopts.h |
---|
13 | |
---|
14 | noinst_PROGRAMS = |
---|
15 | |
---|
16 | # Compiler specs |
---|
17 | dist_project_lib_DATA = bsp_specs |
---|
18 | |
---|
19 | # Object files |
---|
20 | EXTRA_DIST = startup/start.S |
---|
21 | start.$(OBJEXT): startup/start.S |
---|
22 | $(CPPASCOMPILE) -o $@ -c $< |
---|
23 | project_lib_DATA = start.$(OBJEXT) |
---|
24 | |
---|
25 | EXTRA_DIST += ../shared/start/rtems_crti.S |
---|
26 | rtems_crti.$(OBJEXT): ../shared/start/rtems_crti.S |
---|
27 | $(CPPASCOMPILE) -o $@ -c $< |
---|
28 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
29 | |
---|
30 | # Link commands |
---|
31 | dist_project_lib_DATA += startup/linkcmds startup/linkcmds.memory |
---|
32 | |
---|
33 | # Includes |
---|
34 | include_HEADERS = include/bsp.h |
---|
35 | |
---|
36 | nodist_include_HEADERS = include/bspopts.h ../../shared/tod.h |
---|
37 | include_bspdir = $(includedir)/bsp |
---|
38 | include_bsp_HEADERS = include/mpc55xxevb.h \ |
---|
39 | include/irq-config.h \ |
---|
40 | ../../shared/include/irq-generic.h \ |
---|
41 | ../shared/include/tictac.h |
---|
42 | |
---|
43 | startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \ |
---|
44 | ../../shared/bootcard.c ../shared/src/tictac.c startup/bspclean.c \ |
---|
45 | startup/bspstart.c |
---|
46 | |
---|
47 | clock_SOURCES = ../shared/clock/clock.c |
---|
48 | |
---|
49 | irq_generic_SOURCES = ../../shared/src/irq-generic.c \ |
---|
50 | ../../shared/src/irq-legacy.c |
---|
51 | |
---|
52 | tests_SOURCES = tests/tests.c startup/sd-card-init.c |
---|
53 | |
---|
54 | # Network |
---|
55 | if HAS_NETWORKING |
---|
56 | noinst_PROGRAMS += network.rel |
---|
57 | network_rel_SOURCES = network/network.c |
---|
58 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE |
---|
59 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
60 | endif |
---|
61 | |
---|
62 | # BSP library |
---|
63 | noinst_LIBRARIES = libbsp.a |
---|
64 | libbsp_a_SOURCES = $(startup_SOURCES) $(clock_SOURCES) $(irq_generic_SOURCES) \ |
---|
65 | $(tests_SOURCES) |
---|
66 | |
---|
67 | libbsp_a_LIBADD = $(libcpudir)/shared/cpuIdent.rel \ |
---|
68 | $(libcpudir)/shared/cache.rel \ |
---|
69 | $(libcpudir)/shared/stack.rel \ |
---|
70 | $(libcpudir)/@RTEMS_CPU_MODEL@/misc.rel \ |
---|
71 | $(libcpudir)/@RTEMS_CPU_MODEL@/irq.rel \ |
---|
72 | $(libcpudir)/@RTEMS_CPU_MODEL@/edma.rel \ |
---|
73 | $(libcpudir)/@RTEMS_CPU_MODEL@/dspi.rel \ |
---|
74 | $(libcpudir)/@RTEMS_CPU_MODEL@/esci.rel \ |
---|
75 | $(libcpudir)/@exceptions@/rtems-cpu.rel \ |
---|
76 | $(libcpudir)/@exceptions@/raw_exception.rel \ |
---|
77 | $(libcpudir)/@exceptions@/exc_bspsupport.rel |
---|
78 | |
---|
79 | if HAS_NETWORKING |
---|
80 | libbsp_a_LIBADD += network.rel |
---|
81 | endif |
---|
82 | |
---|
83 | include $(srcdir)/preinstall.am |
---|
84 | include $(top_srcdir)/../../../../automake/local.am |
---|