diff options
Diffstat (limited to 'sys/arch/wgrisc/stand/boot/Makefile')
-rw-r--r-- | sys/arch/wgrisc/stand/boot/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/arch/wgrisc/stand/boot/Makefile b/sys/arch/wgrisc/stand/boot/Makefile index 9979ff28502..06c3d12b698 100644 --- a/sys/arch/wgrisc/stand/boot/Makefile +++ b/sys/arch/wgrisc/stand/boot/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.1 1997/05/11 16:17:51 pefo Exp $ +# $OpenBSD: Makefile,v 1.2 1997/07/21 06:58:11 pefo Exp $ PROG=boot SADIR=${.CURDIR}/.. -SRCS=start.S boot.c filesystem.c conf.c sd.c +SRCS=start.S boot.c filesystem.c conf.c sd.c fl.c CFLAGS+=$(SACFLAGS) -I${.CURDIR}/../../../../lib/libsa -I${.CURDIR}/../libsa CFLAGS+=-D__INTERNAL_LIBSA_CREAD @@ -17,13 +17,15 @@ machine-links: @ln -fs ${.CURDIR}/../.. wgrisc @ln -fs ${.CURDIR}/../../include machine -${PROG}: $(OBJS) $(DPADD) +${PROG}: $(OBJS) $(LDADD) $(LD) $(LDFLAGS) -o $(PROG) $(OBJS) $(LDADD) -${PROG}.bin: ${PROG} +${PROG}.bin: ${PROG} cp ${PROG} ${PROG}.tmp strip -s ${PROG}.tmp - dd if=${PROG}.tmp of=${PROG}.bin bs=4096 skip=1 + dd if=${PROG}.tmp of=${PROG}.bin bs=512 skip=8 count=1 + dd if=/dev/zero of=${PROG}.bin bs=512 seek=1 count=1 + dd if=${PROG}.tmp of=${PROG}.bin bs=512 skip=9 seek=2 count=14 rm ${PROG}.tmp .include <bsd.prog.mk> |