summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/tools/zfsboottest/Makefile23
-rw-r--r--tools/tools/zfsboottest/zfsboottest.c (renamed from sys/boot/zfs/zfstest.c)0
2 files changed, 23 insertions, 0 deletions
diff --git a/tools/tools/zfsboottest/Makefile b/tools/tools/zfsboottest/Makefile
new file mode 100644
index 0000000..2a6f54d
--- /dev/null
+++ b/tools/tools/zfsboottest/Makefile
@@ -0,0 +1,23 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../sys/boot/zfs ${.CURDIR}/../../../sys/cddl/boot/zfs
+
+PROG= zfsboottest
+NO_MAN=
+
+CFLAGS= -O1 \
+ -I${.CURDIR}/../../../sys/boot/zfs \
+ -I${.CURDIR}/../../../sys/cddl/boot/zfs \
+ -I. \
+ -fdiagnostics-show-option \
+ -W -Wextra -Wno-sign-compare -Wno-unused-parameter \
+ -Werror
+
+.if ${MACHINE_CPUARCH} == "amd64"
+beforedepend zfsboottest.o: machine
+CLEANFILES+= machine
+machine:
+ ln -sf ${.CURDIR}/../../../sys/i386/include machine
+.endif
+
+.include <bsd.prog.mk>
diff --git a/sys/boot/zfs/zfstest.c b/tools/tools/zfsboottest/zfsboottest.c
index 3e32da5..3e32da5 100644
--- a/sys/boot/zfs/zfstest.c
+++ b/tools/tools/zfsboottest/zfsboottest.c
OpenPOWER on IntegriCloud