1 <build condition="X86">
3 <dictionary name="openbios-x86" init="openbios">
4 <object source="init.fs" target="forth"/>
5 <object source="QEMU,VGA.bin" target="fcode" condition="DRIVER_VGA"/>
8 <library name="x86" type="static" target="target">
9 <object source="openbios.c"/>
10 <object source="exception.c"/>
11 <object source="console.c"/>
12 <object source="lib.c"/>
13 <object source="boot.c"/>
14 <object source="context.c"/>
15 <object source="linux_load.c"/>
16 <object source="segment.c"/>
17 <object source="sys_info.c"/>
18 <object source="entry.S"/>
19 <object source="xbox/console.c" condition="XBOX"/>
20 <object source="xbox/methods.c" condition="XBOX"/>
23 <executable name="openbios.multiboot" target="target" condition="IMAGE_ELF_MULTIBOOT">
25 $(call quiet-command,$(LD) --warn-common -N -T $(SRCDIR)/arch/x86/ldscript -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
26 $(call quiet-command,$(NM) $@.nostrip | sort > $(ODIR)/openbios-multiboot.syms," GEN $(TARGET_DIR)$@.syms")
27 $(call quiet-command,$(STRIP) $@.nostrip -o $@," STRIP $(TARGET_DIR)$@")</rule>
28 <object source="multiboot.c"/>
29 <external-object source="libx86.a"/>
30 <external-object source="libbootstrap.a"/>
31 <external-object source="libopenbios.a"/>
32 <external-object source="libpackages.a"/>
33 <external-object source="libdrivers.a"/>
34 <external-object source="liblibc.a"/>
35 <external-object source="libfs.a"/>
36 <external-object source="libgcc.a"/>
39 <executable name="openbios-plain.elf" target="target" condition="IMAGE_ELF">
41 $(call quiet-command,$(LD) --warn-common -N -T $(SRCDIR)/arch/x86/ldscript -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
42 $(call quiet-command,$(NM) $@.nostrip | sort > $(ODIR)/openbios-plain.syms," GEN $(TARGET_DIR)$@.syms")
43 $(call quiet-command,$(STRIP) $@.nostrip -o $@," STRIP $(TARGET_DIR)$@")</rule>
44 <object source="plainboot.c"/>
45 <external-object source="libx86.a"/>
46 <external-object source="libbootstrap.a"/>
47 <external-object source="libopenbios.a"/>
48 <external-object source="libpackages.a"/>
49 <external-object source="libdrivers.a"/>
50 <external-object source="liblibc.a"/>
51 <external-object source="libfs.a"/>
52 <external-object source="libgcc.a"/>
57 <executable name="target/include/static-dict.h" target="target" condition="IMAGE_ELF_EMBEDDED">
59 $(call quiet-command,$(ODIR)/forthstrap -x -D $@ -d $< </dev/null, " GEN $(TARGET_DIR)$@")]]></rule>
60 <external-object source="openbios-x86.dict"/>
63 <executable name="target/arch/x86/builtin.o" target="target" condition="IMAGE_ELF_EMBEDDED">
64 <rule><![CDATA[ $(SRCDIR)/arch/x86/builtin.c $(ODIR)/target/include/static-dict.h
65 $(call quiet-command,$(CC) $$EXTRACFLAGS $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/arch/x86/builtin.c, " CC $(TARGET_DIR)$@")]]></rule>
68 <!-- END OF HACK ALERT -->
70 <executable name="openbios-builtin.elf" target="target" condition="IMAGE_ELF_EMBEDDED">
72 $(call quiet-command,$(LD) --warn-common -N -T $(SRCDIR)/arch/x86/ldscript -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
73 $(call quiet-command,$(NM) $@.nostrip | sort > $(ODIR)/openbios-builtin.syms," GEN $(TARGET_DIR)$@.syms")
74 $(call quiet-command,$(STRIP) $@.nostrip -o $@," STRIP $(TARGET_DIR)$@")</rule>
75 <external-object source="target/arch/x86/builtin.o"/>
76 <external-object source="libx86.a"/>
77 <external-object source="libbootstrap.a"/>
78 <external-object source="libopenbios.a"/>
79 <external-object source="libpackages.a"/>
80 <external-object source="libdrivers.a"/>
81 <external-object source="liblibc.a"/>
82 <external-object source="libfs.a"/>
83 <external-object source="libgcc.a"/>