1# $FreeBSD$ 2 3SHLIBDIR?= /lib 4 5.include <src.opts.mk> 6 7PACKAGE= zfs 8LIB= be 9SHLIB_MAJOR= 1 10SHLIB_MINOR= 0 11 12SRCS= be.c be_access.c be_error.c be_info.c 13INCS= be.h 14MAN= libbe.3 15MLINKS+= libbe.3 be_activate.3 16MLINKS+= libbe.3 be_active_name.3 17MLINKS+= libbe.3 be_active_path.3 18MLINKS+= libbe.3 be_create_depth.3 19MLINKS+= libbe.3 be_create_from_existing_snap.3 20MLINKS+= libbe.3 be_create_from_existing.3 21MLINKS+= libbe.3 be_create.3 22MLINKS+= libbe.3 be_deactivate.3 23MLINKS+= libbe.3 be_destroy.3 24MLINKS+= libbe.3 be_exists.3 25MLINKS+= libbe.3 be_export.3 26MLINKS+= libbe.3 be_get_bootenv_props.3 27MLINKS+= libbe.3 be_get_dataset_props.3 28MLINKS+= libbe.3 be_get_dataset_snapshots.3 29MLINKS+= libbe.3 be_import.3 30MLINKS+= libbe.3 be_is_auto_snapshot_name.3 31MLINKS+= libbe.3 be_mount.3 32MLINKS+= libbe.3 be_mounted_at.3 33MLINKS+= libbe.3 be_nextboot_name.3 34MLINKS+= libbe.3 be_nextboot_path.3 35MLINKS+= libbe.3 be_nicenum.3 36MLINKS+= libbe.3 be_prop_list_alloc.3 37MLINKS+= libbe.3 be_prop_list_free.3 38MLINKS+= libbe.3 be_rename.3 39MLINKS+= libbe.3 be_root_concat.3 40MLINKS+= libbe.3 be_root_path.3 41MLINKS+= libbe.3 be_snapshot.3 42MLINKS+= libbe.3 be_unmount.3 43MLINKS+= libbe.3 be_validate_name.3 44MLINKS+= libbe.3 be_validate_snap.3 45MLINKS+= libbe.3 libbe_close.3 46MLINKS+= libbe.3 libbe_errno.3 47MLINKS+= libbe.3 libbe_error_description.3 48MLINKS+= libbe.3 libbe_init.3 49MLINKS+= libbe.3 libbe_print_on_error.3 50 51LIBADD+= zfs 52LIBADD+= nvpair 53LIBADD+= spl 54LIBADD+= zfsbootenv 55 56CFLAGS+= -DIN_BASE -DHAVE_RPC_TYPES 57CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 58CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd 59CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include 60CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 61CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libzfs 62CFLAGS+= -I${SRCTOP}/sys 63CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 64CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 65CFLAGS+= -DHAVE_ISSETUGID 66CFLAGS.be.c= -Wno-cast-qual 67CFLAGS.be_access.c= -Wno-cast-qual 68CFLAGS.be_error.c= -Wno-cast-qual 69CFLAGS.be_info.c= -Wno-cast-qual 70 71HAS_TESTS= YES 72SUBDIR.${MK_TESTS}+= tests 73 74.include <bsd.lib.mk> 75