aboutsummaryrefslogtreecommitdiff
path: root/lib/libefivar/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libefivar/Makefile')
-rw-r--r--lib/libefivar/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libefivar/Makefile b/lib/libefivar/Makefile
index 808087818eb6..d7f7898e8446 100644
--- a/lib/libefivar/Makefile
+++ b/lib/libefivar/Makefile
@@ -27,17 +27,23 @@
.include <src.opts.mk>
EFIBOOT=${SRCTOP}/sys/boot/efi
+EDK2INC=${SRCTOP}/sys/contrib/edk2/Include
.PATH: ${EFIBOOT}/libefi
PACKAGE=lib${LIB}
LIB= efivar
-SRCS= efivar.c efichar.c
-INCS= efivar.h
+SRCS= efivar.c efichar.c efivar-dp-format.c \
+ efivar-dp-parse.c \
+ uefi-guid.c uefi-dputil.c
+INCS= efivar.h efivar-dp.h
SHLIB_MAJOR= 1
MAN= efivar.3
CFLAGS+= -I${EFIBOOT}/include
+CFLAGS+= -I${.CURDIR} -I${EDK2INC}
+
+CFLAGS.efivar-dp-format.c=-Wno-unused-parameter
MLINKS+=efivar.3 efi_set_variables_supported.3 \
efivar.3 efi_del_variable.3 \
@@ -57,3 +63,5 @@ MLINKS+=efivar.3 efi_set_variables_supported.3 \
WARNS?= 9
.include <bsd.lib.mk>
+
+CFLAGS+= -Wno-cast-align -Wno-unused-parameter