xref: /freebsd/stand/ficl.mk (revision 47dd1d1b619cc035b82b49a91a25544309ff95ae)
1# $FreeBSD$
2
3# Common flags to build FICL related files
4
5.include "defs.mk"
6
7.if ${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 1
8FICL_CPUARCH=	i386
9.elif ${MACHINE_ARCH:Mmips64*} != ""
10FICL_CPUARCH=	mips64
11.else
12FICL_CPUARCH=	${MACHINE_CPUARCH}
13.endif
14
15.if ${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 0
16CFLAGS+=	-fPIC
17.endif
18
19CFLAGS+=	-I${FICLSRC} -I${FICLSRC}/${FICL_CPUARCH} -I${LDRSRC}
20CFLAGS+=	-DBF_DICTSIZE=15000
21