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" 17.PATH: ${.CURDIR}/../../../cddl/dev/dtrace/x86 18SRCS+= dis_tables.c \ 19 instr_size.c 20CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/intel \ 21 -I${.CURDIR}/../../../cddl/dev/dtrace/x86 22.endif 23 24SRCS+= bus_if.h device_if.h vnode_if.h 25 26# Needed for dtrace_asm.S 27SRCS+= assym.s 28 29# These are needed for assym.s 30SRCS+= opt_compat.h opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h 31 32#This is needed for dtrace.c 33SRCS += opensolaris_taskq.c 34 35.if ${MACHINE_CPUARCH} == "i386" 36SRCS+= opt_apic.h 37.endif 38 39CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \ 40 -I${.CURDIR}/../../../cddl/dev/dtrace \ 41 -I${.CURDIR}/../../../cddl/dev/dtrace/${ARCHDIR} \ 42 -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \ 43 -I${.CURDIR}/../../.. -DDIS_MEM 44 45CFLAGS+= -DSMP 46 47EXPORT_SYMS= dtrace_register \ 48 dtrace_unregister \ 49 dtrace_probe_lookup 50 51dtrace_asm.o: assym.s 52 53.include <bsd.kmod.mk> 54 55CFLAGS+= -include ${.CURDIR}/../../../cddl/compat/opensolaris/sys/debug_compat.h 56 57CWARNFLAGS+= -Wno-parentheses 58CWARNFLAGS+= -Wno-uninitialized 59CWARNFLAGS+= -Wno-cast-qual 60CWARNFLAGS+= -Wno-unused 61