xref: /freebsd/sys/modules/zfs/Makefile (revision 3dc4488c9143fa830701c5d0e69a83eaa9efa124)
1# $FreeBSD$
2
3KMOD=	zfs
4
5SRCS=	vnode_if.h
6
7.PATH:	${.CURDIR}/../../contrib/opensolaris/common/acl
8SRCS+=	acl_common.c
9.PATH:	${.CURDIR}/../../contrib/opensolaris/common/avl
10SRCS+=	avl.c
11.PATH:	${.CURDIR}/../../contrib/opensolaris/common/nvpair
12SRCS+=	nvpair.c
13
14.PATH:	${.CURDIR}/../../compat/opensolaris/kern
15SRCS+=	opensolaris_kmem.c
16SRCS+=	opensolaris_kobj.c
17SRCS+=	opensolaris_kstat.c
18SRCS+=	opensolaris_policy.c
19SRCS+=	opensolaris_string.c
20SRCS+=	opensolaris_vfs.c
21SRCS+=	opensolaris_zone.c
22
23.PATH:	${.CURDIR}/../../contrib/opensolaris/common/atomic/${MACHINE_ARCH}
24SRCS+=	atomic.S
25
26.PATH:	${.CURDIR}/../../contrib/opensolaris/uts/common/fs
27SRCS+=	dnlc.c
28SRCS+=	gfs.c
29
30.PATH:	${.CURDIR}/../../contrib/opensolaris/uts/common/os
31SRCS+=	callb.c
32SRCS+=	list.c
33SRCS+=	nvpair_alloc_system.c
34SRCS+=	taskq.c
35
36.PATH:	${.CURDIR}/../../contrib/opensolaris/uts/common/rpc
37SRCS+=	xdr.c
38SRCS+=	xdr_array.c
39SRCS+=	xdr_mem.c
40
41.PATH:	${.CURDIR}/../../contrib/opensolaris/uts/common/zmod
42SRCS+=	adler32.c
43SRCS+=	crc32.c
44SRCS+=	deflate.c
45SRCS+=	inffast.c
46SRCS+=	inflate.c
47SRCS+=	inftrees.c
48SRCS+=	trees.c
49SRCS+=	zmod.c
50SRCS+=	zmod_subr.c
51SRCS+=	zutil.c
52
53.PATH:	${.CURDIR}/../../contrib/opensolaris/common/zfs
54.include "${.CURDIR}/../../contrib/opensolaris/uts/common/Makefile.files"
55.PATH:	${.CURDIR}/../../contrib/opensolaris/uts/common/fs/zfs
56ZFS_SRCS=	${ZFS_OBJS:C/.o$/.c/}
57SRCS+=	${ZFS_SRCS}
58SRCS+=	vdev_geom.c
59
60# Use UMA for ZIO allocation. This is not stable.
61#CFLAGS+=-DZIO_USE_UMA
62
63CWARNFLAGS=-Wall
64CWARNFLAGS+=-Wno-unknown-pragmas
65CWARNFLAGS+=-Wno-missing-braces
66CWARNFLAGS+=-Wno-parentheses
67CWARNFLAGS+=-Wno-uninitialized
68CWARNFLAGS+=-Wno-unused
69CWARNFLAGS+=-Wno-switch
70
71CFLAGS+=-D_SOLARIS_C_SOURCE
72
73CFLAGS+=-I${.CURDIR}/../../compat/opensolaris
74CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/uts/common/fs/zfs
75CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/uts/common/zmod
76CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/uts/common
77CFLAGS+=-I${.CURDIR}/../..
78CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/common/zfs
79CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/common
80CFLAGS+=-I${.CURDIR}/../../../include
81
82WARNS?=1
83
84#CFLAGS+=-DDEBUG=1
85#DEBUG_FLAGS=-g
86
87.include <bsd.kmod.mk>
88