aboutsummaryrefslogtreecommitdiff
path: root/cddl/usr.sbin/zdb/Makefile
blob: efd8c746128fef615b58f8dac1e5a311b556b3b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $FreeBSD$

ZFSTOP=	${SRCTOP}/sys/contrib/openzfs

.PATH: ${ZFSTOP}/cmd/zdb
.PATH: ${ZFSTOP}/man/man8

PROG=	zdb
MAN=	zdb.8
INCS=	zdb.h
SRCS=	zdb.c zdb_il.c

WARNS?=	2
CSTD=	c99

CFLAGS+= \
	-DIN_BASE \
	-I${ZFSTOP}/include \
	-I${ZFSTOP}/lib/libspl/include \
	-I${ZFSTOP}/lib/libspl/include/os/freebsd \
	-I${ZFSTOP}/lib/libspl/include/os/freebsd/spl \
	-I${SRCTOP}/sys \
	-include ${ZFSTOP}/include/os/freebsd/spl/sys/ccompile.h \
	-DHAVE_ISSETUGID

LIBADD=	nvpair umem uutil zfs spl avl zutil zpool

CFLAGS.gcc+= -fms-extensions
# Since there are many asserts in this program, it makes no sense to compile
# it without debugging.
CFLAGS+=	-g -DDEBUG=1 -DZFS_DEBUG=1

.include <bsd.prog.mk>