2016-10-25 19:04:42 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
# Common flags to build FICL related files
|
|
|
|
|
2017-10-16 03:59:38 +00:00
|
|
|
.include "defs.mk"
|
2016-10-25 19:04:42 +00:00
|
|
|
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64" && defined(FICL32)
|
|
|
|
FICL_CPUARCH= i386
|
2016-10-31 15:33:58 +00:00
|
|
|
.elif ${MACHINE_ARCH:Mmips64*} != ""
|
2016-10-25 19:04:42 +00:00
|
|
|
FICL_CPUARCH= mips64
|
|
|
|
.else
|
|
|
|
FICL_CPUARCH= ${MACHINE_CPUARCH}
|
|
|
|
.endif
|
|
|
|
|
2017-10-22 22:50:08 +00:00
|
|
|
.PATH: ${FICLSRC} ${FICLSRC}/${FICL_CPUARCH}
|
2016-10-25 19:04:42 +00:00
|
|
|
|
|
|
|
.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
|
|
|
|
|
2017-10-22 22:50:08 +00:00
|
|
|
CFLAGS+= -I${FICLSRC} -I${FICLSRC}/${FICL_CPUARCH} -I${LDRSRC}
|
2017-10-16 03:59:44 +00:00
|
|
|
CFLAGS+= -DBOOT_FORTH
|
|
|
|
CFLAGS+= -DBF_DICTSIZE=15000
|
2016-10-25 19:04:42 +00:00
|
|
|
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64" && defined(FICL32)
|
|
|
|
.if !exists(machine)
|
|
|
|
${SRCS:M*.c:R:S/$/.o/g}: machine
|
|
|
|
|
|
|
|
beforedepend ${OBJS}: machine
|
|
|
|
.endif
|
|
|
|
|
|
|
|
machine: .NOMETA
|
2017-10-29 05:27:22 +00:00
|
|
|
ln -sf ${SYSDIR}/i386/include machine
|
2016-10-25 19:04:42 +00:00
|
|
|
|
|
|
|
CLEANFILES+= machine
|
|
|
|
.endif
|