aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/ia64
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2002-03-28 06:52:10 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2002-03-28 06:52:10 +0000
commitb0d9287123f6c2bf88ba0c15ef1d1fd88356f7f2 (patch)
tree936fc199c3fa623254715d031311c9e542ac8d27 /sys/boot/ia64
parent9ef2b1f2b97beea7a1a0f987a656a50bb39a9633 (diff)
Notes
Diffstat (limited to 'sys/boot/ia64')
-rw-r--r--sys/boot/ia64/ski/Makefile13
-rw-r--r--sys/boot/ia64/skiload/Makefile13
2 files changed, 22 insertions, 4 deletions
diff --git a/sys/boot/ia64/ski/Makefile b/sys/boot/ia64/ski/Makefile
index 71447baad777..4776228af6d3 100644
--- a/sys/boot/ia64/ski/Makefile
+++ b/sys/boot/ia64/ski/Makefile
@@ -23,7 +23,16 @@ LIBFICL= ${.CURDIR}/../../ficl/libficl.a
LIBFICL=
.endif
-LIBSTAND= -lstand
+# where to get libstand from
+#XXX need a better way to do this
+LIBSTAND= ${.CURDIR}/../../../../lib/libstand/libstand.a
+.if !exists(${LIBSTAND})
+LIBSTAND= ${.OBJDIR}/../../../../lib/libstand/libstand.a
+.if !exists(${LIBSTAND})
+LIBSTAND= -lstand
+.endif
+.endif
+
.if exists(${.OBJDIR}/../libski/libski.a)
LIBSKI= ${.OBJDIR}/../libski/libski.a
.else
@@ -75,7 +84,7 @@ start.o: ${.CURDIR}/../libefi/arch/${MACHINE_ARCH}/start.S
machine:
ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
-${PROG}: ${OBJS} ${LIBFICL} ${LIBSTAND} ${LIBSKI} vers.o
+${PROG}: ${OBJS} ${LIBFICL} ${LIBSKI} vers.o
${LD} ${LDFLAGS} -o ${PROG} -M \
${OBJS} vers.o \
${LIBFICL} ${LIBSTAND} ${LIBSKI} ${LIBSTAND} \
diff --git a/sys/boot/ia64/skiload/Makefile b/sys/boot/ia64/skiload/Makefile
index 71447baad777..4776228af6d3 100644
--- a/sys/boot/ia64/skiload/Makefile
+++ b/sys/boot/ia64/skiload/Makefile
@@ -23,7 +23,16 @@ LIBFICL= ${.CURDIR}/../../ficl/libficl.a
LIBFICL=
.endif
-LIBSTAND= -lstand
+# where to get libstand from
+#XXX need a better way to do this
+LIBSTAND= ${.CURDIR}/../../../../lib/libstand/libstand.a
+.if !exists(${LIBSTAND})
+LIBSTAND= ${.OBJDIR}/../../../../lib/libstand/libstand.a
+.if !exists(${LIBSTAND})
+LIBSTAND= -lstand
+.endif
+.endif
+
.if exists(${.OBJDIR}/../libski/libski.a)
LIBSKI= ${.OBJDIR}/../libski/libski.a
.else
@@ -75,7 +84,7 @@ start.o: ${.CURDIR}/../libefi/arch/${MACHINE_ARCH}/start.S
machine:
ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
-${PROG}: ${OBJS} ${LIBFICL} ${LIBSTAND} ${LIBSKI} vers.o
+${PROG}: ${OBJS} ${LIBFICL} ${LIBSKI} vers.o
${LD} ${LDFLAGS} -o ${PROG} -M \
${OBJS} vers.o \
${LIBFICL} ${LIBSTAND} ${LIBSKI} ${LIBSTAND} \