aboutsummaryrefslogtreecommitdiff
path: root/cddl/usr.bin/zstream/Makefile
blob: cfcff71a813f919a5f106832fa7aa633b4565041 (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
34
35
# $FreeBSD$

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

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

PROG=	zstream
MAN=	zstream.8
MLINKS=	zstream.8 zstreamdump.8
INCS=	zstream.h
SRCS= \
	zstream.c \
	zstream_dump.c \
	zstream_redup.c \
	zstream_token.c

SYMLINKS=	${BINDIR}/zstream ${BINDIR}/zstreamdump

WARNS?=	2
CFLAGS+= \
	-DIN_BASE \
	-I${ZFSTOP}/include \
	-I${ZFSTOP}/lib/libspl/include \
	-I${ZFSTOP}/lib/libspl/include/os/freebsd \
	-I${SRCTOP}/sys \
	-I${SRCTOP}/cddl/compat/opensolaris/include \
	-I${ZFSTOP}/module/icp/include \
	-include ${ZFSTOP}/include/os/freebsd/spl/sys/ccompile.h \
	-DHAVE_ISSETUGID \
	-include ${SRCTOP}/sys/modules/zfs/zfs_config.h

LIBADD=	geom m nvpair umem uutil avl spl zfs_core zfs zutil zpool

.include <bsd.prog.mk>