xref: /freebsd/cddl/lib/libzfs/Makefile (revision 88f578841fd49ff796b62a8d3531bd73afd1a88e)
1# $FreeBSD$
2
3.PATH: ${.CURDIR}/../../../cddl/compat/opensolaris/misc
4.PATH: ${.CURDIR}/../../../sys/cddl/contrib/opensolaris/common/zfs
5.PATH: ${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs
6.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libzfs/common
7
8LIB=	zfs
9DPADD=	${LIBMD} ${LIBPTHREAD} ${LIBUMEM} ${LIBUTIL} ${LIBM} ${LIBNVPAIR} \
10	${LIBAVL} ${LIBZFS_CORE} ${LIBUUTIL} ${LIBBSDXML} ${LIBGEOM} \
11	${LIBNVPAIR}
12
13LDADD=	-lmd -lpthread -lumem -lutil -luutil -lm -lnvpair -lavl \
14	-lbsdxml -lgeom -lnvpair -lzfs_core
15
16SRCS=	deviceid.c \
17	fsshare.c \
18	mkdirp.c \
19	mnttab.c \
20	thread_pool.c \
21	zmount.c \
22	zone.c
23
24SRCS+=	libzfs_changelist.c \
25	libzfs_compat.c \
26	libzfs_config.c \
27	libzfs_dataset.c \
28	libzfs_diff.c \
29	libzfs_import.c \
30	libzfs_iter.c \
31	libzfs_mount.c \
32	libzfs_pool.c \
33	libzfs_sendrecv.c \
34	libzfs_status.c \
35	libzfs_util.c \
36	zfeature_common.c \
37	zfs_comutil.c \
38	zfs_deleg.c \
39	zfs_fletcher.c \
40	zfs_namecheck.c \
41	zfs_prop.c \
42	zpool_prop.c \
43	zprop_common.c \
44
45WARNS?=	0
46CSTD=	c99
47CFLAGS+= -DZFS_NO_ACL
48CFLAGS+= -I${.CURDIR}/../../../sbin/mount
49CFLAGS+= -I${.CURDIR}/../../../cddl/lib/libumem
50CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris
51CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris/include
52CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris/lib/libumem
53CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libzpool/common
54CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/common/zfs
55CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs
56CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common/sys
57CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/head
58CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common
59CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libnvpair
60CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libuutil/common
61CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libzfs/common
62CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libzfs_core/common
63
64.include <bsd.lib.mk>
65