freebsd-skq/sys/boot/ficl.mk

32 lines
597 B
Makefile
Raw Normal View History

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" && ${DO32:U0} == 1
2016-10-25 19:04:42 +00:00
FICL_CPUARCH= i386
.elif ${MACHINE_ARCH:Mmips64*} != ""
2016-10-25 19:04:42 +00:00
FICL_CPUARCH= mips64
.else
FICL_CPUARCH= ${MACHINE_CPUARCH}
.endif
.PATH: ${FICLSRC} ${FICLSRC}/${FICL_CPUARCH}
2016-10-25 19:04:42 +00:00
.if ${MACHINE_CPUARCH} == "amd64"
.if ${DO32:U0} == 1
2016-10-25 19:04:42 +00:00
CFLAGS+= -m32 -I.
.else
CFLAGS+= -fPIC
.endif
.endif
.if ${MACHINE_ARCH} == "powerpc64"
CFLAGS+= -m32 -mcpu=powerpc -I.
.endif
CFLAGS+= -I${FICLSRC} -I${FICLSRC}/${FICL_CPUARCH} -I${LDRSRC}
CFLAGS+= -DBOOT_FORTH
CFLAGS+= -DBF_DICTSIZE=15000