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 10 11CFLAGS+= -I${SYSDIR}/cddl/compat/opensolaris \ 12 -I${SYSDIR}/cddl/contrib/opensolaris/uts/common \ 13 -I${SYSDIR}/cddl/contrib/opensolaris/uts/common/dtrace \ 14 -I${SYSDIR} 15 16.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" 17CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/intel 18.PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/intel/dtrace 19.elif ${MACHINE_CPUARCH} == "powerpc" 20CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/powerpc 21.PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/powerpc/dtrace 22.endif 23 24.PATH: ${SYSDIR}/cddl/contrib/opensolaris/common/unicode 25SRCS+= u8_textprep.c 26 27.include <bsd.kmod.mk> 28 29CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h 30 31CWARNFLAGS+= -Wno-cast-qual 32CWARNFLAGS+= -Wno-unused 33