1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/cmd/dtrace 6 7PROG= dtrace 8SRCS= dtrace.c 9BINDIR?= /usr/sbin 10 11WARNS?= 1 12 13CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris \ 14 -I${.CURDIR}/../../../cddl/compat/opensolaris/include \ 15 -I${OPENSOLARIS_USR_DISTDIR}/head \ 16 -I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \ 17 -I${OPENSOLARIS_USR_DISTDIR}/lib/libproc/common \ 18 -I${OPENSOLARIS_SYS_DISTDIR}/uts/common \ 19 -I${OPENSOLARIS_SYS_DISTDIR}/compat 20 21# Optional debugging stuff... 22#CFLAGS+= -DNEED_ERRLOC 23#YFLAGS+= -d 24 25LIBADD= dtrace ctf elf proc 26 27.if ${MK_DTRACE_TESTS} != "no" 28SUBDIR+= tests 29.endif 30 31.include <bsd.prog.mk> 32