xref: /freebsd/cddl/usr.bin/zinject/Makefile (revision e2df9bb44109577475aeb186e7186ac040f9bde1)
1ZFSTOP=	${SRCTOP}/sys/contrib/openzfs
2
3.PATH: ${ZFSTOP}/cmd/zinject
4.PATH: ${ZFSTOP}/man/man8
5
6PACKAGE=	zfs
7PROG=	zinject
8INCS=	zinject.h
9SRCS=	zinject.c translate.c
10MAN=	zinject.8
11
12WARNS?=	2
13CFLAGS+= \
14	-DIN_BASE \
15	-I${ZFSTOP}/include \
16	-I${ZFSTOP}/lib/libspl/include \
17	-I${ZFSTOP}/lib/libspl/include/os/freebsd \
18	-I${SRCTOP}/sys/contrib/openzfs/lib/libzpool/include \
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
26LIBADD=	geom m nvpair umem uutil avl spl zfs_core zfs zutil zpool
27
28.include <bsd.prog.mk>
29