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