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