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 71CWARNFLAGS=-Wall 72CWARNFLAGS+=-Wno-unknown-pragmas 73CWARNFLAGS+=-Wno-missing-braces 74CWARNFLAGS+=-Wno-parentheses 75CWARNFLAGS+=-Wno-uninitialized 76CWARNFLAGS+=-Wno-unused 77CWARNFLAGS+=-Wno-switch 78 79CFLAGS+=-I${.CURDIR}/../../compat/opensolaris 80CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/uts/common/fs/zfs 81CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/uts/common/zmod 82CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/uts/common 83CFLAGS+=-I${.CURDIR}/../.. 84CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/common/zfs 85CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/common 86CFLAGS+=-I${.CURDIR}/../../../include 87 88WARNS?=1 89 90#CFLAGS+=-DDEBUG=1 91#DEBUG_FLAGS=-g 92 93.include <bsd.kmod.mk> 94