1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5ZFSTOP= ${SRCTOP}/sys/contrib/openzfs 6 7.PATH: ${ZFSTOP}/cmd/ztest 8.PATH: ${ZFSTOP}/man/man1 9 10PROG= ztest 11MAN= ztest.1 12 13WARNS?= 2 14CFLAGS+= \ 15 -DIN_BASE \ 16 -I${ZFSTOP}/include \ 17 -I${ZFSTOP}/lib/libspl/include \ 18 -I${ZFSTOP}/lib/libspl/include/os/freebsd \ 19 -I${SRCTOP}/sys \ 20 -I${SRCTOP}/cddl/compat/opensolaris/include \ 21 -I${ZFSTOP}/module/icp/include \ 22 -include ${ZFSTOP}/include/os/freebsd/spl/sys/ccompile.h \ 23 -DHAVE_ISSETUGID \ 24 -include ${SRCTOP}/sys/modules/zfs/zfs_config.h 25 26LIBADD= geom m nvpair umem zpool pthread avl zfs_core spl zutil zfs uutil icp 27 28CSTD= c99 29 30# Since there are many asserts in this program, it makes no sense to compile 31# it without debugging. 32CFLAGS+= -g -DDEBUG=1 -Wno-format -DZFS_DEBUG=1 33CFLAGS.gcc+= -fms-extensions 34 35HAS_TESTS= 36SUBDIR.${MK_TESTS}+= tests 37 38.include <bsd.prog.mk> 39