1# $FreeBSD$ 2 3ZFSTOP= ${SRCTOP}/sys/contrib/openzfs 4 5.PATH: ${ZFSTOP}/cmd/zdb 6.PATH: ${ZFSTOP}/man/man8 7 8PROG= zdb 9MAN= zdb.8 10INCS= zdb.h 11SRCS= zdb.c zdb_il.c 12 13WARNS?= 2 14CSTD= c99 15 16CFLAGS+= \ 17 -DIN_BASE \ 18 -I${ZFSTOP}/include \ 19 -I${ZFSTOP}/lib/libspl/include \ 20 -I${ZFSTOP}/lib/libspl/include/os/freebsd \ 21 -I${ZFSTOP}/lib/libspl/include/os/freebsd/spl \ 22 -I${SRCTOP}/sys \ 23 -include ${ZFSTOP}/include/os/freebsd/spl/sys/ccompile.h \ 24 -DHAVE_ISSETUGID 25 26LIBADD= nvpair umem uutil zfs spl avl zutil zpool 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