xref: /freebsd/cddl/sbin/zfs/Makefile (revision 8b959dd6a3921c35395bef4a6d7ad2426a3bd88e)
1# $FreeBSD$
2
3ZFSTOP=	${SRCTOP}/sys/contrib/openzfs
4
5.PATH: ${ZFSTOP}/cmd/zfs
6.PATH: ${ZFSTOP}/man/man7
7.PATH: ${ZFSTOP}/man/man8
8.PATH: ${ZFSTOP}/module/os/freebsd/spl
9
10PACKAGE=	runtime
11PROG=	zfs
12MAN= \
13	zfs.8 \
14	zfs-allow.8 \
15	zfs-bookmark.8 \
16	zfs-clone.8 \
17	zfs-create.8 \
18	zfs-destroy.8 \
19	zfs-diff.8 \
20	zfs-hold.8 \
21	zfs-jail.8 \
22	zfs-list.8 \
23	zfs-load-key.8 \
24	zfs-mount.8 \
25	zfs-program.8 \
26	zfs-project.8 \
27	zfs-promote.8 \
28	zfs-receive.8 \
29	zfs-rename.8 \
30	zfs-rollback.8 \
31	zfs-send.8 \
32	zfs-set.8 \
33	zfs-share.8 \
34	zfs-snapshot.8 \
35	zfs-upgrade.8 \
36	zfs-userspace.8 \
37	zfs-wait.8 \
38	zfsconcepts.7 \
39	zfsprops.7
40MLINKS= \
41	zfs-allow.8 zfs-unallow.8 \
42	zfs-hold.8 zfs-release.8 \
43	zfs-jail.8 zfs-unjail.8 \
44	zfs-load-key.8 zfs-change-key.8 \
45	zfs-load-key.8 zfs-unload-key.8 \
46	zfs-mount.8 zfs-unmount.8 \
47	zfs-receive.8 zfs-recv.8 \
48	zfs-send.8 zfs-redact.8 \
49	zfs-set.8 zfs-get.8 \
50	zfs-set.8 zfs-inherit.8 \
51	zfs-userspace.8 zfs-groupspace.8 \
52	zfs-userspace.8 zfs-projectspace.8
53SRCS= \
54	zfs_iter.c \
55	zfs_iter.h \
56	zfs_main.c \
57	zfs_util.h \
58	zfs_project.c \
59	zfs_projectutil.h
60
61WARNS?=	2
62
63CFLAGS+= \
64	-DIN_BASE \
65	-I${ZFSTOP}/include \
66	-I${ZFSTOP}/include/os/freebsd \
67	-I${ZFSTOP}/lib/libspl/include \
68	-I${ZFSTOP}/lib/libspl/include/os/freebsd \
69	-I${SRCTOP}/sys \
70	-I${SRCTOP}/cddl/compat/opensolaris/include \
71	-I${ZFSTOP}/module/icp/include \
72	-include ${ZFSTOP}/include/os/freebsd/spl/sys/ccompile.h \
73	-DHAVE_ISSETUGID \
74	-include ${SRCTOP}/sys/modules/zfs/zfs_config.h \
75	-I${SRCTOP}/sys/modules/zfs
76
77LIBADD=	jail avl nvpair geom  uutil zfs_core spl tpool zutil zfs m crypto
78LDADD+=	-pthread
79.include <bsd.prog.mk>
80