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_misc.c 19SRCS+= opensolaris_policy.c 20SRCS+= opensolaris_string.c 21SRCS+= opensolaris_vfs.c 22SRCS+= opensolaris_zone.c 23 24.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" 25.PATH: ${.CURDIR}/../../contrib/opensolaris/common/atomic/${MACHINE_ARCH} 26SRCS+= atomic.S 27.else 28.PATH: ${.CURDIR}/../../compat/opensolaris/kern 29SRCS+= opensolaris_atomic.c 30.endif 31 32.PATH: ${.CURDIR}/../../contrib/opensolaris/uts/common/fs 33SRCS+= gfs.c 34 35.PATH: ${.CURDIR}/../../contrib/opensolaris/uts/common/os 36SRCS+= callb.c 37SRCS+= list.c 38SRCS+= nvpair_alloc_system.c 39SRCS+= taskq.c 40 41.PATH: ${.CURDIR}/../../contrib/opensolaris/uts/common/rpc 42SRCS+= xdr.c 43SRCS+= xdr_array.c 44SRCS+= xdr_mem.c 45 46.PATH: ${.CURDIR}/../../contrib/opensolaris/uts/common/zmod 47SRCS+= adler32.c 48SRCS+= crc32.c 49SRCS+= deflate.c 50SRCS+= inffast.c 51SRCS+= inflate.c 52SRCS+= inftrees.c 53SRCS+= trees.c 54SRCS+= zmod.c 55SRCS+= zmod_subr.c 56SRCS+= zutil.c 57 58.PATH: ${.CURDIR}/../../contrib/opensolaris/common/zfs 59.include "${.CURDIR}/../../contrib/opensolaris/uts/common/Makefile.files" 60.PATH: ${.CURDIR}/../../contrib/opensolaris/uts/common/fs/zfs 61ZFS_SRCS= ${ZFS_OBJS:C/.o$/.c/} 62SRCS+= ${ZFS_SRCS} 63SRCS+= vdev_geom.c 64 65# Use UMA for ZIO allocation. This is not stable. 66#CFLAGS+=-DZIO_USE_UMA 67 68# Use FreeBSD's namecache. 69CFLAGS+=-DFREEBSD_NAMECACHE 70 71CFLAGS+=-I${.CURDIR}/../../compat/opensolaris 72CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/uts/common/fs/zfs 73CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/uts/common/zmod 74CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/uts/common 75CFLAGS+=-I${.CURDIR}/../.. 76CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/common/zfs 77CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/common 78CFLAGS+=-I${.CURDIR}/../../../include 79 80#CFLAGS+=-DDEBUG=1 81#DEBUG_FLAGS=-g 82 83.include <bsd.kmod.mk> 84 85CWARNFLAGS+=-Wno-unknown-pragmas 86CWARNFLAGS+=-Wno-missing-prototypes 87CWARNFLAGS+=-Wno-undef 88CWARNFLAGS+=-Wno-strict-prototypes 89CWARNFLAGS+=-Wno-cast-qual 90CWARNFLAGS+=-Wno-parentheses 91CWARNFLAGS+=-Wno-redundant-decls 92CWARNFLAGS+=-Wno-missing-braces 93CWARNFLAGS+=-Wno-uninitialized 94CWARNFLAGS+=-Wno-unused 95CWARNFLAGS+=-Wno-inline 96CWARNFLAGS+=-Wno-switch 97CWARNFLAGS+=-Wno-pointer-arith 98