Makefile revision 1.20
11.20Sjmc# $NetBSD: Makefile,v 1.20 2001/10/21 23:23:22 jmc 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.20SjmcMDSETIMAGE?= mdsetimage 261.3Ssimonb 271.5Ssimonball: netbsd.gz ${IMAGE}.gz 281.1Sjonathan 291.2Ssimonbnetbsd.gz: ${KERN} ${RAMDISK} 301.2Ssimonb cp ${KERN} netbsd 311.20Sjmc ${MDSETIMAGE} -v netbsd ${RAMDISK} 321.2Ssimonb elf2ecoff netbsd netbsd.ecoff 331.1Sjonathan rm -f netbsd.ecoff.gz 341.2Ssimonb gzip -9 netbsd.ecoff 351.2Ssimonb rm -f netbsd.gz 361.2Ssimonb gzip -9 netbsd 371.3Ssimonb 381.13Ssimonb${IMAGE}.gz: netbsd.gz ${DESTDIR}/usr/mdec/boot.pmax 391.3Ssimonb dd if=/dev/zero of=${IMAGE} count=${IMAGESIZE} 401.15Ssimonb vnconfig ${DISKTYPEARG} -v -c ${VND} ${IMAGE} ${VND_GEOM} 411.18Smhitch disklabel -R -r ${VND} ${LABELPROTO} 421.15Ssimonb newfs -B le -m 0 -o space ${NEWFSOPTS} ${VND_RDEV} 431.15Ssimonb ${DESTDIR}/usr/mdec/installboot ${VND_RDEV} \ 441.15Ssimonb ${DESTDIR}/usr/mdec/bootxx_ffs 451.3Ssimonb mount ${VND_DEV} ${MOUNT_POINT} 461.13Ssimonb cp -p ${DESTDIR}/usr/mdec/boot.pmax ${MOUNT_POINT} 471.3Ssimonb cp -p netbsd.gz ${MOUNT_POINT}/netbsd 481.3Ssimonb @echo "" 491.3Ssimonb @df -i ${MOUNT_POINT} 501.3Ssimonb @echo "" 511.3Ssimonb umount ${MOUNT_POINT} 521.15Ssimonb vnconfig -u ${VND} 531.11Ssimonb rm -f ${IMAGE}.gz 541.5Ssimonb gzip -9 ${IMAGE} 551.15Ssimonb 561.15Ssimonbunconfig: 571.15Ssimonb -umount -f ${MOUNT_POINT} 581.15Ssimonb -vnconfig -u ${VND} 591.15Ssimonb -/bin/rm -f ${IMAGE} ${IMAGE}.gz 601.1Sjonathan 611.6Ssimonbrealinstall: 621.6Ssimonb ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \ 631.7Ssimonb -m ${NONBINMODE} ${IMAGE}.gz ${RELEASEDIR}${DISKBINDIR} 641.7Ssimonb ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \ 651.8Ssimonb -m ${BINMODE} netbsd.gz ${RELEASEDIR}${KERNBINDIR}/install.gz 661.12Ssimonb ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \ 671.14Ssimonb -m ${BINMODE} netbsd.ecoff.gz \ 681.14Ssimonb ${RELEASEDIR}${KERNBINDIR}/install.ecoff.gz 691.6Ssimonb 701.1Sjonathanclean cleandir distclean: 711.1Sjonathan rm -f ${CLEANFILES} 721.9Ssimonb 731.9Ssimonb# XXX! 741.9Ssimonbdepend: 751.19Ssimonbdependall: depend all 761.1Sjonathan 771.1Sjonathan.include <bsd.obj.mk> 781.6Ssimonb.include "../Makefile.inc" 79