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