summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/stand/sboot
diff options
context:
space:
mode:
authorgvf <gvf@cvs.openbsd.org>1997-04-22 16:13:45 +0000
committergvf <gvf@cvs.openbsd.org>1997-04-22 16:13:45 +0000
commitc63fa9deb9fc036204693490aa76ad7c3ab3544e (patch)
treef6e7977c00a4b96834b95d496bd683dcbf4b07b6 /sys/arch/mvme68k/stand/sboot
parentc7551148578b8fc01810a4d1a385fe8881f522fa (diff)
Add libz and tick version # to reflect change.
Diffstat (limited to 'sys/arch/mvme68k/stand/sboot')
-rw-r--r--sys/arch/mvme68k/stand/sboot/Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/arch/mvme68k/stand/sboot/Makefile b/sys/arch/mvme68k/stand/sboot/Makefile
index 4223720cac3..48bf0b26df7 100644
--- a/sys/arch/mvme68k/stand/sboot/Makefile
+++ b/sys/arch/mvme68k/stand/sboot/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 1996/05/16 02:35:43 chuck Exp $
+# $OpenBSD: Makefile,v 1.5 1997/04/22 16:13:44 gvf Exp $
S= ${.CURDIR}/../../../..
INCL?= -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}
@@ -6,24 +6,27 @@ COPTS?= ${DEFS} ${INCL}
.include "${S}/arch/${MACHINE}/stand/libbug/Makefile.inc"
.include "${S}/arch/${MACHINE}/stand/libsa/Makefile.inc"
+.include "${S}/arch/${MACHINE}/stand/libz/Makefile.inc"
SRCS= sboot.c clock.c etherfun.c if_le.c
OBJS= ${SRCS:S/.c/.o/g}
+LIBS= ${LIBSA} ${LIBBUG} ${LIBZ}
+LDFLAGS= -N -s -static
CLEANFILES+=XBUG.o XSRT0.o oc_cksum.o sboot.tmp rboot.tmp srec sboot rboot
MDEC_DIR?=/usr/mdec
all: sboot rboot
-sboot.tmp: XSRT0.o oc_cksum.o ${OBJS} ${LIBSA} ${LIBBUG}
- ld -N -s -static -T 0x4000 XSRT0.o ${OBJS} oc_cksum.o -o sboot.tmp ${LIBSA} ${LIBBUG}
+sboot.tmp: XSRT0.o oc_cksum.o ${OBJS} ${LIBS}
+ ${LD} ${LDFLAGS} -T 0x4000 XSRT0.o ${OBJS} oc_cksum.o -o $@ ${LIBS}
-rboot.tmp: XBUG.o XSRT0.o oc_cksum.o ${OBJS} ${LIBSA} ${LIBBUG}
- ld -N -s -static -Ttext 0xffa00000 -Tdata 0x4000 XBUG.o XSRT0.o \
- ${OBJS} oc_cksum.o -o rboot.tmp ${LIBSA} ${LIBBUG}
+rboot.tmp: XBUG.o XSRT0.o oc_cksum.o ${OBJS} ${LIBS}
+ ${LD} ${LDFLAGS} -T 0xffa00000 -Tdata 0x4000 XBUG.o XSRT0.o \
+ ${OBJS} oc_cksum.o -o $@ ${LIBS}
srec: srec.c
- ${CC} ${.CURDIR}/srec.c -o srec
+ ${HOSTCC} -o $@ ${.CURDIR}/srec.c
sboot: sboot.tmp srec
dd ibs=32 skip=1 if=sboot.tmp | ${.OBJDIR}/srec 4 0x4000 sboot > sboot