summaryrefslogtreecommitdiffstats
path: root/sys/boot/ia64/ski
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-09-26 00:13:08 +0000
committerpeter <peter@FreeBSD.org>2001-09-26 00:13:08 +0000
commit5147ce6799665c52646a8dbb19d80df7fb76a3b5 (patch)
tree67c0b621685422132582f17edc21d43410d92990 /sys/boot/ia64/ski
parent66b4873f6403121b593e63940bb1f1f46ce97cb1 (diff)
downloadFreeBSD-src-5147ce6799665c52646a8dbb19d80df7fb76a3b5.zip
FreeBSD-src-5147ce6799665c52646a8dbb19d80df7fb76a3b5.tar.gz
Make this 'make obj' safe
Diffstat (limited to 'sys/boot/ia64/ski')
-rw-r--r--sys/boot/ia64/ski/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/boot/ia64/ski/Makefile b/sys/boot/ia64/ski/Makefile
index d3e6cf3..1ba911d 100644
--- a/sys/boot/ia64/ski/Makefile
+++ b/sys/boot/ia64/ski/Makefile
@@ -24,7 +24,11 @@ LIBFICL=
.endif
LIBSTAND= -lstand
+.if exists(${.OBJDIR}/../libski/libski.a)
+LIBSKI= ${.OBJDIR}/../libski/libski.a
+.else
LIBSKI= ${.CURDIR}/../libski/libski.a
+.endif
# Always add MI sources
.PATH: ${.CURDIR}/../../common
@@ -38,7 +42,7 @@ CFLAGS+= -I${.CURDIR}/../../.. -I.
CFLAGS+= -I${.CURDIR}/../libski
CFLAGS+= -DLOADER
-LDFLAGS= -nostdlib -T ldscript.ia64
+LDFLAGS= -nostdlib -T ${.CURDIR}/ldscript.ia64
CLEANFILES+= vers.c vers.o ${PROG}.list
CLEANFILES+= loader.help
OpenPOWER on IntegriCloud