1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | # FIXME: We must not include *.cfg |
---|
8 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
9 | |
---|
10 | CLEANFILES = |
---|
11 | |
---|
12 | include $(top_srcdir)/../../../../automake/compile.am |
---|
13 | include $(top_srcdir)/../../bsp.am |
---|
14 | |
---|
15 | dist_project_lib_DATA = bsp_specs |
---|
16 | |
---|
17 | include_HEADERS = include/bsp.h |
---|
18 | include_HEADERS += include/tm27.h |
---|
19 | |
---|
20 | nodist_include_HEADERS = include/bspopts.h |
---|
21 | DISTCLEANFILES = include/bspopts.h |
---|
22 | |
---|
23 | noinst_PROGRAMS = |
---|
24 | |
---|
25 | SUBDIRS = . tools |
---|
26 | |
---|
27 | include_bspdir = $(includedir)/bsp |
---|
28 | include_bsp_HEADERS = ../../i386/shared/irq/irq.h \ |
---|
29 | ../../i386/shared/irq/irq_asm.h |
---|
30 | |
---|
31 | include_HEADERS += include/crt.h |
---|
32 | nodist_include_HEADERS += ../../shared/include/coverhd.h |
---|
33 | |
---|
34 | EXTRA_DIST = start/start.S |
---|
35 | start.$(OBJEXT): start/start.S |
---|
36 | $(CPPASCOMPILE) -o $@ -c $< |
---|
37 | |
---|
38 | project_lib_DATA = start.$(OBJEXT) |
---|
39 | |
---|
40 | EXTRA_DIST += start/start16.S |
---|
41 | start16.$(OBJEXT): start/start16.S |
---|
42 | $(CPPASCOMPILE) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ -c $< |
---|
43 | |
---|
44 | start16-elf32.$(OBJEXT): start16.$(OBJEXT) |
---|
45 | $(LD) -N -T $(top_srcdir)/startup/linkcmds -Ttext $(START16ADDR) -e start16 -nostdlib \ |
---|
46 | --oformat=elf32-i386 \ |
---|
47 | -o $@ $< |
---|
48 | |
---|
49 | start16.bin: start16-elf32.$(OBJEXT) |
---|
50 | $(OBJCOPY) -O binary $< $@ |
---|
51 | CLEANFILES += start16.bin |
---|
52 | |
---|
53 | project_lib_DATA += start16.bin |
---|
54 | |
---|
55 | dist_project_lib_DATA += startup/linkcmds |
---|
56 | |
---|
57 | clock_SOURCES = clock/ckinit.c clock/todcfg.c ../../shared/tod.c |
---|
58 | |
---|
59 | include_rtemsdir = $(includedir)/rtems |
---|
60 | include_rtems_HEADERS = console/keyboard.h console/kd.h \ |
---|
61 | console/serial_mouse.h console/ps2_drv.h console/fb_vga.h |
---|
62 | |
---|
63 | include_HEADERS += ../../i386/shared/comm/i386_io.h |
---|
64 | console_SOURCES = console/console.c console/inch.c console/outch.c \ |
---|
65 | console/defkeymap.c console/fb_vga.c console/keyboard.c \ |
---|
66 | console/mouse_parser.c console/pc_keyb.c console/ps2_mouse.c \ |
---|
67 | console/serial_mouse.c console/vgainit.c console/vt.c console/videoAsm.S \ |
---|
68 | ../../i386/shared/comm/uart.c ../../i386/shared/comm/tty_drv.c |
---|
69 | |
---|
70 | gdb_SOURCES = ../../i386/shared/comm/i386-stub.c \ |
---|
71 | ../../i386/shared/comm/i386-stub-glue.c \ |
---|
72 | ../../i386/shared/comm/gdb_glue.c |
---|
73 | |
---|
74 | gnat_SOURCES = ../../shared/gnatinstallhandler.c |
---|
75 | |
---|
76 | include_HEADERS += ../../i386/shared/pci/pcibios.h |
---|
77 | pci_SOURCES = ../../i386/shared/pci/pcibios.c \ |
---|
78 | ../../i386/shared/pci/pcibios.h |
---|
79 | |
---|
80 | include_HEADERS += ../../i386/shared/comm/uart.h |
---|
81 | startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \ |
---|
82 | ../../shared/bsppredriverhook.c \ |
---|
83 | startup/bspstart.c startup/exit.c ../../i386/shared/irq/idt.c \ |
---|
84 | ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \ |
---|
85 | ../../shared/bootcard.c ../../shared/sbrk.c \ |
---|
86 | startup/ldsegs.S ../../i386/shared/irq/irq_asm.S |
---|
87 | |
---|
88 | timer_SOURCES = timer/timer.c timer/timerisr.S |
---|
89 | |
---|
90 | ide_SOURCES = ide/idecfg.c ide/ide.c |
---|
91 | |
---|
92 | if HAS_NETWORKING |
---|
93 | ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
94 | noinst_PROGRAMS += ne2000.rel |
---|
95 | ne2000_rel_SOURCES = ne2000/ne2000.c |
---|
96 | ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS) |
---|
97 | ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
98 | endif |
---|
99 | |
---|
100 | if HAS_NETWORKING |
---|
101 | # This driver needs to be reworked for the BSD stack. |
---|
102 | # We only install wd80x3.h if HAS_NETWORKING was defined |
---|
103 | include_HEADERS += include/wd80x3.h |
---|
104 | |
---|
105 | wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
106 | noinst_PROGRAMS += wd8003.rel |
---|
107 | wd8003_rel_SOURCES = wd8003/wd8003.c include/wd80x3.h |
---|
108 | wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS) |
---|
109 | wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
110 | endif |
---|
111 | |
---|
112 | if HAS_NETWORKING |
---|
113 | 3c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
114 | noinst_PROGRAMS += 3c509.rel |
---|
115 | 3c509_rel_SOURCES = 3c509/3c509.c 3c509/3c509.h 3c509/elink.c 3c509/elink.h |
---|
116 | 3c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS) |
---|
117 | 3c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
118 | endif |
---|
119 | |
---|
120 | noinst_LIBRARIES = libbsp.a |
---|
121 | libbsp_a_SOURCES = $(clock_SOURCES) $(console_SOURCES) $(gdb_SOURCES) \ |
---|
122 | $(gnat_SOURCES) $(pci_SOURCES) $(startup_SOURCES) $(timer_SOURCES) \ |
---|
123 | $(ide_SOURCES) |
---|
124 | |
---|
125 | libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel \ |
---|
126 | ../../../libcpu/@RTEMS_CPU@/page.rel \ |
---|
127 | ../../../libcpu/@RTEMS_CPU@/score.rel |
---|
128 | # We only build the Network library if HAS_NETWORKING was defined |
---|
129 | # dec21140 is supported via libchip |
---|
130 | if HAS_NETWORKING |
---|
131 | libbsp_a_LIBADD += ne2000.rel wd8003.rel 3c509.rel |
---|
132 | endif |
---|
133 | |
---|
134 | |
---|
135 | EXTRA_DIST += HOWTO README.dec21140 STATUS times_i486dx times_p5 |
---|
136 | |
---|
137 | include $(srcdir)/preinstall.am |
---|
138 | include $(top_srcdir)/../../../../automake/local.am |
---|