1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5ZFSTOP= ${SRCTOP}/sys/contrib/openzfs 6 7.PATH: ${ZFSTOP}/cmd 8.PATH: ${ZFSTOP}/man/man1 9 10PACKAGE= zfs 11PROG= ztest 12MAN= ztest.1 13 14WARNS?= 2 15CFLAGS+= \ 16 -DIN_BASE \ 17 -I${ZFSTOP}/include \ 18 -I${ZFSTOP}/lib/libspl/include \ 19 -I${ZFSTOP}/lib/libspl/include/os/freebsd \ 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