aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/makefs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/makefs/Makefile')
-rw-r--r--usr.sbin/makefs/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/usr.sbin/makefs/Makefile b/usr.sbin/makefs/Makefile
index 3fea648f9383..47a41cfac813 100644
--- a/usr.sbin/makefs/Makefile
+++ b/usr.sbin/makefs/Makefile
@@ -1,5 +1,3 @@
-# $FreeBSD$
-
SRCDIR:=${.PARSEDIR:tA}
.include <src.opts.mk>
@@ -17,7 +15,17 @@ SRCS= cd9660.c \
MAN= makefs.8
NO_WCAST_ALIGN=
-CSTD= c11
+
+.if ${MK_ZFS} != "no"
+SRCS+= zfs.c
+CFLAGS+=-I${SRCDIR}/zfs \
+ -I${SRCTOP}/stand/libsa \
+ -I${SRCTOP}/sys/cddl/boot
+
+CFLAGS+= -DHAVE_ZFS
+
+.include "${SRCDIR}/zfs/Makefile.inc"
+.endif
.include "${SRCDIR}/cd9660/Makefile.inc"
.include "${SRCDIR}/ffs/Makefile.inc"
@@ -39,4 +47,9 @@ LIBADD= netbsd util sbuf
HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
+# cd9660_generate_path_table adds a global variable to an on-stack
+# TAILQ which temporarily stores a pointer to the on-stack TAILQ head
+# in the global
+CWARNFLAGS.cd9660.c+= ${NO_WDANGLING_POINTER}
+
.include <bsd.prog.mk>