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