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