diff options
author | peter <peter@FreeBSD.org> | 2002-04-06 04:33:53 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-04-06 04:33:53 +0000 |
commit | cddc57f17164cdadac4b4c9bdf0c624b05d96bf2 (patch) | |
tree | 905a1a6e6ef20215539f33df45ec8d6aa56ef73c /sys/boot/ia64/skiload | |
parent | 8eb1fab9daacb4dfd928651273bee3b45bb04755 (diff) | |
download | FreeBSD-src-cddc57f17164cdadac4b4c9bdf0c624b05d96bf2.zip FreeBSD-src-cddc57f17164cdadac4b4c9bdf0c624b05d96bf2.tar.gz |
Make it a bit closer to the EFI build and tie up some loose ends.
Diffstat (limited to 'sys/boot/ia64/skiload')
-rw-r--r-- | sys/boot/ia64/skiload/Makefile | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/sys/boot/ia64/skiload/Makefile b/sys/boot/ia64/skiload/Makefile index 71a2263..d340c2e 100644 --- a/sys/boot/ia64/skiload/Makefile +++ b/sys/boot/ia64/skiload/Makefile @@ -24,13 +24,10 @@ LIBFICL= .endif # where to get libstand from -#XXX need a better way to do this -LIBSTAND= ${.CURDIR}/../../../../lib/libstand/libstand.a -.if !exists(${LIBSTAND}) +.if exists(${.OBJDIR}/../../../../lib/libstand/libstand.a) LIBSTAND= ${.OBJDIR}/../../../../lib/libstand/libstand.a -.if !exists(${LIBSTAND}) -LIBSTAND= -lstand -.endif +.else +LIBSTAND= ${.CURDIR}/../../../../lib/libstand/libstand.a .endif .if exists(${.OBJDIR}/../libski/libski.a) @@ -50,7 +47,6 @@ CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR} CFLAGS+= -I${.CURDIR}/../../.. -I. CFLAGS+= -I${.CURDIR}/../libski CFLAGS+= -DLOADER -CFLAGS+= -ffreestanding LDFLAGS= -nostdlib -T ${.CURDIR}/ldscript.ia64 @@ -74,14 +70,10 @@ beforeinstall: ${.OBJDIR}/${PROG}.help ${DESTDIR}/boot .endif -# Other fragments still to be brought in from ../Makfile.booters? -start.o: ${.CURDIR}/../libefi/arch/${MACHINE_ARCH}/start.S - ${CC} -c ${CFLAGS} ${.IMPSRC} - machine: ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine -${PROG}: ${OBJS} ${LIBFICL} ${LIBSKI} vers.o +${PROG}: ${OBJS} ${LIBFICL} ${LIBSKI} ${LIBSTAND} vers.o ${LD} ${LDFLAGS} -o ${PROG} -M \ ${OBJS} vers.o \ ${LIBFICL} ${LIBSTAND} ${LIBSKI} ${LIBSTAND} \ |