1.include <src.opts.mk> 2 3.PATH: ${SRCTOP}/cddl/contrib/opensolaris/cmd/lockstat 4 5PACKAGE= dtrace 6PROG= lockstat 7SRCS= lockstat.c sym.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 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}/sys 27CFLAGS+= -DHAVE_ISSETUGID 28 29.if ${MK_DTRACE_ASAN} != "no" 30CFLAGS+= -fsanitize=address -fsanitize=undefined 31LDFLAGS+= -fsanitize=address -fsanitize=undefined 32.endif 33 34CFLAGS+= -DNEED_ERRLOC -g 35 36#YFLAGS+= -d 37 38LIBADD= elf dtrace rt 39 40.include <bsd.prog.mk> 41