Home | History | Annotate | Line # | Download | only in hpcmips
Makefile revision 1.10
      1 #	$NetBSD: Makefile,v 1.10 2002/03/23 03:21:23 shin Exp $
      2 
      3 .include "../Makefile.inc"
      4 
      5 .include <bsd.obj.mk>
      6 .include <bsd.kernobj.mk>
      7 .include <bsd.own.mk>
      8 
      9 SUBDIR=
     10 
     11 ITARGET=	${RELEASEDIR}/installation
     12 IINST=		${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE}
     13 
     14 PBSDBOOTDIR = ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot
     15 PBSDBOOT = ${PBSDBOOTDIR}/pbsdboot.exe
     16 PBSDBOOT1 = ${PBSDBOOTDIR}/pbsdboot1.exe
     17 HPCBOOTDIR = ${KERNSRCDIR}/arch/hpc/stand
     18 HPCBOOT = ${HPCBOOTDIR}/binary/MIPS/hpcboot.exe
     19 MDSETIMAGE?=	mdsetimage
     20 
     21 INSTKERNELS = TX3912
     22 
     23 .ifndef RELEASEDIR
     24 release:
     25 	@echo setenv RELEASEDIR first
     26 	@false
     27 .else
     28 MINIROOTDIR = ${.CURDIR}/../miniroot
     29 MINIROOTOBJ != cd ${MINIROOTDIR} && ${PRINTOBJDIR}
     30 
     31 release:
     32 	rm -f netbsd netbsd.gz
     33 	cp ${KERNOBJDIR}/RAMDISK/netbsd .
     34 	${MDSETIMAGE} netbsd ${MINIROOTOBJ}/miniroot.fs
     35 	gzip -9 netbsd
     36 	${IINST} netbsd.gz ${ITARGET}/.
     37 .for instkern in ${INSTKERNELS}
     38 	rm -f netbsd netbsd.gz
     39 	cp ${KERNOBJDIR}/INSTALL_${instkern}/netbsd .
     40 	${MDSETIMAGE} netbsd ${MINIROOTOBJ}/miniroot.fs
     41 	gzip -9 netbsd
     42 	${IINST} netbsd.gz ${ITARGET}/netbsd.${instkern}.gz
     43 .endfor
     44 	cd ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot; make
     45 	${IINST} ${PBSDBOOT} ${ITARGET}/.
     46 	${IINST} ${PBSDBOOT1} ${ITARGET}/.
     47 	cd ${KERNSRCDIR}/arch/hpc/stand; make
     48 	${IINST} ${HPCBOOT} ${ITARGET}/.
     49 	${.CURDIR}/../sets/makesums -t ${ITARGET} '*.gz' '*.exe'
     50 .endif
     51 
     52 .include <bsd.subdir.mk>
     53