xref: /freebsd/sys/modules/zfs/Makefile (revision 830940567b49bb0c08dfaed40418999e76616909)
1# $FreeBSD$
2
3KMOD=	zfs
4
5SRCS=	vnode_if.h
6
7SUNW=	${.CURDIR}/../../cddl/contrib/opensolaris
8
9.PATH:	${SUNW}/common/acl
10SRCS+=	acl_common.c
11.PATH:	${SUNW}/common/avl
12SRCS+=	avl.c
13.PATH:	${SUNW}/common/nvpair
14SRCS+=	nvpair.c
15.PATH:	${.CURDIR}/../../cddl/contrib/opensolaris/common/unicode
16SRCS+=	u8_textprep.c
17
18.PATH:	${.CURDIR}/../../cddl/compat/opensolaris/kern
19SRCS+=	opensolaris_acl.c
20SRCS+=	opensolaris_kmem.c
21SRCS+=	opensolaris_kobj.c
22SRCS+=	opensolaris_kstat.c
23SRCS+=	opensolaris_lookup.c
24SRCS+=	opensolaris_policy.c
25SRCS+=	opensolaris_string.c
26SRCS+=	opensolaris_vfs.c
27SRCS+=	opensolaris_zone.c
28
29.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64"
30.PATH:	${SUNW}/common/atomic/${MACHINE_ARCH}
31SRCS+=	opensolaris_atomic.S
32.else
33.PATH:	${.CURDIR}/../../cddl/compat/opensolaris/kern
34SRCS+=	opensolaris_atomic.c
35.endif
36
37.PATH:	${SUNW}/uts/common/fs
38SRCS+=	gfs.c
39SRCS+=	vnode.c
40
41.PATH:	${SUNW}/uts/common/os
42SRCS+=	callb.c
43SRCS+=	list.c
44SRCS+=	nvpair_alloc_system.c
45SRCS+=	taskq.c
46
47.PATH:	${SUNW}/uts/common/zmod
48SRCS+=	adler32.c
49SRCS+=	opensolaris_crc32.c
50SRCS+=	deflate.c
51SRCS+=	inffast.c
52SRCS+=	inflate.c
53SRCS+=	inftrees.c
54SRCS+=	trees.c
55SRCS+=	zmod.c
56SRCS+=	zmod_subr.c
57SRCS+=	zutil.c
58
59.PATH:	${SUNW}/common/zfs
60.include "${SUNW}/uts/common/Makefile.files"
61.PATH:	${SUNW}/uts/common/fs/zfs
62ZFS_SRCS=	${ZFS_OBJS:C/.o$/.c/}
63SRCS+=	${ZFS_SRCS}
64SRCS+=	vdev_geom.c
65
66# Use UMA for ZIO allocation. This is not stable.
67#CFLAGS+=-DZIO_USE_UMA
68
69# Use FreeBSD's namecache.
70CFLAGS+=-DFREEBSD_NAMECACHE
71
72CFLAGS+=-I${.CURDIR}/../../cddl/compat/opensolaris
73CFLAGS+=-I${SUNW}/uts/common/fs/zfs
74CFLAGS+=-I${SUNW}/uts/common/zmod
75CFLAGS+=-I${SUNW}/uts/common
76CFLAGS+=-I${.CURDIR}/../..
77CFLAGS+=-I${SUNW}/common/zfs
78CFLAGS+=-I${SUNW}/common
79CFLAGS+=-I${.CURDIR}/../../../include
80CFLAGS+=-DBUILDING_ZFS
81
82#CFLAGS+=-DDEBUG=1
83#DEBUG_FLAGS=-g
84
85.include <bsd.kmod.mk>
86
87CWARNFLAGS+=-Wno-unknown-pragmas
88CWARNFLAGS+=-Wno-missing-prototypes
89CWARNFLAGS+=-Wno-undef
90CWARNFLAGS+=-Wno-strict-prototypes
91CWARNFLAGS+=-Wno-cast-qual
92CWARNFLAGS+=-Wno-parentheses
93CWARNFLAGS+=-Wno-redundant-decls
94CWARNFLAGS+=-Wno-missing-braces
95CWARNFLAGS+=-Wno-uninitialized
96CWARNFLAGS+=-Wno-unused
97CWARNFLAGS+=-Wno-inline
98CWARNFLAGS+=-Wno-switch
99CWARNFLAGS+=-Wno-pointer-arith
100