Makefile revision 1.4
11.4Sgwr# $NetBSD: Makefile,v 1.4 1997/12/12 03:46:59 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= ramdisk 91.1SgwrCBIN= rd_bin 101.1Sgwr 111.1SgwrTREE= ${TOP}/common/${IMAGE}.tree 121.1Sgwr 131.1SgwrLISTS= ${TOP}/common/${CBIN}.list \ 141.1Sgwr ${TOP}/common/${IMAGE}.list 151.1Sgwr 161.3SgwrKERNEL=${SRCSYSDIR}/arch/sun3/compile/RAMDISK/netbsd 171.3Sgwr 181.1SgwrMOUNT_POINT= /mnt 191.4Sgwr#BDEV= /dev/md0 201.4Sgwr#CDEV= /dev/md0 211.4SgwrBDEV= /dev/sd1b 221.4SgwrCDEV= /dev/rsd1b 231.1Sgwr 241.1Sgwr# These are all the parameters for the root fs: (256K) 251.3SgwrDISKTYPE= rdroot 261.1SgwrNBLKS= 512 271.3Sgwr# old format, minfree, opt, b/i trks, sects, cpg 281.1SgwrNEWFSARGS= -O -m 0 -o space -i 2048 -t 2 -u 16 -c 16 291.1Sgwr 301.3SgwrCLEANFILES= netbsd-rd rdsetroot ${IMAGE}.fs 311.1Sgwr 321.1Sgwrnetbsd-rd : rdsetroot ${IMAGE}.fs 331.1Sgwr cp ${KERNEL} netbsd-tmp 341.1Sgwr ./rdsetroot netbsd-tmp < ${IMAGE}.fs 351.1Sgwr -mv -f netbsd-tmp $@ 361.1Sgwr 371.1Sgwrrdsetroot: ${TOP}/common/rdsetroot.c 381.1Sgwr $(CC) -o $@ -DDEBUG ${TOP}/common/rdsetroot.c 391.1Sgwr 401.3Sgwr${IMAGE}.fs: ${TREE} ${LISTS} ${CBIN} 411.3Sgwr -newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE} 421.3Sgwr mount ${BDEV} ${MOUNT_POINT} 431.3Sgwr mtree -def ${TREE} -p ${MOUNT_POINT}/ -u 441.3Sgwr TOPDIR=${TOP} CURDIR=${.CURDIR} \ 451.3Sgwr OBJDIR=${.OBJDIR} TARGDIR=${MOUNT_POINT} \ 461.3Sgwr sh ${TOP}/common/RunList.sh ${LISTS} 471.3Sgwr sync 481.3Sgwr @echo "" 491.3Sgwr @df -i ${MOUNT_POINT} 501.3Sgwr @echo "" 511.3Sgwr -umount ${MOUNT_POINT} 521.4Sgwr dd if=${CDEV} of=$@ bs=16b \ 531.4Sgwr count=`expr ${NBLKS} / 16` 541.1Sgwr 551.2Sgwr# Do not delete this if I change my mind and kill make... 561.2Sgwr.PRECIOUS: ${IMAGE}.fs 571.2Sgwr 581.1Sgwr# Rules for making ${CBIN} ... 591.1Sgwr.include "${TOP}/common/Make.crunch" 601.1Sgwr 611.3Sgwr# This is listed in rd_bin.conf but is built here. 621.1Sgwr${CBIN} : libhack.o 631.1Sgwr 641.1Sgwr# Use stubs to eliminate some large stuff from libc 651.1SgwrHACKSRC=${TOP}/../utils/libhack 661.1Sgwr.include "${HACKSRC}/Makefile.inc" 671.1Sgwr 681.1Sgwrclean cleandir: 691.2Sgwr -rm -f a.out core *.core *.o 701.2Sgwr -rm -f ${CLEANFILES} 711.1Sgwr 721.1Sgwr# Standard rules needed by the above... 731.1Sgwr.include <bsd.obj.mk> 74