1d912066cSMark Johnston.include <src.opts.mk> 2d912066cSMark Johnston 3acc37ca1SEnji Cooper.PATH: ${SRCTOP}/cddl/contrib/opensolaris/cmd/dtrace 44ead756aSJohn Birrell 579ac3c12SEmmanuel VadotPACKAGE= dtrace 64ead756aSJohn BirrellPROG= dtrace 74ef20db2SUlrich SpörleinSRCS= dtrace.c 84ead756aSJohn BirrellBINDIR?= /usr/sbin 94ead756aSJohn Birrell 104ef20db2SUlrich SpörleinWARNS?= 1 114ead756aSJohn Birrell 129e5787d2SMatt MacyCFLAGS+= -DIN_BASE 139e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 149e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 159e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 169e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys 179e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 18acc37ca1SEnji CooperCFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris \ 19acc37ca1SEnji Cooper -I${SRCTOP}/cddl/compat/opensolaris/include \ 204ead756aSJohn Birrell -I${OPENSOLARIS_USR_DISTDIR}/head \ 214ead756aSJohn Birrell -I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \ 224ead756aSJohn Birrell -I${OPENSOLARIS_USR_DISTDIR}/lib/libproc/common \ 234ead756aSJohn Birrell -I${OPENSOLARIS_SYS_DISTDIR}/uts/common \ 244ead756aSJohn Birrell -I${OPENSOLARIS_SYS_DISTDIR}/compat 259e5787d2SMatt MacyCFLAGS+= -DHAVE_ISSETUGID 264ead756aSJohn Birrell 274ead756aSJohn Birrell# Optional debugging stuff... 284ead756aSJohn Birrell#CFLAGS+= -DNEED_ERRLOC 294ead756aSJohn Birrell#YFLAGS+= -d 304ead756aSJohn Birrell 316de02228SDomagoj Stolfa.if ${MK_DTRACE_ASAN} != "no" 326de02228SDomagoj StolfaCFLAGS+= -fsanitize=address -fsanitize=undefined 336de02228SDomagoj StolfaLDFLAGS+= -fsanitize=address -fsanitize=undefined 346de02228SDomagoj Stolfa.endif 356de02228SDomagoj Stolfa 36*93f27766SDomagoj StolfaLIBADD= dtrace ctf elf proc spl xo 374ead756aSJohn Birrell 38d912066cSMark Johnston.if ${MK_DTRACE_TESTS} != "no" 39d912066cSMark JohnstonSUBDIR+= tests 40d912066cSMark Johnston.endif 41d912066cSMark Johnston 424ead756aSJohn Birrell.include <bsd.prog.mk> 43