aboutsummaryrefslogtreecommitdiff
path: root/cddl/usr.sbin/lockstat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cddl/usr.sbin/lockstat/Makefile')
-rw-r--r--cddl/usr.sbin/lockstat/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/cddl/usr.sbin/lockstat/Makefile b/cddl/usr.sbin/lockstat/Makefile
index a4eb898e33de..3ffcc7049f35 100644
--- a/cddl/usr.sbin/lockstat/Makefile
+++ b/cddl/usr.sbin/lockstat/Makefile
@@ -1,6 +1,6 @@
# $FreeBSD$
-.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/cmd/lockstat
+.PATH: ${SRCTOP}/cddl/contrib/opensolaris/cmd/lockstat
PROG= lockstat
SRCS= lockstat.c sym.c
@@ -8,14 +8,14 @@ BINDIR?= /usr/sbin
WARNS?= 1
-CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris \
- -I${.CURDIR}/../../../cddl/compat/opensolaris/include \
+CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris \
+ -I${SRCTOP}/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}/../../../sys
+ -I${SRCTOP}/sys
CFLAGS+= -DNEED_ERRLOC -g