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