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