1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../../automake/compile.am |
---|
8 | |
---|
9 | include_bspdir = $(includedir)/bsp |
---|
10 | |
---|
11 | dist_project_lib_DATA = bsp_specs |
---|
12 | |
---|
13 | include_HEADERS = include/bsp.h |
---|
14 | include_HEADERS += ../../shared/include/tm27.h |
---|
15 | if ENABLE_LCD |
---|
16 | include_HEADERS += include/sed1356.h |
---|
17 | endif |
---|
18 | |
---|
19 | if ENABLE_UMON |
---|
20 | include_umondir = $(includedir)/umon |
---|
21 | include_umon_HEADERS = ../../shared/umon/cli.h |
---|
22 | include_umon_HEADERS += ../../shared/umon/monlib.h |
---|
23 | include_umon_HEADERS += ../../shared/umon/tfs.h |
---|
24 | |
---|
25 | include_rtemsdir = $(includedir)/rtems |
---|
26 | include_rtems_HEADERS = ../../shared/umon/umon.h |
---|
27 | endif |
---|
28 | |
---|
29 | nodist_include_HEADERS = include/bspopts.h |
---|
30 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
31 | DISTCLEANFILES = include/bspopts.h |
---|
32 | noinst_PROGRAMS = |
---|
33 | |
---|
34 | nodist_include_HEADERS += ../../shared/include/coverhd.h |
---|
35 | |
---|
36 | if ENABLE_LCD |
---|
37 | nodist_include_HEADERS += console/sed1356_16bit.h |
---|
38 | nodist_include_HEADERS += console/font8x16.h |
---|
39 | endif |
---|
40 | |
---|
41 | noinst_LIBRARIES = libbspstart.a |
---|
42 | |
---|
43 | libbspstart_a_SOURCES = start/start.S |
---|
44 | project_lib_DATA = start.$(OBJEXT) |
---|
45 | |
---|
46 | project_lib_DATA += startup/linkcmds |
---|
47 | EXTRA_DIST = startup/linkcmds.csb337 |
---|
48 | EXTRA_DIST += startup/linkcmds.csb637 |
---|
49 | EXTRA_DIST += README |
---|
50 | EXTRA_DIST += README.kit637_v6 |
---|
51 | |
---|
52 | noinst_LIBRARIES += libbsp.a |
---|
53 | |
---|
54 | # startup |
---|
55 | libbsp_a_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \ |
---|
56 | ../../shared/bsppredriverhook.c ../../shared/bspgetworkarea.c \ |
---|
57 | ../../shared/bsppretaskinghook.c startup/bspstart.c \ |
---|
58 | ../../shared/bspclean.c startup/bspreset.c \ |
---|
59 | startup/memmap.c ../../shared/bootcard.c ../../shared/sbrk.c \ |
---|
60 | ../../shared/gnatinstallhandler.c |
---|
61 | # console |
---|
62 | libbsp_a_SOURCES += ../../shared/console.c console/uarts.c |
---|
63 | if ENABLE_LCD |
---|
64 | libbsp_a_SOURCES += console/sed1356.c console/fbcons.c |
---|
65 | endif |
---|
66 | # abort |
---|
67 | libbsp_a_SOURCES += ../shared/abort/abort.c |
---|
68 | # umon |
---|
69 | if ENABLE_UMON |
---|
70 | libbsp_a_SOURCES += ../../shared/umon/umonrtemsglue.c \ |
---|
71 | ../../shared/umon/monlib.c ../../shared/umon/tfsDriver.c \ |
---|
72 | ../../shared/umon/umoncons.c startup/umonsupp.c |
---|
73 | endif |
---|
74 | if ENABLE_UMON_CONSOLE |
---|
75 | libbsp_a_SOURCES += ../../shared/umon/umoncons.c |
---|
76 | endif |
---|
77 | |
---|
78 | if HAS_NETWORKING |
---|
79 | network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
80 | noinst_PROGRAMS += network.rel |
---|
81 | network_rel_SOURCES = network/network.c |
---|
82 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS) |
---|
83 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
84 | endif |
---|
85 | |
---|
86 | libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/arm920.rel \ |
---|
87 | ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/clock.rel \ |
---|
88 | ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/dbgu.rel \ |
---|
89 | ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/usart.rel \ |
---|
90 | ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/timer.rel \ |
---|
91 | ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/pmc.rel \ |
---|
92 | ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/irq.rel |
---|
93 | if HAS_NETWORKING |
---|
94 | libbsp_a_LIBADD += network.rel |
---|
95 | endif |
---|
96 | |
---|
97 | include $(srcdir)/preinstall.am |
---|
98 | include $(top_srcdir)/../../../../automake/local.am |
---|