xref: /freebsd/sys/modules/zfs/Makefile (revision 271c3a9060f2ee55607ebe146523f888e1db2654)
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
16.PATH:	${.CURDIR}/../../cddl/compat/opensolaris/kern
17SRCS+=	opensolaris_kmem.c
18SRCS+=	opensolaris_kobj.c
19SRCS+=	opensolaris_kstat.c
20SRCS+=	opensolaris_misc.c
21SRCS+=	opensolaris_policy.c
22SRCS+=	opensolaris_string.c
23SRCS+=	opensolaris_vfs.c
24SRCS+=	opensolaris_zone.c
25
26.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64"
27.PATH:	${SUNW}/common/atomic/${MACHINE_ARCH}
28SRCS+=	atomic.S
29.else
30.PATH:	${.CURDIR}/../../cddl/compat/opensolaris/kern
31SRCS+=	opensolaris_atomic.c
32.endif
33
34.PATH:	${SUNW}/uts/common/fs
35SRCS+=	gfs.c
36
37.PATH:	${SUNW}/uts/common/os
38SRCS+=	callb.c
39SRCS+=	list.c
40SRCS+=	nvpair_alloc_system.c
41SRCS+=	taskq.c
42
43.PATH:	${SUNW}/uts/common/rpc
44SRCS+=	xdr.c
45SRCS+=	xdr_array.c
46SRCS+=	xdr_mem.c
47
48.PATH:	${SUNW}/uts/common/zmod
49SRCS+=	adler32.c
50SRCS+=	crc32.c
51SRCS+=	deflate.c
52SRCS+=	inffast.c
53SRCS+=	inflate.c
54SRCS+=	inftrees.c
55SRCS+=	trees.c
56SRCS+=	zmod.c
57SRCS+=	zmod_subr.c
58SRCS+=	zutil.c
59
60.PATH:	${SUNW}/common/zfs
61.include "${SUNW}/uts/common/Makefile.files"
62.PATH:	${SUNW}/uts/common/fs/zfs
63ZFS_SRCS=	${ZFS_OBJS:C/.o$/.c/}
64SRCS+=	${ZFS_SRCS}
65SRCS+=	vdev_geom.c
66
67# Use UMA for ZIO allocation. This is not stable.
68#CFLAGS+=-DZIO_USE_UMA
69
70# Use FreeBSD's namecache.
71CFLAGS+=-DFREEBSD_NAMECACHE
72
73CFLAGS+=-I${.CURDIR}/../../cddl/compat/opensolaris
74CFLAGS+=-I${SUNW}/uts/common/fs/zfs
75CFLAGS+=-I${SUNW}/uts/common/zmod
76CFLAGS+=-I${SUNW}/uts/common
77CFLAGS+=-I${.CURDIR}/../..
78CFLAGS+=-I${SUNW}/common/zfs
79CFLAGS+=-I${SUNW}/common
80CFLAGS+=-I${.CURDIR}/../../../include
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