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