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