xref: /freebsd/cddl/usr.sbin/zhack/Makefile (revision e2df9bb44109577475aeb186e7186ac040f9bde1)
1716fd348SMartin Matuska.PATH: ${SRCTOP}/sys/contrib/openzfs/cmd
22d9cf57eSMartin Matuska
3a71ea7beSEmmanuel VadotPACKAGE=	zfs
42d9cf57eSMartin MatuskaPROG=	zhack
53bdf7758SWarner LoshMAN=
62d9cf57eSMartin Matuska
72d9cf57eSMartin MatuskaWARNS?=	0
82d9cf57eSMartin MatuskaCSTD=	c99
92d9cf57eSMartin Matuska
109e5787d2SMatt MacyWARNS?=	2
119e5787d2SMatt MacyCFLAGS+= -DIN_BASE
129e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
139e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/
149e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
15*e2df9bb4SMartin MatuskaCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libzpool/include
169e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys
17acc37ca1SEnji CooperCFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
189e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include
199e5787d2SMatt MacyCFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
209e5787d2SMatt MacyCFLAGS+= -DHAVE_ISSETUGID
219e5787d2SMatt MacyCFLAGS+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h
222d9cf57eSMartin Matuska
239e5787d2SMatt Macy
249e5787d2SMatt MacyLIBADD=	nvpair zfs spl zutil zpool
252d9cf57eSMartin Matuska
264c5238d5SMartin MatuskaCFLAGS+=	-DDEBUG=1
274c5238d5SMartin Matuska#DEBUG_FLAGS+=	-g
284c5238d5SMartin Matuska
292d9cf57eSMartin Matuska.include <bsd.prog.mk>
30