aboutsummaryrefslogtreecommitdiff
path: root/cddl/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'cddl/sbin')
-rw-r--r--cddl/sbin/Makefile11
-rw-r--r--cddl/sbin/Makefile.inc5
-rw-r--r--cddl/sbin/zfs/Makefile27
-rw-r--r--cddl/sbin/zpool/Makefile29
4 files changed, 72 insertions, 0 deletions
diff --git a/cddl/sbin/Makefile b/cddl/sbin/Makefile
new file mode 100644
index 000000000000..802bbfe02b22
--- /dev/null
+++ b/cddl/sbin/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+SUBDIR=
+.if ${MK_ZFS} != "no"
+SUBDIR+=zfs
+SUBDIR+=zpool
+.endif
+
+.include <bsd.subdir.mk>
diff --git a/cddl/sbin/Makefile.inc b/cddl/sbin/Makefile.inc
new file mode 100644
index 000000000000..c5111d5cb286
--- /dev/null
+++ b/cddl/sbin/Makefile.inc
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+BINDIR?= /sbin
+
+.include "../Makefile.inc"
diff --git a/cddl/sbin/zfs/Makefile b/cddl/sbin/zfs/Makefile
new file mode 100644
index 000000000000..7fab5bc460d1
--- /dev/null
+++ b/cddl/sbin/zfs/Makefile
@@ -0,0 +1,27 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../contrib/opensolaris/cmd/zfs
+
+PROG= zfs
+MAN= zfs.8
+SRCS= zfs_main.c
+SRCS+= zfs_iter.c
+
+CFLAGS+=-I${.CURDIR}/../../../contrib/opensolaris/lib/libzpool/common
+CFLAGS+=-I${.CURDIR}/../../../compat/opensolaris/include
+CFLAGS+=-I${.CURDIR}/../../../compat/opensolaris/lib/libumem
+CFLAGS+=-I${.CURDIR}/../../../sys/compat/opensolaris
+CFLAGS+=-I${.CURDIR}/../../../contrib/opensolaris/head
+CFLAGS+=-I${.CURDIR}/../../../contrib/opensolaris/lib/libuutil/common
+CFLAGS+=-I${.CURDIR}/../../../contrib/opensolaris/lib/libzfs/common
+CFLAGS+=-I${.CURDIR}/../../../contrib/opensolaris/lib/libumem/common
+CFLAGS+=-I${.CURDIR}/../../../contrib/opensolaris/lib/libnvpair
+CFLAGS+=-I${.CURDIR}/../../../sys/contrib/opensolaris/uts/common
+CFLAGS+=-I${.CURDIR}/../../../sys/contrib/opensolaris/uts/common/fs/zfs
+CFLAGS+=-I${.CURDIR}/../../../sys/contrib/opensolaris/uts/common/sys
+CFLAGS+=-I${.CURDIR}/../../../sys
+
+DPADD= ${LIBGEOM} ${LIBM} ${LIBNVPAIR} ${LIBUUTIL} ${LIBZFS}
+LDADD= -lgeom -lm -lnvpair -luutil -lzfs
+
+.include <bsd.prog.mk>
diff --git a/cddl/sbin/zpool/Makefile b/cddl/sbin/zpool/Makefile
new file mode 100644
index 000000000000..7a0f2625a09f
--- /dev/null
+++ b/cddl/sbin/zpool/Makefile
@@ -0,0 +1,29 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../contrib/opensolaris/cmd/zpool
+
+PROG= zpool
+MAN= zpool.8
+SRCS= zpool_main.c
+SRCS+= zpool_vdev.c
+SRCS+= zpool_iter.c
+SRCS+= zpool_util.c
+
+CFLAGS+=-I${.CURDIR}/../../../contrib/opensolaris/lib/libzpool/common
+CFLAGS+=-I${.CURDIR}/../../../compat/opensolaris/include
+CFLAGS+=-I${.CURDIR}/../../../compat/opensolaris/lib/libumem
+CFLAGS+=-I${.CURDIR}/../../../sys/compat/opensolaris
+CFLAGS+=-I${.CURDIR}/../../../contrib/opensolaris/head
+CFLAGS+=-I${.CURDIR}/../../../contrib/opensolaris/lib/libuutil/common
+CFLAGS+=-I${.CURDIR}/../../../contrib/opensolaris/lib/libumem/common
+CFLAGS+=-I${.CURDIR}/../../../contrib/opensolaris/lib/libzfs/common
+CFLAGS+=-I${.CURDIR}/../../../contrib/opensolaris/lib/libnvpair
+CFLAGS+=-I${.CURDIR}/../../../sys/contrib/opensolaris/uts/common
+CFLAGS+=-I${.CURDIR}/../../../sys/contrib/opensolaris/uts/common/fs/zfs
+CFLAGS+=-I${.CURDIR}/../../../sys/contrib/opensolaris/uts/common/sys
+CFLAGS+=-I${.CURDIR}/../../../sys
+
+DPADD= ${LIBAVL} ${LIBGEOM} ${LIBM} ${LIBNVPAIR} ${LIBUUTIL} ${LIBZFS}
+LDADD= -lavl -lgeom -lm -lnvpair -luutil -lzfs
+
+.include <bsd.prog.mk>