1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/cmd/lockstat 4 5PROG= lockstat 6NO_MAN= 7SRCS= lockstat.c sym.c 8BINDIR?= /usr/sbin 9 10WARNS?= 1 11 12CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris \ 13 -I${.CURDIR}/../../../cddl/compat/opensolaris/include \ 14 -I${OPENSOLARIS_USR_DISTDIR}/head \ 15 -I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \ 16 -I${OPENSOLARIS_USR_DISTDIR}/lib/libproc/common \ 17 -I${OPENSOLARIS_SYS_DISTDIR}/uts/common \ 18 -I${OPENSOLARIS_SYS_DISTDIR}/compat \ 19 -I${.CURDIR}/../../../sys 20 21CFLAGS+= -DNEED_ERRLOC -g 22 23#YFLAGS+= -d 24 25DPADD= ${LIBPTHREAD} ${LIBDTRACE} ${LIBY} ${LIBL} ${LIBPROC} \ 26 ${LIBCTF} ${LIBELF} ${LIBZ} ${LIBRT} ${LIBUTIL} \ 27 ${LIBRTLD_DB} 28LDADD= -lpthread -ldtrace -ly -ll -lproc -lctf -lelf -lz -lrt -lutil \ 29 -lrtld_db 30 31.include <bsd.prog.mk> 32