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_HEADERS += include/crt.h |
---|
28 | nodist_include_HEADERS += ../../shared/include/coverhd.h |
---|
29 | |
---|
30 | EXTRA_DIST = start/start.S |
---|
31 | start.$(OBJEXT): start/start.S |
---|
32 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
33 | |
---|
34 | project_lib_DATA = start.$(OBJEXT) |
---|
35 | |
---|
36 | EXTRA_DIST += start/start16.S |
---|
37 | start16.$(OBJEXT): start/start16.S |
---|
38 | $(CPPASCOMPILE) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ -c $< |
---|
39 | |
---|
40 | start16-elf32.$(OBJEXT): start16.$(OBJEXT) |
---|
41 | $(LD) -N -T $(top_srcdir)/startup/linkcmds -Ttext $(START16ADDR) -e start16 -nostdlib \ |
---|
42 | --oformat=elf32-i386 \ |
---|
43 | -o $@ $< |
---|
44 | |
---|
45 | start16.bin: start16-elf32.$(OBJEXT) |
---|
46 | $(OBJCOPY) -O binary $< $@ |
---|
47 | CLEANFILES += start16.bin |
---|
48 | |
---|
49 | project_lib_DATA += start16.bin |
---|
50 | |
---|
51 | dist_project_lib_DATA += startup/linkcmds |
---|
52 | |
---|
53 | noinst_PROGRAMS += clock.rel |
---|
54 | clock_rel_SOURCES = clock/ckinit.c clock/todcfg.c ../../shared/tod.c |
---|
55 | clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
56 | clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
57 | |
---|
58 | include_rtemsdir = $(includedir)/rtems |
---|
59 | include_rtems_HEADERS = console/keyboard.h console/kd.h \ |
---|
60 | console/serial_mouse.h console/ps2_drv.h console/fb_vga.h |
---|
61 | |
---|
62 | noinst_PROGRAMS += console.rel |
---|
63 | console_rel_SOURCES = console/console.c console/inch.c console/outch.c \ |
---|
64 | console/defkeymap.c console/fb_vga.c console/keyboard.c \ |
---|
65 | console/mouse_parser.c console/pc_keyb.c console/ps2_mouse.c \ |
---|
66 | console/serial_mouse.c console/vgainit.c console/vt.c console/videoAsm.S \ |
---|
67 | ../../i386/shared/comm/uart.c ../../i386/shared/comm/tty_drv.c |
---|
68 | console_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
69 | console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
70 | |
---|
71 | noinst_PROGRAMS += gdb.rel |
---|
72 | gdb_rel_SOURCES = ../../i386/shared/comm/i386-stub.c \ |
---|
73 | ../../i386/shared/comm/i386-stub-glue.c \ |
---|
74 | ../../i386/shared/comm/gdb_glue.c |
---|
75 | gdb_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
76 | gdb_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
77 | |
---|
78 | noinst_PROGRAMS += gnat.rel |
---|
79 | gnat_rel_SOURCES = ../../shared/gnatinstallhandler.c |
---|
80 | gnat_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
81 | gnat_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
82 | |
---|
83 | noinst_PROGRAMS += pci.rel |
---|
84 | pci_rel_SOURCES = ../../i386/shared/pci/pcibios.c |
---|
85 | pci_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
86 | pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
87 | |
---|
88 | noinst_PROGRAMS += startup.rel |
---|
89 | startup_rel_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \ |
---|
90 | startup/bspstart.c startup/exit.c ../../i386/shared/irq/idt.c \ |
---|
91 | ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \ |
---|
92 | ../../shared/bootcard.c ../../shared/main.c ../../shared/sbrk.c \ |
---|
93 | startup/ldsegs.S ../../i386/shared/irq/irq_asm.S |
---|
94 | startup_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
95 | startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
96 | |
---|
97 | noinst_PROGRAMS += timer.rel |
---|
98 | timer_rel_SOURCES = timer/timer.c timer/timerisr.S |
---|
99 | timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
100 | timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
101 | |
---|
102 | if HAS_NETWORKING |
---|
103 | ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
104 | noinst_PROGRAMS += ne2000.rel |
---|
105 | ne2000_rel_SOURCES = ne2000/ne2000.c |
---|
106 | ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) \ |
---|
107 | $(ne2000_CPPFLAGS) |
---|
108 | ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
109 | endif |
---|
110 | |
---|
111 | if HAS_NETWORKING |
---|
112 | # This driver needs to be reworked for the BSD stack. |
---|
113 | # We only install wd80x3.h if HAS_NETWORKING was defined |
---|
114 | include_HEADERS += include/wd80x3.h |
---|
115 | |
---|
116 | wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
117 | noinst_PROGRAMS += wd8003.rel |
---|
118 | wd8003_rel_SOURCES = wd8003/wd8003.c include/wd80x3.h |
---|
119 | wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) \ |
---|
120 | $(wd8003_CPPFLAGS) |
---|
121 | wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
122 | endif |
---|
123 | |
---|
124 | if HAS_NETWORKING |
---|
125 | 3c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
126 | noinst_PROGRAMS += 3c509.rel |
---|
127 | 3c509_rel_SOURCES = 3c509/3c509.c 3c509/3c509.h 3c509/elink.c 3c509/elink.h |
---|
128 | 3c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS) |
---|
129 | 3c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
130 | endif |
---|
131 | |
---|
132 | noinst_PROGRAMS += ide.rel |
---|
133 | ide_rel_SOURCES = ide/idecfg.c ide/ide.c |
---|
134 | ide_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
135 | ide_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
136 | |
---|
137 | noinst_LIBRARIES = libbsp.a |
---|
138 | libbsp_a_SOURCES = |
---|
139 | libbsp_a_LIBADD = startup.rel clock.rel console.rel timer.rel ide.rel \ |
---|
140 | gdb.rel gnat.rel pci.rel |
---|
141 | # We only build the Network library if HAS_NETWORKING was defined |
---|
142 | # dec21140 is supported via libchip |
---|
143 | if HAS_NETWORKING |
---|
144 | libbsp_a_LIBADD += ne2000.rel wd8003.rel 3c509.rel |
---|
145 | endif |
---|
146 | libbsp_a_LIBADD += ../../../libcpu/i386/cache.rel \ |
---|
147 | ../../../libcpu/i386/page.rel ../../../libcpu/i386/score.rel |
---|
148 | |
---|
149 | all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) |
---|
150 | |
---|
151 | EXTRA_DIST += HOWTO README.dec21140 STATUS times_i486dx times_p5 |
---|
152 | |
---|
153 | PREINSTALL_DIRS = |
---|
154 | PREINSTALL_FILES = |
---|
155 | TMPINSTALL_FILES = |
---|
156 | |
---|
157 | $(PROJECT_INCLUDE)/$(dirstamp): |
---|
158 | @$(mkdir_p) $(PROJECT_INCLUDE) |
---|
159 | @: > $(PROJECT_INCLUDE)/$(dirstamp) |
---|
160 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp) |
---|
161 | |
---|
162 | $(PROJECT_LIB)/$(dirstamp): |
---|
163 | @$(mkdir_p) $(PROJECT_LIB) |
---|
164 | @: > $(PROJECT_LIB)/$(dirstamp) |
---|
165 | PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp) |
---|
166 | |
---|
167 | $(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp) |
---|
168 | $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs |
---|
169 | PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs |
---|
170 | |
---|
171 | $(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
172 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h |
---|
173 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h |
---|
174 | |
---|
175 | $(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
176 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h |
---|
177 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h |
---|
178 | |
---|
179 | $(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
180 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h |
---|
181 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h |
---|
182 | |
---|
183 | $(PROJECT_INCLUDE)/crt.h: include/crt.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
184 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/crt.h |
---|
185 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/crt.h |
---|
186 | |
---|
187 | $(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
188 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h |
---|
189 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h |
---|
190 | |
---|
191 | $(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp) |
---|
192 | $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT) |
---|
193 | TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT) |
---|
194 | |
---|
195 | $(PROJECT_LIB)/start16.bin: start16.bin $(PROJECT_LIB)/$(dirstamp) |
---|
196 | $(INSTALL_DATA) $< $(PROJECT_LIB)/start16.bin |
---|
197 | TMPINSTALL_FILES += $(PROJECT_LIB)/start16.bin |
---|
198 | |
---|
199 | $(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp) |
---|
200 | $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds |
---|
201 | PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds |
---|
202 | |
---|
203 | $(PROJECT_INCLUDE)/rtems/$(dirstamp): |
---|
204 | @$(mkdir_p) $(PROJECT_INCLUDE)/rtems |
---|
205 | @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
206 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
207 | |
---|
208 | $(PROJECT_INCLUDE)/rtems/keyboard.h: console/keyboard.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
209 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/keyboard.h |
---|
210 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/keyboard.h |
---|
211 | |
---|
212 | $(PROJECT_INCLUDE)/rtems/kd.h: console/kd.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
213 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/kd.h |
---|
214 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/kd.h |
---|
215 | |
---|
216 | $(PROJECT_INCLUDE)/rtems/serial_mouse.h: console/serial_mouse.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
217 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/serial_mouse.h |
---|
218 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/serial_mouse.h |
---|
219 | |
---|
220 | $(PROJECT_INCLUDE)/rtems/ps2_drv.h: console/ps2_drv.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
221 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/ps2_drv.h |
---|
222 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ps2_drv.h |
---|
223 | |
---|
224 | $(PROJECT_INCLUDE)/rtems/fb_vga.h: console/fb_vga.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
225 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fb_vga.h |
---|
226 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fb_vga.h |
---|
227 | |
---|
228 | if HAS_NETWORKING |
---|
229 | $(PROJECT_INCLUDE)/wd80x3.h: include/wd80x3.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
230 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/wd80x3.h |
---|
231 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/wd80x3.h |
---|
232 | endif |
---|
233 | |
---|
234 | CLEANFILES += $(PREINSTALL_FILES) |
---|
235 | DISTCLEANFILES += $(PREINSTALL_DIRS) |
---|
236 | CLEANFILES += $(TMPINSTALL_FILES) |
---|
237 | |
---|
238 | include $(top_srcdir)/../../../../automake/local.am |
---|