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