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 += include/tm27.h |
---|
15 | |
---|
16 | nodist_include_HEADERS = include/bspopts.h |
---|
17 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
18 | DISTCLEANFILES = include/bspopts.h |
---|
19 | |
---|
20 | noinst_PROGRAMS = |
---|
21 | |
---|
22 | SUBDIRS = . tools |
---|
23 | |
---|
24 | include_HEADERS += include/erc32.h |
---|
25 | include_HEADERS += ../../shared/include/coverhd.h |
---|
26 | |
---|
27 | noinst_LIBRARIES = libbspstart.a |
---|
28 | libbspstart_a_SOURCES = ../../sparc/shared/start.S |
---|
29 | project_lib_DATA = start.$(OBJEXT) |
---|
30 | |
---|
31 | dist_project_lib_DATA += startup/linkcmds ../shared/startup/linkcmds.base |
---|
32 | |
---|
33 | noinst_LIBRARIES += libbsp.a |
---|
34 | libbsp_a_SOURCES = |
---|
35 | |
---|
36 | # startup |
---|
37 | libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \ |
---|
38 | ../../shared/bsppredriverhook.c ../../sparc/shared/bspgetworkarea.c \ |
---|
39 | ../../sparc/shared/bsppretaskinghook.c ../../shared/bsppost.c \ |
---|
40 | ../../shared/bspstart.c ../../shared/bootcard.c ../../shared/bspinit.c \ |
---|
41 | ../../shared/sbrk.c startup/setvec.c startup/spurious.c \ |
---|
42 | startup/erc32mec.c startup/boardinit.S startup/bspidle.c \ |
---|
43 | startup/bspdelay.c |
---|
44 | # ISR Handler |
---|
45 | libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S |
---|
46 | # gnatsupp |
---|
47 | libbsp_a_SOURCES += gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c |
---|
48 | # console |
---|
49 | libbsp_a_SOURCES += console/erc32_console.c ../../shared/console.c |
---|
50 | # debugio |
---|
51 | libbsp_a_SOURCES += console/debugputs.c |
---|
52 | # clock |
---|
53 | libbsp_a_SOURCES += clock/ckinit.c ../../../shared/clockdrv_shell.h |
---|
54 | # timer |
---|
55 | libbsp_a_SOURCES += timer/timer.c |
---|
56 | |
---|
57 | if HAS_SMP |
---|
58 | libbsp_a_SOURCES += ../../shared/smp/getcpuid.c ../../shared/smp/smp_stub.c \ |
---|
59 | ../../shared/smp/bspsmp_wait_for.c |
---|
60 | endif |
---|
61 | |
---|
62 | if HAS_NETWORKING |
---|
63 | erc32sonic_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
64 | noinst_PROGRAMS += erc32sonic.rel |
---|
65 | erc32sonic_rel_SOURCES = erc32sonic/erc32sonic.c |
---|
66 | erc32sonic_rel_CPPFLAGS = $(AM_CPPFLAGS) $(erc32sonic_CPPFLAGS) |
---|
67 | erc32sonic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
68 | endif |
---|
69 | |
---|
70 | libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel \ |
---|
71 | ../../../libcpu/@RTEMS_CPU@/reg_win.rel \ |
---|
72 | ../../../libcpu/@RTEMS_CPU@/syscall.rel |
---|
73 | if HAS_NETWORKING |
---|
74 | libbsp_a_LIBADD += erc32sonic.rel |
---|
75 | endif |
---|
76 | |
---|
77 | EXTRA_DIST = times |
---|
78 | |
---|
79 | include $(srcdir)/preinstall.am |
---|
80 | include $(top_srcdir)/../../../../automake/local.am |
---|