mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
initial import of openbios--main--1.0--patch-26
git-svn-id: svn://coreboot.org/openbios/openbios-devel@1 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
73
config/examples/amd64_rules.xml
Normal file
73
config/examples/amd64_rules.xml
Normal file
@@ -0,0 +1,73 @@
|
||||
<rules>
|
||||
|
||||
<pre><![CDATA[
|
||||
#
|
||||
# Autogenerated OpenBIOS Makefile
|
||||
# (C) 2004-2005 by the OpenBIOS team
|
||||
#
|
||||
|
||||
ARCH := amd64
|
||||
ODIR := obj-$(ARCH)
|
||||
HOSTCC := gcc
|
||||
CROSSCFLAGS := -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH -USWAP_ENDIANNESS
|
||||
HOSTCFLAGS := -O -g -fprofile-arcs -ftest-coverage -Wall -W -DFCOMPILER -DBOOTSTRAP $(CROSSCFLAGS)
|
||||
HOSTINCLUDES := -Iinclude -Ikernel/include -I$(ODIR)/target/include
|
||||
|
||||
CC := gcc
|
||||
AR := ar
|
||||
NM := nm
|
||||
STRIP := strip
|
||||
RANLIB := ranlib
|
||||
INSTALL := install
|
||||
|
||||
CFLAGS := -Os -Wall -W -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH -USWAP_ENDIANNESS -fno-builtin-bcopy -fno-builtin-log2
|
||||
INCLUDES := -Iinclude -Ikernel/include -I$(ODIR)/target/include
|
||||
|
||||
#
|
||||
# pre rules
|
||||
#
|
||||
|
||||
all: versions dictionaries host-libraries target-libraries host-executables target-executables
|
||||
|
||||
VERSION := "1.0RC1"
|
||||
|
||||
versions: $(ODIR)/forth/version.fs
|
||||
|
||||
$(ODIR)/forth/version.fs:
|
||||
@test -d $(dir $@) || $(INSTALL) -d $(dir $@)
|
||||
@DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \
|
||||
( echo ": builddate \" $$DATE\" ; " ; \
|
||||
echo ": version \" $(VERSION)\" ; " ; ) \
|
||||
> $(dir $@)/version.fs
|
||||
|
||||
]]></pre>
|
||||
|
||||
<!-- host compiler build rules -->
|
||||
|
||||
<rule target="host" entity="executable">
|
||||
$(HOSTCC) $(HOSTCFLAGS) -o $@ $^
|
||||
</rule>
|
||||
|
||||
<rule target="host" entity="object">
|
||||
$(HOSTCC) $(HOSTCFLAGS) $(HOSTINCLUDES) -c -o $@ $^
|
||||
</rule>
|
||||
|
||||
<rule target="host" entity="library">
|
||||
$(AR) cru $@ $^; $(RANLIB) $@
|
||||
</rule>
|
||||
|
||||
<!-- target/cross compiler build rules -->
|
||||
|
||||
<rule target="target" entity="executable">
|
||||
$(CC) $(CFLAGS) -o $@ $^
|
||||
</rule>
|
||||
|
||||
<rule target="target" entity="object">
|
||||
$(CC) $$EXTRACFLAGS $(CFLAGS) $(INCLUDES) -c -o $@ $^
|
||||
</rule>
|
||||
|
||||
<rule target="target" entity="library">
|
||||
$(AR) cru $@ $^; $(RANLIB) $@
|
||||
</rule>
|
||||
|
||||
</rules>
|
||||
Reference in New Issue
Block a user