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