freebsd-nq/sys/modules/zfs/Makefile

100 lines
2.1 KiB
Makefile
Raw Normal View History

2007-04-06 01:35:16 +00:00
# $FreeBSD$
KMOD= zfs
SRCS= vnode_if.h
SUNW= ${.CURDIR}/../../cddl/contrib/opensolaris
.PATH: ${SUNW}/common/acl
2007-04-06 01:35:16 +00:00
SRCS+= acl_common.c
.PATH: ${SUNW}/common/avl
2007-04-06 01:35:16 +00:00
SRCS+= avl.c
.PATH: ${SUNW}/common/nvpair
2007-04-06 01:35:16 +00:00
SRCS+= nvpair.c
.PATH: ${.CURDIR}/../../cddl/compat/opensolaris/kern
2007-04-06 01:35:16 +00:00
SRCS+= opensolaris_kmem.c
SRCS+= opensolaris_kobj.c
SRCS+= opensolaris_kstat.c
SRCS+= opensolaris_misc.c
2007-04-06 01:35:16 +00:00
SRCS+= opensolaris_policy.c
SRCS+= opensolaris_string.c
SRCS+= opensolaris_vfs.c
SRCS+= opensolaris_zone.c
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64"
.PATH: ${SUNW}/common/atomic/${MACHINE_ARCH}
2007-04-06 01:35:16 +00:00
SRCS+= atomic.S
.else
.PATH: ${.CURDIR}/../../cddl/compat/opensolaris/kern
SRCS+= opensolaris_atomic.c
.endif
2007-04-06 01:35:16 +00:00
.PATH: ${SUNW}/uts/common/fs
2007-04-06 01:35:16 +00:00
SRCS+= gfs.c
.PATH: ${SUNW}/uts/common/os
2007-04-06 01:35:16 +00:00
SRCS+= callb.c
SRCS+= list.c
SRCS+= nvpair_alloc_system.c
SRCS+= taskq.c
.PATH: ${SUNW}/uts/common/rpc
2007-04-06 01:35:16 +00:00
SRCS+= xdr.c
SRCS+= xdr_array.c
SRCS+= xdr_mem.c
.PATH: ${SUNW}/uts/common/zmod
2007-04-06 01:35:16 +00:00
SRCS+= adler32.c
SRCS+= crc32.c
SRCS+= deflate.c
SRCS+= inffast.c
SRCS+= inflate.c
SRCS+= inftrees.c
SRCS+= trees.c
SRCS+= zmod.c
SRCS+= zmod_subr.c
SRCS+= zutil.c
.PATH: ${SUNW}/common/zfs
.include "${SUNW}/uts/common/Makefile.files"
.PATH: ${SUNW}/uts/common/fs/zfs
2007-04-06 01:35:16 +00:00
ZFS_SRCS= ${ZFS_OBJS:C/.o$/.c/}
SRCS+= ${ZFS_SRCS}
SRCS+= vdev_geom.c
# Use UMA for ZIO allocation. This is not stable.
#CFLAGS+=-DZIO_USE_UMA
# Use FreeBSD's namecache.
CFLAGS+=-DFREEBSD_NAMECACHE
CFLAGS+=-I${.CURDIR}/../../cddl/compat/opensolaris
CFLAGS+=-I${SUNW}/uts/common/fs/zfs
CFLAGS+=-I${SUNW}/uts/common/zmod
CFLAGS+=-I${SUNW}/uts/common
2007-04-06 01:35:16 +00:00
CFLAGS+=-I${.CURDIR}/../..
CFLAGS+=-I${SUNW}/common/zfs
CFLAGS+=-I${SUNW}/common
2007-04-06 01:35:16 +00:00
CFLAGS+=-I${.CURDIR}/../../../include
#CFLAGS+=-DDEBUG=1
#DEBUG_FLAGS=-g
.include <bsd.kmod.mk>
CWARNFLAGS+=-Wno-unknown-pragmas
CWARNFLAGS+=-Wno-missing-prototypes
CWARNFLAGS+=-Wno-undef
CWARNFLAGS+=-Wno-strict-prototypes
CWARNFLAGS+=-Wno-cast-qual
CWARNFLAGS+=-Wno-parentheses
CWARNFLAGS+=-Wno-redundant-decls
CWARNFLAGS+=-Wno-missing-braces
CWARNFLAGS+=-Wno-uninitialized
CWARNFLAGS+=-Wno-unused
CWARNFLAGS+=-Wno-inline
CWARNFLAGS+=-Wno-switch
CWARNFLAGS+=-Wno-pointer-arith