aboutsummaryrefslogtreecommitdiff
path: root/cddl/usr.sbin/plockstat/Makefile
diff options
context:
space:
mode:
authorRui Paulo <rpaulo@FreeBSD.org>2010-08-21 13:54:33 +0000
committerRui Paulo <rpaulo@FreeBSD.org>2010-08-21 13:54:33 +0000
commit6544c9194119a741f3ea75ad3d9d4c4609f01974 (patch)
treeadf9ae3842b9569e11c85025f5123cb2f20efde7 /cddl/usr.sbin/plockstat/Makefile
parent513bdf9ac019c983b2bb0352b867d811f5d28a6e (diff)
downloadsrc-6544c9194119a741f3ea75ad3d9d4c4609f01974.tar.gz
src-6544c9194119a741f3ea75ad3d9d4c4609f01974.zip
Port plockstat to FreeBSD. This will be connected to the build later.
Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=211562
Diffstat (limited to 'cddl/usr.sbin/plockstat/Makefile')
-rw-r--r--cddl/usr.sbin/plockstat/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/cddl/usr.sbin/plockstat/Makefile b/cddl/usr.sbin/plockstat/Makefile
new file mode 100644
index 000000000000..20683115a431
--- /dev/null
+++ b/cddl/usr.sbin/plockstat/Makefile
@@ -0,0 +1,27 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/cmd/plockstat
+
+PROG= plockstat
+NO_MAN=
+SRCS= plockstat.c
+BINDIR?= /usr/sbin
+
+WARNS?= 1
+
+CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris \
+ -I${.CURDIR}/../../../cddl/compat/opensolaris/include \
+ -I${OPENSOLARIS_USR_DISTDIR}/head \
+ -I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \
+ -I${OPENSOLARIS_USR_DISTDIR}/lib/libproc/common \
+ -I${OPENSOLARIS_SYS_DISTDIR}/uts/common \
+ -I${OPENSOLARIS_SYS_DISTDIR}/compat \
+ -I${.CURDIR}/../../../cddl/lib/libdtrace \
+ -I${.CURDIR}/../../../sys
+
+DPADD= ${LIBPTHREAD} ${LIBDTRACE} ${LIBY} ${LIBL} ${LIBPROC} ${LIBCTF}\
+ ${LIBELF} ${LIBZ} ${LIBRT} ${LIBRTLD_DB} ${LIBUTIL}
+LDADD= -lpthread -ldtrace -ly -ll -lproc -lctf -lelf -lz -lrt \
+ -lrtld_db -lutil
+
+.include <bsd.prog.mk>