aboutsummaryrefslogtreecommitdiff
path: root/cddl/lib
diff options
context:
space:
mode:
Diffstat (limited to 'cddl/lib')
-rw-r--r--cddl/lib/Makefile3
-rw-r--r--cddl/lib/libbe/Makefile33
2 files changed, 36 insertions, 0 deletions
diff --git a/cddl/lib/Makefile b/cddl/lib/Makefile
index 69a0e381dfec..2c4085858e8b 100644
--- a/cddl/lib/Makefile
+++ b/cddl/lib/Makefile
@@ -4,6 +4,7 @@
SUBDIR= ${_drti} \
libavl \
+ ${_libbe} \
libctf \
${_libdtrace} \
libnvpair \
@@ -16,6 +17,7 @@ SUBDIR= ${_drti} \
SUBDIR.${MK_TESTS}+= tests
.if ${MK_ZFS} != "no"
+_libbe= libbe
_libzfs_core= libzfs_core
_libzfs= libzfs
.if ${MK_LIBTHR} != "no"
@@ -28,6 +30,7 @@ _drti= drti
_libdtrace= libdtrace
.endif
+SUBDIR_DEPEND_libbe= libnvpair libzfs
SUBDIR_DEPEND_libdtrace= libctf
SUBDIR_DEPEND_libzfs_core= libnvpair
SUBDIR_DEPEND_libzfs= libavl libnvpair libumem libuutil libzfs_core
diff --git a/cddl/lib/libbe/Makefile b/cddl/lib/libbe/Makefile
new file mode 100644
index 000000000000..c71d59eaa334
--- /dev/null
+++ b/cddl/lib/libbe/Makefile
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+PACKAGE= lib${LIB}
+LIB= be
+SHLIB_MAJOR= 1
+SHLIB_MINOR= 0
+LIBBE_SRC= ${SRCTOP}/lib/libbe
+
+.PATH: ${LIBBE_SRC}
+SRCS= be.c be_access.c be_error.c be_info.c
+INCS= be.h
+MAN= libbe.3
+
+LIBADD+= zfs
+LIBADD+= nvpair
+
+CFLAGS+= -I${LIBBE_SRC}
+CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair
+CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzfs/common
+CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzfs_core/common
+CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris
+CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
+CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem
+CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common
+CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/common/zfs
+CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
+CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common
+CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head
+LDFLAGS+= -v
+
+CFLAGS+= -DNEED_SOLARIS_BOOLEAN
+
+.include <bsd.lib.mk>