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