svn commit: r305033 - in head/lib/atf: libatf-c libatf-c++
Ngie Cooper
ngie at FreeBSD.org
Mon Aug 29 22:47:55 UTC 2016
Author: ngie
Date: Mon Aug 29 22:47:53 2016
New Revision: 305033
URL: https://svnweb.freebsd.org/changeset/base/305033
Log:
Minor Makefile simplifications for lib/atf/...
- Replace uses of `${.CURDIR:H:H:H}` with ${SRCTOP}
- Use built-in :H operator instead of ".." when enumerating paths.
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Modified:
head/lib/atf/libatf-c++/Makefile
head/lib/atf/libatf-c/Makefile
Modified: head/lib/atf/libatf-c++/Makefile
==============================================================================
--- head/lib/atf/libatf-c++/Makefile Mon Aug 29 22:47:14 2016 (r305032)
+++ head/lib/atf/libatf-c++/Makefile Mon Aug 29 22:47:53 2016 (r305033)
@@ -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
Modified: head/lib/atf/libatf-c/Makefile
==============================================================================
--- head/lib/atf/libatf-c/Makefile Mon Aug 29 22:47:14 2016 (r305032)
+++ head/lib/atf/libatf-c/Makefile Mon Aug 29 22:47:53 2016 (r305033)
@@ -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
More information about the svn-src-head
mailing list