1.include <src.opts.mk> 2 3.PATH: ${SRCTOP}/cddl/contrib/opensolaris/cmd/plockstat 4 5PACKAGE= dtrace 6PROG= plockstat 7SRCS= plockstat.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 \ 25 -I${SRCTOP}/cddl/lib/libdtrace \ 26 -I${SRCTOP}/sys 27CFLAGS+= -DHAVE_ISSETUGID 28 29.if ${MK_DTRACE_ASAN} != "no" 30CFLAGS+= -fsanitize=address -fsanitize=undefined 31LDFLAGS+= -fsanitize=address -fsanitize=undefined 32.endif 33 34LIBADD= dtrace proc 35 36.include <bsd.prog.mk> 37