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