Duplicate the logic used elsewhere to define LIBSTAND.

This commit is contained in:
marcel 2002-03-28 06:52:10 +00:00
parent a7bb84b1a2
commit 4131d9a132
2 changed files with 22 additions and 4 deletions

View File

@ -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} \

View File

@ -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} \