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