Makefile revision 1.3
11.2Ssimonb# $NetBSD: Makefile,v 1.3 1999/04/16 16:01:33 simonb Exp $ 21.1Sjonathan 31.1Sjonathan 41.3SsimonbIMAGE= diskimage 51.3SsimonbIMAGESIZE= 4096 # 512 byte blocks 61.3SsimonbDISKTYPE= 71.3SsimonbLABELPROTO= ${.CURDIR}/ramdiskimage.label.proto 81.3Ssimonb# Get defaults from minidisk configuration 91.3Ssimonb.include "../miniroot/Makefile.inc" 101.3SsimonbNEWFSOPTS+= -i 32768 # don't need many inodes! 111.1Sjonathan 121.3SsimonbKERN= ${.CURDIR}/../../../sys/arch/pmax/compile/RAMDISK/netbsd 131.3SsimonbRAMDISK!= cd ${.CURDIR}/../ramdisk; \ 141.3Ssimonb printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk.fs\n" | \ 151.3Ssimonb ${MAKE} -s -f- 161.3SsimonbCLEANFILES= netbsd netbsd.gz netbsd.ecoff netbsd.ecoff.gz ${IMAGE} 171.3Ssimonb 181.3SsimonbVND_DEV= /dev/${VND} 191.3SsimonbVND_RDEV= /dev/r${VND} 201.3SsimonbMOUNT_POINT?= /mnt 211.3Ssimonb 221.3Ssimonball: netbsd.gz ${IMAGE} 231.1Sjonathan 241.2Ssimonbnetbsd.gz: ${KERN} ${RAMDISK} 251.2Ssimonb cp ${KERN} netbsd 261.2Ssimonb mdsetimage -v netbsd ${RAMDISK} 271.2Ssimonb elf2ecoff netbsd netbsd.ecoff 281.1Sjonathan rm -f netbsd.ecoff.gz 291.2Ssimonb gzip -9 netbsd.ecoff 301.2Ssimonb rm -f netbsd.gz 311.2Ssimonb gzip -9 netbsd 321.3Ssimonb 331.3Ssimonb${IMAGE}: netbsd.gz ${DESTDIR}/usr/mdec/boot 341.3Ssimonb dd if=/dev/zero of=${IMAGE} count=${IMAGESIZE} 351.3Ssimonb vnconfig ${DISKTYPEARG} -v -c ${VND_DEV} ${IMAGE} ${VND_GEOM} 361.3Ssimonb ${PRELABEL} 371.3Ssimonb -newfs -m 0 -o space ${NEWFSOPTS} ${VND_RDEV} 381.3Ssimonb ${BOOTINSTALL} 391.3Ssimonb mount ${VND_DEV} ${MOUNT_POINT} 401.3Ssimonb cp -p ${DESTDIR}/usr/mdec/boot ${MOUNT_POINT} 411.3Ssimonb cp -p netbsd.gz ${MOUNT_POINT}/netbsd 421.3Ssimonb @echo "" 431.3Ssimonb @df -i ${MOUNT_POINT} 441.3Ssimonb @echo "" 451.3Ssimonb umount ${MOUNT_POINT} 461.3Ssimonb vnconfig -u ${VND_DEV} 471.1Sjonathan 481.1Sjonathanclean cleandir distclean: 491.1Sjonathan rm -f ${CLEANFILES} 501.1Sjonathan 511.1Sjonathan.include <bsd.own.mk> 521.1Sjonathan.include <bsd.obj.mk> 53