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/libzpool/common 13CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair 14CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libcmdutils 15CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/common/zfs 16CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs 17CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common 18CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head 19 20LIBADD= geom m nvpair umem zpool pthread avl zfs_core zfs uutil 21 22CSTD= c99 23 24# Since there are many asserts in this program, it makes no sense to compile 25# it without debugging. 26CFLAGS+= -g -DDEBUG=1 -Wno-format 27CFLAGS.gcc+= -fms-extensions 28 29HAS_TESTS= 30SUBDIR.${MK_TESTS}+= tests 31 32.include <bsd.prog.mk> 33