2001-06-09 16:49:51 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2004-11-28 00:30:22 +00:00
|
|
|
LIB= efi
|
2004-10-24 15:33:08 +00:00
|
|
|
INTERNALLIB=
|
2016-01-12 02:17:39 +00:00
|
|
|
WARNS?= 2
|
2001-06-09 16:49:51 +00:00
|
|
|
|
2016-05-26 21:43:22 +00:00
|
|
|
SRCS= delay.c devpath.c efi_console.c efinet.c efipart.c env.c errno.c \
|
|
|
|
handles.c libefi.c time.c
|
2001-11-19 07:09:47 +00:00
|
|
|
|
2015-05-05 11:00:50 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "aarch64"
|
|
|
|
CFLAGS+= -msoft-float -mgeneral-regs-only
|
|
|
|
.endif
|
2014-04-03 23:10:23 +00:00
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
2015-03-13 09:38:16 +00:00
|
|
|
CFLAGS+= -fPIC -mno-red-zone
|
2014-04-03 23:10:23 +00:00
|
|
|
.endif
|
2004-11-28 00:30:22 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../include
|
2015-04-14 10:40:37 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../include/${MACHINE}
|
2004-11-28 00:30:22 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand
|
2001-06-09 16:49:51 +00:00
|
|
|
|
|
|
|
# Pick up the bootstrap header for some interface items
|
2004-11-28 00:30:22 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../common
|
2001-06-09 16:49:51 +00:00
|
|
|
|
2015-01-28 18:36:33 +00:00
|
|
|
# Handle FreeBSD specific %b and %D printf format specifiers
|
|
|
|
CFLAGS+= ${FORMAT_EXTENSIONS}
|
2016-01-06 15:38:39 +00:00
|
|
|
CFLAGS+= -DTERM_EMU
|
2014-07-22 04:37:47 +00:00
|
|
|
|
2001-06-09 16:49:51 +00:00
|
|
|
.include <bsd.lib.mk>
|