1997-12-19 00:03:58 +03:00
|
|
|
# $NetBSD: Makefile,v 1.9 1997/12/18 21:03:58 pk Exp $
|
1997-06-01 07:39:03 +04:00
|
|
|
|
|
|
|
PROG= boot
|
|
|
|
PROGSOURCE= boot.c net.c netif_sun.c conf.c
|
|
|
|
NEWVERSWHAT= "Secondary Boot"
|
1997-12-19 00:03:58 +03:00
|
|
|
CLEANFILES+= vers.c vers.o
|
1997-06-01 07:39:03 +04:00
|
|
|
|
|
|
|
INCLUDE_LIBZ= yes
|
|
|
|
SAMISCMAKEFLAGS= SA_USE_CREAD=yes
|
|
|
|
|
|
|
|
.include "../Makefile.buildboot"
|
|
|
|
|
1997-11-12 03:37:07 +03:00
|
|
|
RELOC= 0x300000
|
|
|
|
|
1997-06-01 07:39:03 +04:00
|
|
|
${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
|
|
|
|
sh ${.CURDIR}/../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
|
|
|
|
${COMPILE.c} vers.c
|
|
|
|
${LD} -o ${.TARGET} -N -T ${RELOC} -e start ${OBJS} \
|
|
|
|
vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
|
1995-09-17 03:20:22 +04:00
|
|
|
@size ${.TARGET}
|
|
|
|
|
1997-11-01 01:05:17 +03:00
|
|
|
afterinstall:
|
|
|
|
# conjure up a magic header that is accepted by all Sun PROMS;
|
|
|
|
# see installboot.c for details.
|
1997-11-15 17:29:36 +03:00
|
|
|
printf '\01\03\01\07\060\200\0\07' | \
|
|
|
|
dd of=${DESTDIR}/${BINDIR}/boot.net bs=32 conv=sync
|
1997-11-01 01:05:17 +03:00
|
|
|
dd if=${DESTDIR}/${BINDIR}/boot of=${DESTDIR}/${BINDIR}/boot.net \
|
|
|
|
bs=32 skip=1 seek=1
|
|
|
|
chmod ${BINMODE} ${DESTDIR}/${BINDIR}/boot.net
|
|
|
|
chown ${BINOWN}.${BINGRP} ${DESTDIR}/${BINDIR}/boot.net
|
|
|
|
|
1995-09-17 03:20:22 +04:00
|
|
|
.include <bsd.prog.mk>
|