summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-04-21 12:58:29 +0000
committeremaste <emaste@FreeBSD.org>2016-04-21 12:58:29 +0000
commit55c6dd387976111bbcfd088fe769dafa767021bc (patch)
tree0063aee2166157b20b3d10fff6c319161a3b1619 /lib
parent39859f6ff983fcd0a0c2857cee891566c7b63baf (diff)
downloadFreeBSD-src-55c6dd387976111bbcfd088fe769dafa767021bc.zip
FreeBSD-src-55c6dd387976111bbcfd088fe769dafa767021bc.tar.gz
elftoolchain: Use ${SRCTOP} for the top of the FreeBSD tree
It's provided by sys.mk so there's no need to derive it from ${.CURDIR}. Suggested by: ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5998
Diffstat (limited to 'lib')
-rw-r--r--lib/libdwarf/Makefile6
-rw-r--r--lib/libelf/Makefile6
-rw-r--r--lib/libelftc/Makefile2
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/libdwarf/Makefile b/lib/libdwarf/Makefile
index e23cb1f..e2bb5a5 100644
--- a/lib/libdwarf/Makefile
+++ b/lib/libdwarf/Makefile
@@ -2,8 +2,8 @@
.include <bsd.own.mk>
PACKAGE=lib${LIB}
-TOP= ${.CURDIR:H:H}/contrib/elftoolchain
-SRCDIR= ${TOP}/libdwarf
+ELFTCDIR=${SRCTOP}/contrib/elftoolchain
+SRCDIR= ${ELFTCDIR}/libdwarf
.PATH: ${SRCDIR}
@@ -92,7 +92,7 @@ GENSRCS= dwarf_pubnames.c dwarf_pubtypes.c dwarf_weaks.c \
dwarf_pro_vars.c
CLEANFILES= ${GENSRCS}
CLEANDIRS= sys
-CFLAGS+= -I. -I${SRCDIR} -I${TOP}/common -I${TOP}/libelf
+CFLAGS+= -I. -I${SRCDIR} -I${ELFTCDIR}/common -I${ELFTCDIR}/libelf
sys/elf32.h sys/elf64.h sys/elf_common.h: ${.CURDIR}/../../sys/${.TARGET} .NOMETA
mkdir -p ${.OBJDIR}/sys
diff --git a/lib/libelf/Makefile b/lib/libelf/Makefile
index fc956bf..55ce30b 100644
--- a/lib/libelf/Makefile
+++ b/lib/libelf/Makefile
@@ -5,8 +5,8 @@ SHLIBDIR?= /lib
.include <bsd.own.mk>
-TOP= ${.CURDIR:H:H}/contrib/elftoolchain
-SRCDIR= ${TOP}/libelf
+ELFTCDIR=${SRCTOP}/contrib/elftoolchain
+SRCDIR= ${ELFTCDIR}/libelf
.PATH: ${SRCDIR}
@@ -80,7 +80,7 @@ SRCS+= sys/elf32.h sys/elf64.h sys/elf_common.h
GENSRCS= libelf_fsize.c libelf_msize.c libelf_convert.c
CLEANFILES= ${GENSRCS}
CLEANDIRS= sys
-CFLAGS+= -I. -I${SRCDIR} -I${TOP}/common
+CFLAGS+= -I. -I${SRCDIR} -I${ELFTCDIR}/common
sys/elf32.h sys/elf64.h sys/elf_common.h: ${.CURDIR}/../../sys/${.TARGET} .NOMETA
mkdir -p ${.OBJDIR}/sys
diff --git a/lib/libelftc/Makefile b/lib/libelftc/Makefile
index 7a4203d..b688d2e 100644
--- a/lib/libelftc/Makefile
+++ b/lib/libelftc/Makefile
@@ -4,7 +4,7 @@
PACKAGE=lib${LIB}
INTERNALLIB=
-ELFTCDIR= ${.CURDIR:H:H}/contrib/elftoolchain
+ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
.PATH: ${ELFTCDIR}/libelftc
OpenPOWER on IntegriCloud