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+= -DSKIP_SPL_SYS_CONDVAR_H 14CFLAGS+= -I${ZFSTOP}/include 15CFLAGS+= -I${ZFSTOP}/lib/libspl/include/ 16CFLAGS+= -I${ZFSTOP}/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 pthread 38 39.if ${MK_DTRACE_TESTS} != "no" 40SUBDIR+= tests 41.endif 42 43.include <bsd.prog.mk> 44