1# $FreeBSD$ 2 3.include "${.CURDIR}/../../../sys/contrib/opensolaris/uts/common/Makefile.files" 4 5# ZFS_COMMON_SRCS 6.PATH: ${.CURDIR}/../../../sys/contrib/opensolaris/uts/common/fs/zfs 7# ZFS_SHARED_SRCS 8.PATH: ${.CURDIR}/../../../sys/contrib/opensolaris/common/zfs 9# KERNEL_SRCS 10.PATH: ${.CURDIR}/../../../contrib/opensolaris/lib/libzpool/common 11# LIST_SRCS 12.PATH: ${.CURDIR}/../../../sys/contrib/opensolaris/uts/common/os 13# ATOMIC_SRCS 14.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" 15.PATH: ${.CURDIR}/../../../sys/contrib/opensolaris/common/atomic/${MACHINE_ARCH} 16ATOMIC_SRCS= atomic.S 17.else 18.PATH: ${.CURDIR}/../../../sys/compat/opensolaris/kern 19ATOMIC_SRCS= opensolaris_atomic.c 20.endif 21 22LIB= zpool 23 24ZFS_COMMON_SRCS= ${ZFS_COMMON_OBJS:C/.o$/.c/} vdev_file.c 25ZFS_SHARED_SRCS= ${ZFS_SHARED_OBJS:C/.o$/.c/} 26KERNEL_SRCS= kernel.c taskq.c util.c 27LIST_SRCS= list.c 28 29SRCS= ${ZFS_COMMON_SRCS} ${ZFS_SHARED_SRCS} \ 30 ${KERNEL_SRCS} ${LIST_SRCS} ${ATOMIC_SRCS} 31 32CFLAGS+= -I${.CURDIR}/../../../sys/compat/opensolaris 33CFLAGS+= -I${.CURDIR}/../../../compat/opensolaris/include 34CFLAGS+= -I${.CURDIR}/../../../compat/opensolaris/lib/libumem 35CFLAGS+= -I${.CURDIR}/../../../contrib/opensolaris/lib/libzpool/common 36CFLAGS+= -I${.CURDIR}/../../../sys/contrib/opensolaris/uts/common/sys 37CFLAGS+= -I${.CURDIR}/../../../sys/contrib/opensolaris/uts/common/fs/zfs 38CFLAGS+= -I${.CURDIR}/../../../sys/contrib/opensolaris/common/zfs 39CFLAGS+= -I${.CURDIR}/../../../sys/contrib/opensolaris/uts/common 40CFLAGS+= -I${.CURDIR}/../../../contrib/opensolaris/head 41CFLAGS+= -I${.CURDIR}/../../../cddl/lib/libumem 42CFLAGS+= -I${.CURDIR}/../../../contrib/opensolaris/lib/libnvpair 43 44DPADD= ${LIBPTHREAD} ${LIBZ} 45LDADD= -lpthread -lz 46 47# atomic.S doesn't like profiling. 48NO_PROFILE= 49 50.include <bsd.lib.mk> 51