Makefile revision 1.6
11.6Sgwr# $NetBSD: Makefile,v 1.6 1997/12/12 22:37:19 gwr Exp $ 21.1Sgwr 31.1SgwrTOP= ${.CURDIR}/.. 41.1Sgwr 51.1Sgwr# This include just sets REV=XX 61.1Sgwr.include "${TOP}/Makefile.inc" 71.1Sgwr 81.1SgwrIMAGE= miniroot 91.6Sgwr#CBIN= mini_usr 101.1Sgwr 111.1SgwrTREE= ${TOP}/common/${IMAGE}.tree 121.1Sgwr 131.6SgwrLISTS= ${TOP}/common/${IMAGE}.list \ 141.6Sgwr ${TOP}/common/mini_sbin.list \ 151.1Sgwr ${TOP}/common/mini_bin.list \ 161.6Sgwr ${TOP}/common/mini_usr.list 171.1Sgwr 181.3SgwrKERNEL=${SRCSYSDIR}/arch/sun3/compile/GENERIC/netbsd 191.3Sgwr 201.1SgwrMOUNT_POINT= /mnt 211.5SgwrBDEV= /dev/sd1b 221.5SgwrCDEV= /dev/rsd1b 231.3Sgwr 241.3Sgwr# These are all the parameters for the miniroot: (8MB) 251.1SgwrDISKTYPE= miniroot 261.3SgwrNBLKS= 16384 271.3Sgwr# old format, minfree, opt, b/i trks, sects, cpg 281.1SgwrNEWFSARGS= -O -m 0 -o space -i 8192 -t 8 -u 32 -c 16 291.1Sgwr 301.4SjtcCLEANFILES= ${IMAGE}.gz install.sub 311.1Sgwr 321.6Sgwr${IMAGE}.gz: ${TREE} ${LISTS} install.sub 331.3Sgwr -newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE} 341.3Sgwr mount ${BDEV} ${MOUNT_POINT} 351.3Sgwr mtree -def ${TREE} -p ${MOUNT_POINT}/ -u 361.6Sgwr cp ${KERNEL} ${MOUNT_POINT}/netbsd 371.3Sgwr TOPDIR=${TOP} CURDIR=${.CURDIR} \ 381.3Sgwr OBJDIR=${.OBJDIR} TARGDIR=${MOUNT_POINT} \ 391.3Sgwr sh ${TOP}/common/RunList.sh ${LISTS} 401.1Sgwr sync ; sleep 1 ; sync 411.1Sgwr cd ${MOUNT_POINT} ;\ 421.1Sgwr usr/mdec/installboot -v ufsboot usr/mdec/bootxx ${CDEV} 431.3Sgwr sync 441.3Sgwr @echo "" 451.3Sgwr @df -i ${MOUNT_POINT} 461.3Sgwr @echo "" 471.3Sgwr -umount ${MOUNT_POINT} 481.3Sgwr dd if=${CDEV} bs=16b count=`expr ${NBLKS} / 16` |\ 491.3Sgwr gzip > ${IMAGE}.tmp 501.3Sgwr -mv -f ${IMAGE}.tmp ${IMAGE}.gz 511.1Sgwr 521.2Sgwr# Do not delete this if I change my mind and kill make... 531.3Sgwr.PRECIOUS: ${IMAGE}.gz 541.1Sgwr 551.1Sgwr# Rules for making ${CBIN} ... 561.1Sgwr.include "${TOP}/common/Make.crunch" 571.4Sjtc 581.4Sjtcinstall.sub : ${TOP}/../miniroot/install.sub 591.4Sjtc sed -e "/^VERSION=/s/=.*/=${REV}/" < $? > $@ 601.1Sgwr 611.6Sgwrclean cleandir: 621.2Sgwr -rm -f a.out core *.core *.o 631.2Sgwr -rm -f ${CLEANFILES} 641.1Sgwr 651.1Sgwr# Standard rules needed by the above... 661.1Sgwr.include <bsd.obj.mk> 67