Makefile revision 1.2
11.1Sgwr# $NetBSD: Makefile,v 1.2 1995/10/13 16:46:47 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.1SgwrCBIN= mini_usr 101.1Sgwr 111.1SgwrTREE= ${TOP}/common/${IMAGE}.tree 121.1Sgwr 131.1SgwrLISTS= ${TOP}/common/mini_sbin.list \ 141.1Sgwr ${TOP}/common/mini_bin.list \ 151.1Sgwr ${TOP}/common/${CBIN}.list \ 161.1Sgwr ${TOP}/common/${IMAGE}.list 171.1Sgwr 181.1SgwrMOUNT_POINT= /mnt 191.1SgwrDISKTYPE= miniroot 201.1SgwrBDEV= /dev/sd2b 211.1SgwrCDEV= /dev/rsd2b 221.1Sgwr 231.1SgwrKERNEL=${SRCSYSDIR}/arch/sun3/compile/GENERIC/netbsd 241.1Sgwr 251.1Sgwr# These are all the parameters for the miniroot: (6MB) 261.1SgwrNBLKS= 12288 271.1Sgwr# 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.1Sgwr${IMAGE}.fs: ${CBIN} do_mount do_files do_bootxx do_kernel do_umount 311.1Sgwr dd if=${CDEV} of=$@ bs=64b count=`expr ${NBLKS} / 64` 321.1Sgwr 331.1Sgwr# Only do these for the miniroot, not the ramdisk. 341.1Sgwrdo_bootxx: 351.1Sgwr sync ; sleep 1 ; sync 361.1Sgwr cd ${MOUNT_POINT} ;\ 371.1Sgwr usr/mdec/installboot -v ufsboot usr/mdec/bootxx ${CDEV} 381.1Sgwr 391.1Sgwr# Copy the generic kernel 401.1Sgwrdo_kernel: 411.1Sgwr cp -p ${KERNEL} ${MOUNT_POINT}/netbsd 421.1Sgwr 431.2Sgwr# Do not delete this if I change my mind and kill make... 441.2Sgwr.PRECIOUS: ${IMAGE}.fs 451.2Sgwr 461.1Sgwr# Rules used making ${IMAGE}.fs (do_*) 471.1Sgwr.include "${TOP}/common/Make.fsimage" 481.1Sgwr 491.1Sgwr# Rules for making ${CBIN} ... 501.1Sgwr.include "${TOP}/common/Make.crunch" 511.1Sgwr 521.1Sgwrclean cleandir: 531.2Sgwr -rm -f a.out core *.core *.o 541.2Sgwr -rm -f ${CLEANFILES} 551.1Sgwr 561.1Sgwr# Standard rules needed by the above... 571.1Sgwr.include <bsd.obj.mk> 58