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