xref: /freebsd/sys/modules/zfs/Makefile (revision b2db760808f74bb53c232900091c9da801ebbfcc)
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_kobj.c
21SRCS+=	opensolaris_kstat.c
22SRCS+=	opensolaris_lookup.c
23SRCS+=	opensolaris_policy.c
24SRCS+=	opensolaris_string.c
25SRCS+=	opensolaris_taskq.c
26SRCS+=	opensolaris_uio.c
27SRCS+=	opensolaris_vfs.c
28SRCS+=	opensolaris_zone.c
29
30.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "powerpc64"
31.PATH:	${SUNW}/common/atomic/${MACHINE_ARCH}
32SRCS+=	opensolaris_atomic.S
33.else
34.PATH:	${.CURDIR}/../../cddl/compat/opensolaris/kern
35SRCS+=	opensolaris_atomic.c
36.endif
37
38.PATH:	${SUNW}/uts/common/fs
39SRCS+=	gfs.c
40SRCS+=	vnode.c
41
42.PATH:	${SUNW}/uts/common/os
43SRCS+=	callb.c
44SRCS+=	list.c
45SRCS+=	nvpair_alloc_system.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 FreeBSD's namecache.
67CFLAGS+=-DFREEBSD_NAMECACHE
68
69CFLAGS+=-I${.CURDIR}/../../cddl/compat/opensolaris
70CFLAGS+=-I${SUNW}/uts/common/fs/zfs
71CFLAGS+=-I${SUNW}/uts/common/zmod
72CFLAGS+=-I${SUNW}/uts/common
73CFLAGS+=-I${.CURDIR}/../..
74CFLAGS+=-I${SUNW}/common/zfs
75CFLAGS+=-I${SUNW}/common
76CFLAGS+=-I${.CURDIR}/../../../include
77CFLAGS+=-DBUILDING_ZFS
78
79#CFLAGS+=-DDEBUG=1
80#DEBUG_FLAGS=-g
81
82.include <bsd.kmod.mk>
83
84CWARNFLAGS+=-Wno-unknown-pragmas
85CWARNFLAGS+=-Wno-missing-prototypes
86CWARNFLAGS+=-Wno-undef
87CWARNFLAGS+=-Wno-strict-prototypes
88CWARNFLAGS+=-Wno-cast-qual
89CWARNFLAGS+=-Wno-parentheses
90CWARNFLAGS+=-Wno-redundant-decls
91CWARNFLAGS+=-Wno-missing-braces
92CWARNFLAGS+=-Wno-uninitialized
93CWARNFLAGS+=-Wno-unused
94CWARNFLAGS+=-Wno-inline
95CWARNFLAGS+=-Wno-switch
96CWARNFLAGS+=-Wno-pointer-arith
97