1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/cddl/contrib/opensolaris/cmd/ztest 4 5PROG= ztest 6MAN= 7 8WARNS?= 0 9CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris 10CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 11CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem 12CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzfs/common 13CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common 14CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair 15CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libcmdutils 16CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/common/zfs 17CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs 18CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common 19CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head 20 21LIBADD= geom m nvpair umem zpool pthread avl zfs_core zfs uutil 22 23CSTD= c99 24 25# Since there are many asserts in this program, it makes no sense to compile 26# it without debugging. 27CFLAGS+= -g -DDEBUG=1 -Wno-format 28CFLAGS.gcc+= -fms-extensions 29 30HAS_TESTS= 31SUBDIR.${MK_TESTS}+= tests 32 33.include <bsd.prog.mk> 34