xref: /freebsd/cddl/usr.bin/zinject/Makefile (revision e2df9bb44109577475aeb186e7186ac040f9bde1)
19e5787d2SMatt MacyZFSTOP=	${SRCTOP}/sys/contrib/openzfs
29e5787d2SMatt Macy
39e5787d2SMatt Macy.PATH: ${ZFSTOP}/cmd/zinject
49e5787d2SMatt Macy.PATH: ${ZFSTOP}/man/man8
51ba4a712SPawel Jakub Dawidek
6a71ea7beSEmmanuel VadotPACKAGE=	zfs
71ba4a712SPawel Jakub DawidekPROG=	zinject
89e5787d2SMatt MacyINCS=	zinject.h
91ba4a712SPawel Jakub DawidekSRCS=	zinject.c translate.c
109e5787d2SMatt MacyMAN=	zinject.8
111ba4a712SPawel Jakub Dawidek
129e5787d2SMatt MacyWARNS?=	2
139e5787d2SMatt MacyCFLAGS+= \
149e5787d2SMatt Macy	-DIN_BASE \
159e5787d2SMatt Macy	-I${ZFSTOP}/include \
169e5787d2SMatt Macy	-I${ZFSTOP}/lib/libspl/include \
179e5787d2SMatt Macy	-I${ZFSTOP}/lib/libspl/include/os/freebsd \
18*e2df9bb4SMartin Matuska	-I${SRCTOP}/sys/contrib/openzfs/lib/libzpool/include \
199e5787d2SMatt Macy	-I${SRCTOP}/sys \
209e5787d2SMatt Macy	-I${SRCTOP}/cddl/compat/opensolaris/include \
219e5787d2SMatt Macy	-I${ZFSTOP}/module/icp/include \
229e5787d2SMatt Macy	-include ${ZFSTOP}/include/os/freebsd/spl/sys/ccompile.h \
239e5787d2SMatt Macy	-DHAVE_ISSETUGID \
249e5787d2SMatt Macy	-include ${SRCTOP}/sys/modules/zfs/zfs_config.h
251ba4a712SPawel Jakub Dawidek
269e5787d2SMatt MacyLIBADD=	geom m nvpair umem uutil avl spl zfs_core zfs zutil zpool
271ba4a712SPawel Jakub Dawidek
281ba4a712SPawel Jakub Dawidek.include <bsd.prog.mk>
29