xref: /freebsd/cddl/lib/libzfs/Makefile (revision 7029da5c36f2d3cf6bb6c81bf551229f416399e8)
1# $FreeBSD$
2
3.PATH: ${SRCTOP}/cddl/compat/opensolaris/misc
4.PATH: ${SRCTOP}/sys/cddl/contrib/opensolaris/common/zfs
5.PATH: ${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
6.PATH: ${SRCTOP}/cddl/contrib/opensolaris/lib/libzfs/common
7.PATH: ${SRCTOP}/cddl/contrib/opensolaris/lib/libcmdutils/common
8
9PACKAGE=	runtime
10LIB=	zfs
11LIBADD=	md pthread umem util uutil m avl bsdxml geom nvpair z zfs_core
12SRCS=	deviceid.c \
13	fsshare.c \
14	mkdirp.c \
15	mnttab.c \
16	thread_pool.c \
17	zmount.c \
18	zone.c
19
20SRCS+=	nicenum.c
21
22SRCS+=	libzfs_changelist.c \
23	libzfs_compat.c \
24	libzfs_config.c \
25	libzfs_dataset.c \
26	libzfs_diff.c \
27	libzfs_import.c \
28	libzfs_iter.c \
29	libzfs_mount.c \
30	libzfs_pool.c \
31	libzfs_sendrecv.c \
32	libzfs_status.c \
33	libzfs_util.c \
34	zfeature_common.c \
35	zfs_comutil.c \
36	zfs_deleg.c \
37	zfs_fletcher.c \
38	zfs_namecheck.c \
39	zfs_prop.c \
40	zpool_prop.c \
41	zprop_common.c \
42
43WARNS?=	0
44SHLIB_MAJOR= 3
45CSTD=	c99
46CFLAGS+= -DZFS_NO_ACL
47CFLAGS+= -I${SRCTOP}/sbin/mount
48CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris
49CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
50CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem
51CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common
52CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/common/zfs
53CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
54CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head
55CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common
56CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair
57CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libuutil/common
58CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzfs/common
59CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzfs_core/common
60CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libcmdutils
61
62.include <bsd.lib.mk>
63