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