xref: /freebsd/cddl/sbin/zpool/Makefile (revision 4ac8f4067096a9d4a00e41cd53bd5c4fa295fd15)
1# $FreeBSD$
2
3ZFSTOP=	${SRCTOP}/sys/contrib/openzfs
4
5.PATH: ${ZFSTOP}/man/man4
6.PATH: ${ZFSTOP}/man/man5
7.PATH: ${ZFSTOP}/man/man7
8.PATH: ${ZFSTOP}/man/man8
9.PATH: ${ZFSTOP}/cmd/zpool
10.PATH: ${ZFSTOP}/cmd/zpool/os/freebsd
11
12
13PACKAGE=	zfs
14PROG=	zpool
15MAN= \
16	spl.4 \
17	zfs.4 \
18	zpool.8 \
19	zpool-add.8 \
20	zpool-attach.8 \
21	zpool-checkpoint.8 \
22	zpool-clear.8 \
23	zpool-create.8 \
24	zpool-destroy.8 \
25	zpool-detach.8 \
26	zpool-events.8 \
27	zpool-export.8 \
28	zpool-features.7 \
29	zpool-get.8 \
30	zpool-history.8 \
31	zpool-import.8 \
32	zpool-initialize.8 \
33	zpool-iostat.8 \
34	zpool-labelclear.8 \
35	zpool-list.8 \
36	zpool-offline.8 \
37	zpool-reguid.8 \
38	zpool-remove.8 \
39	zpool-reopen.8 \
40	zpool-replace.8 \
41	zpool-resilver.8 \
42	zpool-scrub.8 \
43	zpool-split.8 \
44	zpool-status.8 \
45	zpool-sync.8 \
46	zpool-trim.8 \
47	zpool-upgrade.8 \
48	zpool-wait.8 \
49	zpoolconcepts.7 \
50	zpoolprops.7
51MLINKS= \
52	zpool-offline.8 zpool-online.8 \
53	zpool-get.8 zpool-set.8
54SRCS= \
55	zpool_iter.c \
56	zpool_main.c \
57	zpool_util.c \
58	zpool_util.h \
59	zpool_vdev.c \
60	zpool_vdev_os.c
61
62WARNS?=	2
63
64CFLAGS+= \
65	-DIN_BASE \
66	-I${ZFSTOP}/include \
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}/cmd/zpool \
72	-include ${ZFSTOP}/include/os/freebsd/spl/sys/ccompile.h \
73	-DHAVE_ISSETUGID \
74	-include ${SRCTOP}/sys/modules/zfs/zfs_config.h \
75	-DSYSCONFDIR=\"/etc\" \
76	-DPKGDATADIR=\"/usr/share/zfs\"
77
78LIBADD=	geom nvpair uutil zfs zutil avl spl tpool zfs_core m
79LDADD+= 	-pthread
80.include <bsd.prog.mk>
81