xref: /freebsd/cddl/lib/libzfs/Makefile (revision 641a6cfb86023499caafe26a4d821a0b885cf00b)
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}
10LDADD=	-lmd -lpthread -lumem -lutil -lm
11
12SRCS=	deviceid.c \
13	fsshare.c \
14	mkdirp.c \
15	mnttab.c \
16	zmount.c \
17	zone.c
18
19SRCS+=	libzfs_changelist.c \
20	libzfs_config.c \
21	libzfs_dataset.c \
22	libzfs_diff.c \
23	libzfs_import.c \
24	libzfs_iter.c \
25	libzfs_mount.c \
26	libzfs_pool.c \
27	libzfs_sendrecv.c \
28	libzfs_status.c \
29	libzfs_util.c \
30	zfeature_common.c \
31	zfs_comutil.c \
32	zfs_deleg.c \
33	zfs_fletcher.c \
34	zfs_ioctl_compat.c \
35	zfs_namecheck.c \
36	zfs_prop.c \
37	zpool_prop.c \
38	zprop_common.c \
39
40WARNS?=	0
41CSTD=	c99
42CFLAGS+= -DZFS_NO_ACL
43CFLAGS+= -I${.CURDIR}/../../../sbin/mount
44CFLAGS+= -I${.CURDIR}/../../../cddl/lib/libumem
45CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris
46CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris/include
47CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris/lib/libumem
48CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libzpool/common
49CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/common/zfs
50CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs
51CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common/sys
52CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/head
53CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common
54CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libnvpair
55CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libuutil/common
56CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libzfs/common
57
58.include <bsd.lib.mk>
59