1# $FreeBSD: head/sys/boot/efi/libefi/Makefile 294028 2016-01-14 18:46:57Z smh $ 2 3LIB= efi 4INTERNALLIB= 5WARNS?= 2 6 7SRCS= delay.c efi_console.c efinet.c efipart.c errno.c handles.c \ 8 libefi.c time.c 9 10.if ${MACHINE_ARCH} == "x86_64" 11CFLAGS+= -fPIC -mno-red-zone 12CFLAGS+= -I${.CURDIR}/../../../contrib/edk2/MdePkg/Include/X64 13.endif 14CFLAGS+= -I${.CURDIR}/../include 15CFLAGS+= -I${.CURDIR}/../../../contrib/edk2/MdePkg/Include 16CFLAGS+= -I${.CURDIR}/../../../contrib/edk2/MdeModulePkg/Include 17CFLAGS+= -I${.CURDIR}/../../../lib 18 19# Pick up the bootstrap header for some interface items 20CFLAGS+= -I${.CURDIR}/../../common 21 22# Disable stack protector 23CFLAGS+= -fno-stack-protector 24 25CFLAGS+= -DTERM_EMU 26 27.include <bsd.lib.mk> 28