Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.16.2.2
      1  1.16.2.2  mycroft #	$NetBSD: Makefile,v 1.16.2.2 1999/11/09 18:39:42 mycroft Exp $
      2  1.16.2.2  mycroft 
      3  1.16.2.2  mycroft STRIPFLAG=
      4  1.16.2.2  mycroft PROG=		boot
      5  1.16.2.2  mycroft PROGSOURCE=	boot.c net.c netif_sun.c conf.c openfirm.c bootinfo.c
      6  1.16.2.2  mycroft FILES=		boot.net
      7  1.16.2.2  mycroft NEWVERSWHAT=	"Secondary Boot"
      8  1.16.2.2  mycroft CLEANFILES+=	vers.c vers.o boot.net
      9  1.16.2.2  mycroft 
     10  1.16.2.2  mycroft INCLUDE_LIBZ=	yes
     11  1.16.2.2  mycroft SAMISCMAKEFLAGS= SA_USE_CREAD=yes
     12  1.16.2.2  mycroft 
     13  1.16.2.2  mycroft .include "../Makefile.buildboot"
     14  1.16.2.2  mycroft 
     15  1.16.2.2  mycroft RELOC=		0x700000
     16  1.16.2.2  mycroft 
     17  1.16.2.2  mycroft .include <bsd.own.mk>
     18  1.16.2.2  mycroft 
     19  1.16.2.2  mycroft OBJCOPY?=	objcopy
     20  1.16.2.2  mycroft 
     21  1.16.2.2  mycroft LINKFLAGS=-N -Ttext ${RELOC} -e start
     22  1.16.2.2  mycroft 
     23  1.16.2.2  mycroft all: ${FILES}
     24  1.16.2.2  mycroft 
     25  1.16.2.2  mycroft ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
     26  1.16.2.2  mycroft 	sh ${.CURDIR}/../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
     27  1.16.2.2  mycroft 	${COMPILE.c} vers.c
     28  1.16.2.2  mycroft 	${LD} -o ${.TARGET}.tmp ${LINKFLAGS} ${OBJS} \
     29  1.16.2.2  mycroft 	    vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
     30  1.16.2.2  mycroft 	@${SIZE} ${.TARGET}.tmp
     31  1.16.2.2  mycroft 	@${OBJCOPY} -O binary ${.TARGET}.tmp ${.TARGET}
     32  1.16.2.2  mycroft 	@rm -f ${.TARGET}.tmp
     33  1.16.2.2  mycroft  
     34  1.16.2.2  mycroft # conjure up a magic header that is accepted by all Sun PROMS;
     35  1.16.2.2  mycroft # see installboot.c for details.
     36  1.16.2.2  mycroft ${FILES}: ${PROG}
     37  1.16.2.2  mycroft 	(printf '\01\03\01\07\060\200\0\07\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'; cat ${.ALLSRC} ) > ${.TARGET}
     38  1.16.2.2  mycroft 
     39  1.16.2.2  mycroft .include <bsd.prog.mk>
     40