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 | # wrapup is the one that actually builds and installs the library |
---|
23 | # from the individual .rel files built in other directories |
---|
24 | SUBDIRS = . tools |
---|
25 | |
---|
26 | include_HEADERS += include/coverhd.h |
---|
27 | |
---|
28 | include_bsp_HEADERS = ../../i386/shared/irq/irq.h \ |
---|
29 | ../../i386/shared/irq/irq_asm.h \ |
---|
30 | ../../shared/include/irq-generic.h \ |
---|
31 | ../../shared/include/irq-info.h |
---|
32 | |
---|
33 | noinst_LIBRARIES = libbspstart.a |
---|
34 | libbspstart_a_SOURCES = start/start.S start/80386ex.h \ |
---|
35 | start/80386ex.inc start/macros.inc start/ts_1325.inc |
---|
36 | project_lib_DATA = start.$(OBJEXT) |
---|
37 | |
---|
38 | dist_project_lib_DATA += startup/linkcmds |
---|
39 | |
---|
40 | noinst_LIBRARIES += libbsp.a |
---|
41 | libbsp_a_SOURCES = |
---|
42 | |
---|
43 | include_HEADERS += ../../i386/shared/comm/uart.h |
---|
44 | # startup |
---|
45 | libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \ |
---|
46 | ../../shared/bsppredriverhook.c ../../shared/bsppretaskinghook.c \ |
---|
47 | ../../shared/bspgetworkarea.c ../../shared/bspreset.c \ |
---|
48 | ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \ |
---|
49 | ../../shared/sbrk.c ../../i386/shared/irq/idt.c \ |
---|
50 | ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \ |
---|
51 | ../../i386/shared/comm/i386-stub.c \ |
---|
52 | ../../i386/shared/comm/i386-stub-glue.c ../../i386/shared/comm/uart.c \ |
---|
53 | ../../shared/gnatinstallhandler.c ../../i386/shared/comm/gdb_glue.c \ |
---|
54 | ../../i386/shared/comm/tty_drv.c ../../i386/shared/irq/irq_asm.S \ |
---|
55 | ../../shared/src/irq-generic.c \ |
---|
56 | ../../shared/src/irq-legacy.c \ |
---|
57 | ../../shared/src/irq-info.c \ |
---|
58 | ../../shared/src/irq-shell.c |
---|
59 | # clock |
---|
60 | libbsp_a_SOURCES += clock/ckinit.c clock/rtc.c |
---|
61 | # console |
---|
62 | libbsp_a_SOURCES += console/console.c |
---|
63 | include_HEADERS += ../../i386/shared/pci/pcibios.h |
---|
64 | # pci |
---|
65 | libbsp_a_SOURCES += ../../i386/shared/pci/pcibios.c \ |
---|
66 | ../../i386/shared/pci/pcibios.h |
---|
67 | # timer |
---|
68 | libbsp_a_SOURCES += timer/timer.c timer/timerisr.S |
---|
69 | |
---|
70 | if HAS_NETWORKING |
---|
71 | include_HEADERS += include/wd80x3.h |
---|
72 | |
---|
73 | # dec21140 is supported via libchip |
---|
74 | # FIXME: Do we really need these flags? |
---|
75 | network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
76 | noinst_PROGRAMS += network.rel |
---|
77 | network_rel_SOURCES = network/ne2000.c network/wd80x3.h |
---|
78 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS) |
---|
79 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
80 | endif |
---|
81 | |
---|
82 | libbsp_a_LIBADD = \ |
---|
83 | ../../../libcpu/@RTEMS_CPU@/cache.rel \ |
---|
84 | ../../../libcpu/@RTEMS_CPU@/score.rel |
---|
85 | if HAS_NETWORKING |
---|
86 | libbsp_a_LIBADD += network.rel |
---|
87 | endif |
---|
88 | |
---|
89 | include $(srcdir)/preinstall.am |
---|
90 | include $(top_srcdir)/../../../../automake/local.am |
---|