aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/ficl/Makefile
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2016-10-25 17:31:57 +0000
committerWarner Losh <imp@FreeBSD.org>2016-10-25 17:31:57 +0000
commit75a63b2de3424ec1afd155163e504e3ade717ff1 (patch)
treead3592ce8f50217faffda177e5861687f7053c4d /sys/boot/ficl/Makefile
parent42854d99e8da99ad11ede13c598887673d8c3338 (diff)
downloadsrc-75a63b2de3424ec1afd155163e504e3ade717ff1.tar.gz
src-75a63b2de3424ec1afd155163e504e3ade717ff1.zip
Really make WITHOUT_FORTH (MK_FORTH==no) work. The recent inclusion of
FICL definitions not in ficl/ficl32 files broke this generally. This makes that stuff conditional on BOOT_FORTH. Also, move definitions related to the architecture (FICL_CPUARCH and friends) into Makefile.ficl that all parts of the tree that include files with ficl need to include (but only if MK_FORTH == yes). In addition, had to fix library ordering issue with LIBSTAND to keep it last. Without boot forth, there's no references to memset to bring in memset.o from libstand.a to satisfy libgeliboot.a's use of it. Listing libstand last solves this issue (and it's the proper place for libstand to boot).
Notes
Notes: svn path=/head/; revision=307942
Diffstat (limited to 'sys/boot/ficl/Makefile')
-rw-r--r--sys/boot/ficl/Makefile45
1 files changed, 1 insertions, 44 deletions
diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile
index bce9ffa78870..c16b25d8fc90 100644
--- a/sys/boot/ficl/Makefile
+++ b/sys/boot/ficl/Makefile
@@ -1,15 +1,8 @@
# $FreeBSD$
#
-FICLDIR?= ${.CURDIR}
+.include "${.CURDIR}/../Makefile.ficl"
-.if defined(FICL32)
-.PATH: ${FICLDIR}/${MACHINE_CPUARCH:S/amd64/i386/}
-.elif ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el"
-.PATH: ${FICLDIR}/mips64
-.else
-.PATH: ${FICLDIR}/${MACHINE_CPUARCH}
-.endif
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
@@ -41,42 +34,6 @@ SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
# Optional OO extension softwords
#SOFTWORDS+= oo.fr classes.fr
-.if ${MACHINE_CPUARCH} == "amd64"
-.if defined(FICL32)
-CFLAGS+= -m32 -I.
-.else
-CFLAGS+= -fPIC
-.endif
-.endif
-
-.if ${MACHINE_ARCH} == "powerpc64"
-CFLAGS+= -m32 -mcpu=powerpc -I.
-.endif
-
-.if ${MACHINE_CPUARCH} == "amd64" && defined(FICL32)
-FICL_CPUARCH= i386
-.elif ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el"
-FICL_CPUARCH= mips64
-.else
-FICL_CPUARCH= ${MACHINE_CPUARCH}
-.endif
-
-CFLAGS+= -I${FICLDIR} -I${FICLDIR}/${FICL_CPUARCH} \
- -I${FICLDIR}/../common
-
softcore.c: ${SOFTWORDS} softcore.awk
(cd ${FICLDIR}/softwords; cat ${SOFTWORDS} \
| awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}
-
-.if ${MACHINE_CPUARCH} == "amd64" && defined(FICL32)
-.if !exists(machine)
-${SRCS:M*.c:R:S/$/.o/g}: machine
-
-beforedepend ${OBJS}: machine
-.endif
-
-machine: .NOMETA
- ln -sf ${.CURDIR}/../../i386/include machine
-
-CLEANFILES+= machine
-.endif