xref: /freebsd/lib/libbe/Makefile (revision 2e3f49888ec8851bafb22011533217487764fdb0)
1
2SHLIBDIR?=	/lib
3
4.include <src.opts.mk>
5
6PACKAGE=	zfs
7LIB=		be
8SHLIB_MAJOR=	1
9SHLIB_MINOR=	0
10
11SRCS=		be.c be_access.c be_error.c be_info.c
12INCS=		be.h
13MAN=		libbe.3
14MLINKS+=	libbe.3 be_activate.3
15MLINKS+=	libbe.3 be_active_name.3
16MLINKS+=	libbe.3 be_active_path.3
17MLINKS+=	libbe.3 be_create_depth.3
18MLINKS+=	libbe.3 be_create_from_existing_snap.3
19MLINKS+=	libbe.3 be_create_from_existing.3
20MLINKS+=	libbe.3 be_create.3
21MLINKS+=	libbe.3 be_deactivate.3
22MLINKS+=	libbe.3 be_destroy.3
23MLINKS+=	libbe.3 be_exists.3
24MLINKS+=	libbe.3 be_export.3
25MLINKS+=	libbe.3 be_get_bootenv_props.3
26MLINKS+=	libbe.3 be_get_dataset_props.3
27MLINKS+=	libbe.3 be_get_dataset_snapshots.3
28MLINKS+=	libbe.3 be_import.3
29MLINKS+=	libbe.3 be_is_auto_snapshot_name.3
30MLINKS+=	libbe.3 be_mount.3
31MLINKS+=	libbe.3 be_mounted_at.3
32MLINKS+=	libbe.3 be_nextboot_name.3
33MLINKS+=	libbe.3 be_nextboot_path.3
34MLINKS+=	libbe.3 be_nicenum.3
35MLINKS+=	libbe.3 be_prop_list_alloc.3
36MLINKS+=	libbe.3 be_prop_list_free.3
37MLINKS+=	libbe.3 be_rename.3
38MLINKS+=	libbe.3 be_root_concat.3
39MLINKS+=	libbe.3 be_root_path.3
40MLINKS+=	libbe.3 be_snapshot.3
41MLINKS+=	libbe.3 be_unmount.3
42MLINKS+=	libbe.3 be_validate_name.3
43MLINKS+=	libbe.3 be_validate_snap.3
44MLINKS+=	libbe.3 libbe_close.3
45MLINKS+=	libbe.3 libbe_errno.3
46MLINKS+=	libbe.3 libbe_error_description.3
47MLINKS+=	libbe.3 libbe_init.3
48MLINKS+=	libbe.3 libbe_print_on_error.3
49
50LIBADD+= zfs
51LIBADD+= nvpair
52LIBADD+= spl
53LIBADD+= zfsbootenv
54
55CFLAGS+= -DIN_BASE -DHAVE_RPC_TYPES
56CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
57CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd
58CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include
59CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
60CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libzfs
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
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