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