1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5.PATH: ${SRCTOP}/cddl/contrib/opensolaris/cmd/lockstat 6 7PACKAGE= dtrace 8PROG= lockstat 9SRCS= lockstat.c sym.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 21CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris \ 22 -I${SRCTOP}/cddl/compat/opensolaris/include \ 23 -I${OPENSOLARIS_USR_DISTDIR}/head \ 24 -I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \ 25 -I${OPENSOLARIS_USR_DISTDIR}/lib/libproc/common \ 26 -I${OPENSOLARIS_SYS_DISTDIR}/uts/common \ 27 -I${OPENSOLARIS_SYS_DISTDIR}/compat \ 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 36CFLAGS+= -DNEED_ERRLOC -g 37 38#YFLAGS+= -d 39 40LIBADD= elf dtrace rt 41 42.include <bsd.prog.mk> 43