xref: /freebsd/cddl/sbin/zpool/Makefile (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1
2ZFSTOP=	${SRCTOP}/sys/contrib/openzfs
3
4.PATH: ${ZFSTOP}/man/man4
5.PATH: ${ZFSTOP}/man/man5
6.PATH: ${ZFSTOP}/man/man7
7.PATH: ${ZFSTOP}/man/man8
8.PATH: ${ZFSTOP}/cmd/zpool
9.PATH: ${ZFSTOP}/cmd/zpool/os/freebsd
10
11
12PACKAGE=	zfs
13PROG=	zpool
14MAN= \
15	spl.4 \
16	vdevprops.7 \
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