aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/libstand32
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-10-09 22:12:32 +0000
committerWarner Losh <imp@FreeBSD.org>2017-10-09 22:12:32 +0000
commiteca8b9c449d522adf5c683b7fd09e562daa53161 (patch)
tree469b3ddd4451f575f1ab72fb7781cd5c3d50826c /sys/boot/libstand32
parent6a971c173266ad15410557184195ea1bd681ab20 (diff)
Define SASRC and use it
Define SASRC to point to the current libstand sources. Include ../Makefile.inc early enough in a few places so we can .include "${SASRC}/Makefile" and have it work. Create a new pass-up Makefile.inc in sys/boot/userboot to allow this pattern to work. Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=324450
Diffstat (limited to 'sys/boot/libstand32')
-rw-r--r--sys/boot/libstand32/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/boot/libstand32/Makefile b/sys/boot/libstand32/Makefile
index 6dbf1f420910..ace4189ee29b 100644
--- a/sys/boot/libstand32/Makefile
+++ b/sys/boot/libstand32/Makefile
@@ -2,23 +2,25 @@
.include <src.opts.mk>
-LIBSTAND_SRC= ${.CURDIR}/../../../lib/libstand
+.include "../Makefile.inc"
+
.if ${MACHINE_CPUARCH} == "amd64"
LIBSTAND_CPUARCH=i386
.else
LIBSTAND_CPUARCH=${MACHINE_CPUARCH}
.endif
-LIBC_SRC= ${LIBSTAND_SRC}/../libc
+LIBSTAND_SRC= ${SASRC}
+LIBC_SRC= ${SRCTOP}/lib/libc
INTERNALLIB=
INCS=
MAN=
-.PATH: ${LIBSTAND_SRC}
+.PATH: ${SASRC}
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "powerpc64"
CFLAGS+= -m32 -I.
.endif
-.include "${LIBSTAND_SRC}/Makefile"
+.include "${SASRC}/Makefile"
.if ${MACHINE_CPUARCH} == "amd64"
CLEANFILES+= machine