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 | dist_project_lib_DATA = bsp_specs |
---|
11 | |
---|
12 | include_HEADERS = include/bsp.h |
---|
13 | include_HEADERS += include/tm27.h |
---|
14 | |
---|
15 | nodist_include_HEADERS = include/bspopts.h |
---|
16 | DISTCLEANFILES = include/bspopts.h |
---|
17 | |
---|
18 | noinst_PROGRAMS = |
---|
19 | |
---|
20 | # wrapup is the one that actually builds and installs the library |
---|
21 | # from the individual .rel files built in other directories |
---|
22 | SUBDIRS = . tools |
---|
23 | |
---|
24 | include_HEADERS += include/coverhd.h |
---|
25 | |
---|
26 | include_bspdir = $(includedir)/bsp |
---|
27 | include_bsp_HEADERS = ../../i386/shared/irq/irq.h \ |
---|
28 | ../../i386/shared/irq/irq_asm.h |
---|
29 | |
---|
30 | noinst_HEADERS = start/80386ex.h start/80386ex.inc start/macros.inc \ |
---|
31 | start/ts_1325.inc |
---|
32 | EXTRA_DIST = start/start.S |
---|
33 | start.$(OBJEXT): start/start.S |
---|
34 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
35 | |
---|
36 | project_lib_DATA = start.$(OBJEXT) |
---|
37 | |
---|
38 | dist_project_lib_DATA += startup/linkcmds |
---|
39 | |
---|
40 | noinst_PROGRAMS += startup.rel |
---|
41 | include_HEADERS += ../../i386/shared/comm/uart.h |
---|
42 | startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \ |
---|
43 | ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \ |
---|
44 | ../../shared/main.c ../../shared/sbrk.c ../../i386/shared/irq/idt.c \ |
---|
45 | ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \ |
---|
46 | ../../i386/shared/comm/i386-stub.c \ |
---|
47 | ../../i386/shared/comm/i386-stub-glue.c ../../i386/shared/comm/uart.c \ |
---|
48 | ../../shared/gnatinstallhandler.c ../../i386/shared/comm/gdb_glue.c \ |
---|
49 | ../../i386/shared/comm/tty_drv.c ../../i386/shared/irq/irq_asm.S |
---|
50 | startup_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
51 | startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
52 | |
---|
53 | noinst_PROGRAMS += clock.rel |
---|
54 | clock_rel_SOURCES = clock/ckinit.c clock/rtc.c |
---|
55 | clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
56 | clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
57 | |
---|
58 | noinst_PROGRAMS += console.rel |
---|
59 | console_rel_SOURCES = console/console.c |
---|
60 | console_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
61 | console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
62 | |
---|
63 | noinst_PROGRAMS += pci.rel |
---|
64 | include_HEADERS += ../../i386/shared/pci/pcibios.h |
---|
65 | pci_rel_SOURCES = ../../i386/shared/pci/pcibios.c \ |
---|
66 | ../../i386/shared/pci/pcibios.h |
---|
67 | pci_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
68 | pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
69 | |
---|
70 | noinst_PROGRAMS += timer.rel |
---|
71 | timer_rel_SOURCES = timer/timer.c timer/timerisr.S |
---|
72 | timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
73 | timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
74 | |
---|
75 | if HAS_NETWORKING |
---|
76 | include_HEADERS += include/wd80x3.h |
---|
77 | |
---|
78 | # dec21140 is supported via libchip |
---|
79 | # FIXME: Do we really need these flags? |
---|
80 | network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
81 | noinst_PROGRAMS += network.rel |
---|
82 | network_rel_SOURCES = network/ne2000.c network/wd80x3.h |
---|
83 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS) |
---|
84 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
85 | endif |
---|
86 | |
---|
87 | noinst_LIBRARIES = libbsp.a |
---|
88 | libbsp_a_SOURCES = |
---|
89 | libbsp_a_LIBADD = startup.rel clock.rel console.rel timer.rel pci.rel |
---|
90 | if HAS_NETWORKING |
---|
91 | libbsp_a_LIBADD += network.rel |
---|
92 | endif |
---|
93 | libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \ |
---|
94 | ../../../libcpu/@RTEMS_CPU@/score.rel |
---|
95 | |
---|
96 | all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) |
---|
97 | |
---|
98 | include $(srcdir)/preinstall.am |
---|
99 | include $(top_srcdir)/../../../../automake/local.am |
---|