1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common/dtrace 4 5KMOD= fasttrap 6SRCS= fasttrap.c fasttrap_isa.c opt_compat.h 7SRCS+= vnode_if.h 8 9CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \ 10 -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \ 11 -I${.CURDIR}/../../.. 12 13.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" 14CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/intel 15.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/uts/intel/dtrace 16.elif ${MACHINE_CPUARCH} == "powerpc" 17CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/powerpc 18.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/uts/powerpc/dtrace 19.endif 20 21CFLAGS+= -DSMP 22 23.include <bsd.kmod.mk> 24 25CFLAGS+= -include ${.CURDIR}/../../../cddl/compat/opensolaris/sys/debug_compat.h 26CWARNFLAGS+= -Wno-unused 27