1SYSDIR?= ${SRCTOP}/sys 2 3.PATH: ${SYSDIR}/cddl/compat/opensolaris/kern 4.PATH: ${SYSDIR}/contrib/openzfs/module/os/freebsd/spl 5 6KMOD= opensolaris 7SRCS= vnode_if.h \ 8 opensolaris.c \ 9 opensolaris_proc.c \ 10 spl_cmn_err.c \ 11 spl_kmem.c \ 12 spl_misc.c \ 13 spl_sunddi.c 14 15_A=${SYSDIR}/cddl/contrib/opensolaris/common/atomic 16.if exists(${_A}/${MACHINE_CPUARCH}/opensolaris_atomic.S) 17.PATH: ${_A}/${MACHINE_CPUARCH} 18SRCS+= opensolaris_atomic.S 19.elif exists(${_A}/${MACHINE_ARCH}/opensolaris_atomic.S) 20.PATH: ${_A}/${MACHINE_ARCH} 21SRCS+= opensolaris_atomic.S 22.else 23SRCS+= opensolaris_atomic.c 24.endif 25 26CFLAGS+= ${OPENZFS_CFLAGS} 27 28EXPORT_SYMS= YES 29 30IGNORE_PRAGMA= 1 31 32.include <bsd.kmod.mk> 33 34CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h 35