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