1.include <src.opts.mk> 2 3.PATH: ${SRCTOP}/cddl/contrib/opensolaris/cmd/dtrace 4 5PACKAGE= dtrace 6PROG= dtrace 7SRCS= dtrace.c 8BINDIR?= /usr/sbin 9 10WARNS?= 1 11 12CFLAGS+= -DIN_BASE 13CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 14CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 15CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 16CFLAGS+= -I${SRCTOP}/sys 17CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 18CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris \ 19 -I${SRCTOP}/cddl/compat/opensolaris/include \ 20 -I${OPENSOLARIS_USR_DISTDIR}/head \ 21 -I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \ 22 -I${OPENSOLARIS_USR_DISTDIR}/lib/libproc/common \ 23 -I${OPENSOLARIS_SYS_DISTDIR}/uts/common \ 24 -I${OPENSOLARIS_SYS_DISTDIR}/compat 25CFLAGS+= -DHAVE_ISSETUGID 26 27# Optional debugging stuff... 28#CFLAGS+= -DNEED_ERRLOC 29#YFLAGS+= -d 30 31.if ${MK_DTRACE_ASAN} != "no" 32CFLAGS+= -fsanitize=address -fsanitize=undefined 33LDFLAGS+= -fsanitize=address -fsanitize=undefined 34.endif 35 36LIBADD= dtrace ctf elf proc spl xo 37 38.if ${MK_DTRACE_TESTS} != "no" 39SUBDIR+= tests 40.endif 41 42.include <bsd.prog.mk> 43