xref: /freebsd/cddl/usr.sbin/zdb/Makefile (revision ee7b0571c2c18bdec848ed2044223cc88db29bd8)
1# $FreeBSD$
2
3.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/cmd/zdb
4
5PROG=	zdb
6MAN=	zdb.8
7SRCS=	zdb.c zdb_il.c
8
9WARNS?=	0
10CSTD=	c99
11
12CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris
13CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris/include
14CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris/lib/libumem
15CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libnvpair
16CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libuutil/common
17CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libzfs/common
18CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libzfs_core/common
19CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libzpool/common
20CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs
21CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common
22CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common/sys
23CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/common/zfs
24CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/head
25CFLAGS+= -I${.CURDIR}/../../lib/libumem
26
27DPADD=	${LIBGEOM} ${LIBM} ${LIBNVPAIR} ${LIBPTHREAD} ${LIBUMEM} \
28	${LIBUUTIL} ${LIBZFS_CORE} ${LIBZFS} ${LIBZPOOL}
29LDADD=	-lgeom -lm -lnvpair -lpthread -lumem -luutil -lzfs_core -lzfs -lzpool
30
31# Since there are many asserts in this program, it makes no sense to compile
32# it without debugging.
33CFLAGS+=	-g -DDEBUG=1
34
35.include <bsd.prog.mk>
36