aboutsummaryrefslogtreecommitdiff
path: root/cddl/lib/libbe/Makefile
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-07-24 15:42:23 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-07-24 15:42:23 +0000
commit70a11a8eeaf7930b8332eccef91efe34904720a7 (patch)
treee3d2c2b589fbbaf8689146eda34a395d620e9d7d /cddl/lib/libbe/Makefile
parent7b6d4f44eaff62cc9d0ddc091e766f954cafc55f (diff)
downloadsrc-70a11a8eeaf7930b8332eccef91efe34904720a7.tar.gz
src-70a11a8eeaf7930b8332eccef91efe34904720a7.zip
libbe(3): Add to cddl build, adjust src.libnames.mk as needed
Notes
Notes: svn path=/projects/bectl/; revision=336673
Diffstat (limited to 'cddl/lib/libbe/Makefile')
-rw-r--r--cddl/lib/libbe/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/cddl/lib/libbe/Makefile b/cddl/lib/libbe/Makefile
new file mode 100644
index 000000000000..08a2d6f480be
--- /dev/null
+++ b/cddl/lib/libbe/Makefile
@@ -0,0 +1,59 @@
+# $FreeBSD$
+#
+# Copyright (c) 2010 Hans Petter Selasky. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
+#
+
+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
+
+WARNS?= 1
+
+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>