xref: /freebsd/cddl/usr.sbin/zdb/Makefile (revision e2df9bb44109577475aeb186e7186ac040f9bde1)
1ZFSTOP=	${SRCTOP}/sys/contrib/openzfs
2
3.PATH: ${ZFSTOP}/cmd/zdb
4.PATH: ${ZFSTOP}/man/man8
5
6PACKAGE=	zfs
7PROG=	zdb
8MAN=	zdb.8
9INCS=	zdb.h
10SRCS=	zdb.c zdb_il.c
11
12WARNS?=	2
13CSTD=	c99
14
15CFLAGS+= \
16	-DIN_BASE \
17	-I${ZFSTOP}/include \
18	-I${ZFSTOP}/lib/libspl/include \
19	-I${ZFSTOP}/lib/libspl/include/os/freebsd \
20	-I${ZFSTOP}/lib/libspl/include/os/freebsd/spl \
21	-I${SRCTOP}/sys/contrib/openzfs/lib/libzpool/include \
22	-I${SRCTOP}/sys \
23	-include ${ZFSTOP}/include/os/freebsd/spl/sys/ccompile.h \
24	-DHAVE_ISSETUGID
25
26LIBADD=	nvpair umem uutil zdb zfs_core zfs spl avl zutil zpool crypto
27
28CFLAGS.gcc+= -fms-extensions
29# Since there are many asserts in this program, it makes no sense to compile
30# it without debugging.
31CFLAGS+=	-g -DDEBUG=1 -DZFS_DEBUG=1
32
33.include <bsd.prog.mk>
34