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