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