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