xref: /dragonfly/stand/boot/efi/libefi/Makefile (revision 1370a723)
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}/../../../lib
17
18# Pick up the bootstrap header for some interface items
19CFLAGS+= -I${.CURDIR}/../../common
20
21# Disable stack protector
22CFLAGS+= -fno-stack-protector
23
24CFLAGS+= -DTERM_EMU
25
26.include <bsd.lib.mk>
27