boot/efi: Port most of our efi boot code to the EDK II headers.
[dragonfly.git] / sys / boot / efi / libefi / Makefile
1 # $FreeBSD: head/sys/boot/efi/libefi/Makefile 294028 2016-01-14 18:46:57Z smh $
2
3 LIB=    efi
4 INTERNALLIB=
5 WARNS?= 2
6
7 SRCS=   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"
11 CFLAGS+= -fPIC -mno-red-zone
12 CFLAGS+= -I${.CURDIR}/../../../contrib/edk2/Include/X64
13 .endif
14 CFLAGS+= -I${.CURDIR}/../include
15 CFLAGS+= -I${.CURDIR}/../../../contrib/edk2/Include
16 CFLAGS+= -I${.CURDIR}/../../../../lib/libstand
17
18 # Pick up the bootstrap header for some interface items
19 CFLAGS+= -I${.CURDIR}/../../common
20
21 # Disable stack protector
22 CFLAGS+= -fno-stack-protector
23
24 # Handle FreeBSD specific %b and %D printf format specifiers
25 CFLAGS+= ${FORMAT_EXTENSIONS}
26 CFLAGS+= -DTERM_EMU
27
28 .include <bsd.lib.mk>