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