Makefile revision 1.19
11.19Ssimonb# $NetBSD: Makefile,v 1.19 2001/03/24 15:31:23 simonb Exp $ 21.16Ssjg 31.16Ssjg.include "../../../Makefile.inc" 41.16Ssjg.include <bsd.kernobj.mk> 51.17Smatt.include <bsd.own.mk> 61.1Sjonathan 71.7SsimonbDISKBINDIR= /installation/diskimage 81.7SsimonbKERNBINDIR= /binary/kernel 91.1Sjonathan 101.3SsimonbIMAGE= diskimage 111.15SsimonbIMAGESIZE= 4096 # 512 byte blocks, update disktab.diskimage if changed 121.15SsimonbDISKTAB= ${.CURDIR}/disktab.diskimage 131.18SmhitchDISKTYPE= "install diskimag" 141.18SmhitchLABELPROTO= ${.CURDIR}/diskimage.label.proto 151.15SsimonbNEWFSOPTS?= -c 32 -B le -i 32768 # don't need many inodes! 161.1Sjonathan 171.16SsjgKERN= ${KERNOBJDIR}/RAMDISK/netbsd 181.12SsimonbRAMDISK!= cd ${.CURDIR}/../ramdisk; ${MAKE} echoimage 191.10SsimonbCLEANFILES= netbsd netbsd.gz netbsd.ecoff netbsd.ecoff.gz ${IMAGE}.gz 201.3Ssimonb 211.15SsimonbVND?= vnd0 221.15SsimonbVND_DEV= /dev/${VND}c 231.15SsimonbVND_RDEV= /dev/r${VND}c 241.3SsimonbMOUNT_POINT?= /mnt 251.3Ssimonb 261.5Ssimonball: netbsd.gz ${IMAGE}.gz 271.1Sjonathan 281.2Ssimonbnetbsd.gz: ${KERN} ${RAMDISK} 291.2Ssimonb cp ${KERN} netbsd 301.2Ssimonb mdsetimage -v netbsd ${RAMDISK} 311.2Ssimonb elf2ecoff netbsd netbsd.ecoff 321.1Sjonathan rm -f netbsd.ecoff.gz 331.2Ssimonb gzip -9 netbsd.ecoff 341.2Ssimonb rm -f netbsd.gz 351.2Ssimonb gzip -9 netbsd 361.3Ssimonb 371.13Ssimonb${IMAGE}.gz: netbsd.gz ${DESTDIR}/usr/mdec/boot.pmax 381.3Ssimonb dd if=/dev/zero of=${IMAGE} count=${IMAGESIZE} 391.15Ssimonb vnconfig ${DISKTYPEARG} -v -c ${VND} ${IMAGE} ${VND_GEOM} 401.18Smhitch disklabel -R -r ${VND} ${LABELPROTO} 411.15Ssimonb newfs -B le -m 0 -o space ${NEWFSOPTS} ${VND_RDEV} 421.15Ssimonb ${DESTDIR}/usr/mdec/installboot ${VND_RDEV} \ 431.15Ssimonb ${DESTDIR}/usr/mdec/bootxx_ffs 441.3Ssimonb mount ${VND_DEV} ${MOUNT_POINT} 451.13Ssimonb cp -p ${DESTDIR}/usr/mdec/boot.pmax ${MOUNT_POINT} 461.3Ssimonb cp -p netbsd.gz ${MOUNT_POINT}/netbsd 471.3Ssimonb @echo "" 481.3Ssimonb @df -i ${MOUNT_POINT} 491.3Ssimonb @echo "" 501.3Ssimonb umount ${MOUNT_POINT} 511.15Ssimonb vnconfig -u ${VND} 521.11Ssimonb rm -f ${IMAGE}.gz 531.5Ssimonb gzip -9 ${IMAGE} 541.15Ssimonb 551.15Ssimonbunconfig: 561.15Ssimonb -umount -f ${MOUNT_POINT} 571.15Ssimonb -vnconfig -u ${VND} 581.15Ssimonb -/bin/rm -f ${IMAGE} ${IMAGE}.gz 591.1Sjonathan 601.6Ssimonbrealinstall: 611.6Ssimonb ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \ 621.7Ssimonb -m ${NONBINMODE} ${IMAGE}.gz ${RELEASEDIR}${DISKBINDIR} 631.7Ssimonb ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \ 641.8Ssimonb -m ${BINMODE} netbsd.gz ${RELEASEDIR}${KERNBINDIR}/install.gz 651.12Ssimonb ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \ 661.14Ssimonb -m ${BINMODE} netbsd.ecoff.gz \ 671.14Ssimonb ${RELEASEDIR}${KERNBINDIR}/install.ecoff.gz 681.6Ssimonb 691.1Sjonathanclean cleandir distclean: 701.1Sjonathan rm -f ${CLEANFILES} 711.9Ssimonb 721.9Ssimonb# XXX! 731.9Ssimonbdepend: 741.19Ssimonbdependall: depend all 751.1Sjonathan 761.1Sjonathan.include <bsd.obj.mk> 771.6Ssimonb.include "../Makefile.inc" 78