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