aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/atf/libatf-c++/Makefile6
-rw-r--r--lib/atf/libatf-c/Makefile2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/atf/libatf-c++/Makefile b/lib/atf/libatf-c++/Makefile
index 13f3fe441ffd..7325e324a945 100644
--- a/lib/atf/libatf-c++/Makefile
+++ b/lib/atf/libatf-c++/Makefile
@@ -35,15 +35,15 @@ SHLIB_MAJOR= 2
# libatf-c++ depends on the C version of the ATF library to build.
LIBADD+= atf_c
-LDFLAGS+= -L${.OBJDIR}/../libatf-c
+LDFLAGS+= -L${.OBJDIR:H}/libatf-c
-ATF= ${.CURDIR:H:H:H}/contrib/atf
+ATF= ${SRCTOP}/contrib/atf
.PATH: ${ATF}
.PATH: ${ATF}/atf-c++
.PATH: ${ATF}/atf-c++/detail
CFLAGS+= -I${ATF}
-CFLAGS+= -I${.CURDIR}/../libatf-c
+CFLAGS+= -I${.CURDIR:H}/libatf-c
CFLAGS+= -I.
CFLAGS+= -DHAVE_CONFIG_H
diff --git a/lib/atf/libatf-c/Makefile b/lib/atf/libatf-c/Makefile
index 0fbb4cad23b3..2476453749ec 100644
--- a/lib/atf/libatf-c/Makefile
+++ b/lib/atf/libatf-c/Makefile
@@ -36,7 +36,7 @@ LIB= atf-c
PRIVATELIB= true
SHLIB_MAJOR= 1
-ATF= ${.CURDIR:H:H:H}/contrib/atf
+ATF= ${SRCTOP}/contrib/atf
.PATH: ${ATF}
.PATH: ${ATF}/atf-c
.PATH: ${ATF}/atf-c/detail