1# $FreeBSD$ 2 3KMOD= zfs 4 5SRCS= bus_if.h device_if.h 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 15SRCS+= nvpair_alloc_fixed.c 16.PATH: ${.CURDIR}/../../cddl/contrib/opensolaris/common/unicode 17SRCS+= u8_textprep.c 18 19.PATH: ${.CURDIR}/../../cddl/compat/opensolaris/kern 20SRCS+= opensolaris_acl.c 21SRCS+= opensolaris_kobj.c 22SRCS+= opensolaris_kstat.c 23SRCS+= opensolaris_lookup.c 24SRCS+= opensolaris_policy.c 25SRCS+= opensolaris_string.c 26SRCS+= opensolaris_sysevent.c 27SRCS+= opensolaris_taskq.c 28SRCS+= opensolaris_uio.c 29SRCS+= opensolaris_vfs.c 30SRCS+= opensolaris_zone.c 31 32_A=${.CURDIR}/../../cddl/contrib/opensolaris/common/atomic 33.if exists(${_A}/${MACHINE_CPUARCH}/opensolaris_atomic.S) 34.PATH: ${_A}/${MACHINE_CPUARCH} 35SRCS+= opensolaris_atomic.S 36.elif exists(${_A}/${MACHINE_ARCH}/opensolaris_atomic.S) 37.PATH: ${_A}/${MACHINE_ARCH} 38SRCS+= opensolaris_atomic.S 39.else 40SRCS+= opensolaris_atomic.c 41.endif 42 43.PATH: ${SUNW}/uts/common/fs 44SRCS+= gfs.c 45SRCS+= vnode.c 46 47.PATH: ${SUNW}/uts/common/os 48SRCS+= callb.c 49SRCS+= fm.c 50SRCS+= list.c 51SRCS+= nvpair_alloc_system.c 52 53.PATH: ${SUNW}/uts/common/zmod 54SRCS+= adler32.c 55SRCS+= opensolaris_crc32.c 56SRCS+= deflate.c 57SRCS+= inffast.c 58SRCS+= inflate.c 59SRCS+= inftrees.c 60SRCS+= trees.c 61SRCS+= zmod.c 62SRCS+= zmod_subr.c 63SRCS+= zutil.c 64 65.PATH: ${.CURDIR}/../../crypto/sha2 66SRCS+= sha2.c 67 68.PATH: ${SUNW}/common/zfs 69.include "${SUNW}/uts/common/Makefile.files" 70.PATH: ${SUNW}/uts/common/fs/zfs 71ZFS_SRCS= ${ZFS_OBJS:C/.o$/.c/} 72SRCS+= ${ZFS_SRCS} 73SRCS+= vdev_geom.c 74 75# Use FreeBSD's namecache. 76CFLAGS+=-DFREEBSD_NAMECACHE 77 78CFLAGS+=-I${.CURDIR}/../../cddl/compat/opensolaris 79CFLAGS+=-I${SUNW}/uts/common/fs/zfs 80CFLAGS+=-I${SUNW}/uts/common/zmod 81CFLAGS+=-I${SUNW}/uts/common 82CFLAGS+=-I${.CURDIR}/../.. 83CFLAGS+=-I${SUNW}/common/zfs 84CFLAGS+=-I${SUNW}/common 85CFLAGS+=-I${.CURDIR}/../../../include 86CFLAGS+=-DBUILDING_ZFS 87 88.if ${TARGET_ARCH} == "powerpc64" 89CFLAGS+=-mminimal-toc 90.endif 91 92#CFLAGS+=-DDEBUG=1 93#DEBUG_FLAGS=-g 94 95.include <bsd.kmod.mk> 96 97CWARNFLAGS+=-Wno-unknown-pragmas 98CWARNFLAGS+=-Wno-missing-prototypes 99CWARNFLAGS+=-Wno-undef 100CWARNFLAGS+=-Wno-strict-prototypes 101CWARNFLAGS+=-Wno-cast-qual 102CWARNFLAGS+=-Wno-parentheses 103CWARNFLAGS+=-Wno-redundant-decls 104CWARNFLAGS+=-Wno-missing-braces 105CWARNFLAGS+=-Wno-uninitialized 106CWARNFLAGS+=-Wno-unused 107CWARNFLAGS+=-Wno-inline 108CWARNFLAGS+=-Wno-switch 109CWARNFLAGS+=-Wno-pointer-arith 110