diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2004-02-07 08:10:07 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2004-02-07 08:10:07 +0000 |
commit | 7e39a38ec9884020aee8e6166894d52d5e9f9407 (patch) | |
tree | f23c29971d126d8aa345d6b13ad6e793732cfe47 /sys/boot/ficl/Makefile | |
parent | a54c3906adbb0fac6fedbb83ee1d41ec40dd427c (diff) |
Notes
Diffstat (limited to 'sys/boot/ficl/Makefile')
-rw-r--r-- | sys/boot/ficl/Makefile | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile index 69d6ca7ddcbb..6f913b9a5318 100644 --- a/sys/boot/ficl/Makefile +++ b/sys/boot/ficl/Makefile @@ -1,10 +1,6 @@ # $FreeBSD$ # -.if ${MACHINE_ARCH} == "amd64" -.MAKEFLAGS: MACHINE_ARCH=i386 MACHINE=i386 REALLY_AMD64=true -.endif - -.PATH: ${.CURDIR}/${MACHINE_ARCH} +.PATH: ${.CURDIR}/${MACHINE_ARCH:S/amd64/i386/} BASE_SRCS= dict.c ficl.c fileaccess.c float.c loader.c math64.c \ prefix.c search.c stack.c tools.c vm.c words.c @@ -14,7 +10,7 @@ CFLAGS+= -ffreestanding .if ${MACHINE_ARCH} == "alpha" CFLAGS+= -mno-fp-regs .endif -.if ${MACHINE_ARCH} == "i386" +.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" CFLAGS+= -mpreferred-stack-boundary=2 .endif .if ${MACHINE_ARCH} == "powerpc" @@ -44,17 +40,18 @@ SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \ # Optional OO extension softwords #SOFTWORDS+= oo.fr classes.fr -.if defined(REALLY_AMD64) +.if ${MACHINE_ARCH} == "amd64" CFLAGS+= -m32 -I. .endif -CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}/../common +CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH:S/amd64/i386/} \ + -I${.CURDIR}/../common softcore.c: ${SOFTWORDS} softcore.awk (cd ${.CURDIR}/softwords; cat ${SOFTWORDS} \ | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET} -.if defined(REALLY_AMD64) +.if ${MACHINE_ARCH} == "amd64" ${SRCS:M*.c:R:S/$/.o/g}: machine beforedepend ${OBJS}: machine |