xref: /freebsd/cddl/usr.bin/ztest/Makefile (revision 93d301d95ab230ea159b21b5412aac2ce5362ac5)
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/sys/simd_config.h \
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 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
31
32HAS_TESTS=
33SUBDIR.${MK_TESTS}+= tests
34
35.include <bsd.prog.mk>
36