1 2SYSDIR?= ${SRCTOP}/sys 3 4.PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/common/dtrace 5 6KMOD= fasttrap 7SRCS= fasttrap.c fasttrap_isa.c 8SRCS+= vnode_if.h opt_global.h 9 10CFLAGS+= -include ${.OBJDIR}/opt_global.h 11CFLAGS+= ${OPENZFS_CFLAGS} 12 13.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" 14CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/intel 15.PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/intel/dtrace 16.elif ${MACHINE_CPUARCH} == "powerpc" 17CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/powerpc 18.PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/powerpc/dtrace 19.endif 20 21.PATH: ${SYSDIR}/contrib/openzfs/module/unicode 22SRCS+= u8_textprep.c 23 24.include <bsd.kmod.mk> 25 26CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h 27 28CWARNFLAGS+= -Wno-cast-qual 29CWARNFLAGS+= -Wno-unused 30