1 <build condition="SPARC64">
3 <dictionary name="openbios-sparc64" init="openbios">
4 <object source="tree.fs" target="forth"/>
5 <object source="init.fs" target="forth"/>
8 <library name="sparc64" type="static" target="target">
9 <object source="openbios.c"/>
10 <object source="console.c"/>
11 <object source="lib.c"/>
12 <object source="boot.c"/>
13 <object source="context.c"/>
14 <object source="switch.S"/>
15 <object source="linux_load.c"/>
16 <object source="sys_info.c"/>
17 <object source="ofmem_sparc64.c"/>
18 <object source="entry.S"/>
19 <object source="vectors.S"/>
20 <object source="call-client.S"/>
23 <executable name="openbios-plain.elf" target="target" condition="IMAGE_ELF">
25 $(call quiet-command,$(LD) --warn-common -T $(SRCDIR)/arch/sparc64/ldscript -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
26 $(call quiet-command,$(NM) $@.nostrip | sort > $(ODIR)/openbios-plain.syms," GEN $(TARGET_DIR)$@.syms")
27 $(call quiet-command,$(STRIP) $@.nostrip -o $@," STRIP $(TARGET_DIR)$@")</rule>
28 <object source="plainboot.c"/>
29 <external-object source="libsparc64.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="libfs.a"/>
35 <external-object source="liblibc.a"/>
36 <external-object source="libgcc.a"/>
41 <executable name="target/include/static-dict.h" target="target" condition="IMAGE_ELF_EMBEDDED">
43 $(call quiet-command,$(ODIR)/forthstrap -x -D $@ -d $< </dev/null, " GEN $(TARGET_DIR)$@")]]></rule>
44 <external-object source="openbios-sparc64.dict"/>
47 <executable name="target/arch/sparc64/builtin.o" target="target" condition="IMAGE_ELF_EMBEDDED">
48 <rule><![CDATA[ $(SRCDIR)/arch/sparc64/builtin.c $(ODIR)/target/include/static-dict.h
49 $(call quiet-command,$(CC) $$EXTRACFLAGS $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/arch/sparc64/builtin.c, " CC $(TARGET_DIR)$@")]]></rule>
52 <!-- END OF HACK ALERT -->
54 <executable name="openbios-builtin.elf" target="target" condition="IMAGE_ELF_EMBEDDED">
55 <!-- We use -N to reduce the file size by 1M -->
57 $(call quiet-command,$(LD) --warn-common -N -T $(SRCDIR)/arch/sparc64/ldscript -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
58 $(call quiet-command,$(NM) $@.nostrip | sort > $(ODIR)/openbios-builtin.syms," GEN $(TARGET_DIR)$@.syms")
59 $(call quiet-command,$(STRIP) $@.nostrip -o $@," STRIP $(TARGET_DIR)$@")</rule>
60 <external-object source="target/arch/sparc64/builtin.o"/>
61 <external-object source="libsparc64.a"/>
62 <external-object source="libbootstrap.a"/>
63 <external-object source="libopenbios.a"/>
64 <external-object source="libpackages.a"/>
65 <external-object source="libdrivers.a"/>
66 <external-object source="libfs.a"/>
67 <external-object source="liblibc.a"/>
68 <external-object source="libgcc.a"/>