Standardize on SRCTOP instead of .CURDIR-relative paths

MFC after:	3 days
This commit is contained in:
Enji Cooper 2017-08-01 05:23:49 +00:00
parent 88abac8f06
commit 405873f16d

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
.PATH: ${.CURDIR}/../../../sys/boot/zfs ${.CURDIR}/../../../sys/cddl/boot/zfs .PATH: ${SRCTOP}/sys/boot/zfs ${SRCTOP}/sys/cddl/boot/zfs
BINDIR?= /usr/bin BINDIR?= /usr/bin
SCRIPTSDIR?= /usr/bin SCRIPTSDIR?= /usr/bin
@ -11,8 +11,8 @@ SCRIPTSNAME= zfsboottest.sh
MAN= MAN=
CFLAGS= -O1 \ CFLAGS= -O1 \
-I${.CURDIR}/../../../sys/boot/zfs \ -I${SRCTOP}/sys/boot/zfs \
-I${.CURDIR}/../../../sys/cddl/boot/zfs \ -I${SRCTOP}/sys/cddl/boot/zfs \
-I. \ -I. \
-fdiagnostics-show-option \ -fdiagnostics-show-option \
-W -Wextra -Wno-sign-compare -Wno-unused-parameter -W -Wextra -Wno-sign-compare -Wno-unused-parameter
@ -23,7 +23,7 @@ LIBADD+= md
beforedepend zfsboottest.o: machine beforedepend zfsboottest.o: machine
CLEANFILES+= machine CLEANFILES+= machine
machine: machine:
ln -sf ${.CURDIR}/../../../sys/i386/include machine ln -sf ${SRCTOP}/sys/i386/include machine
.endif .endif
.include <bsd.prog.mk> .include <bsd.prog.mk>