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