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