1# $FreeBSD$ 2 3ARCHDIR= ${MACHINE_CPUARCH} 4 5.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common/dtrace 6.PATH: ${.CURDIR}/../../../cddl/kern 7.PATH: ${.CURDIR}/../../../cddl/dev/dtrace 8.PATH: ${.CURDIR}/../../../cddl/dev/dtrace/${ARCHDIR} 9 10KMOD= dtrace 11SRCS= dtrace.c \ 12 dtrace_asm.S \ 13 dtrace_subr.c 14 15.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" 16SRCS+= dis_tables.c \ 17 instr_size.c 18CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/intel 19.endif 20 21SRCS+= bus_if.h device_if.h vnode_if.h 22 23# Needed for dtrace_asm.S 24SRCS+= assym.s 25 26# These are needed for assym.s 27SRCS+= opt_compat.h opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h 28 29.if ${MACHINE_CPUARCH} == "i386" 30SRCS+= opt_apic.h 31.endif 32 33CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \ 34 -I${.CURDIR}/../../../cddl/dev/dtrace \ 35 -I${.CURDIR}/../../../cddl/dev/dtrace/${ARCHDIR} \ 36 -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \ 37 -I${.CURDIR}/../../.. -DDIS_MEM 38 39CFLAGS+= -DSMP -DDEBUG 40 41EXPORT_SYMS= dtrace_register \ 42 dtrace_unregister \ 43 dtrace_probe_lookup 44 45.include <bsd.kmod.mk> 46