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