1# $FreeBSD$ 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 29CFLAGS+= -DNEED_ERRLOC -g 30 31#YFLAGS+= -d 32 33LIBADD= elf dtrace rt 34 35.include <bsd.prog.mk> 36