Makefile revision 1.8
11.8Sgwr# $NetBSD: Makefile,v 1.8 1999/04/22 04:32:12 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.5SgwrKERNEL3 = ${SRCSYSDIR}/arch/sun3/compile/RAMDISK/netbsd 171.5SgwrKERNEL3X= ${SRCSYSDIR}/arch/sun3/compile/RAMDISK3X/netbsd 181.3Sgwr 191.1SgwrMOUNT_POINT= /mnt 201.4Sgwr#BDEV= /dev/md0 211.4Sgwr#CDEV= /dev/md0 221.4SgwrBDEV= /dev/sd1b 231.4SgwrCDEV= /dev/rsd1b 241.1Sgwr 251.1Sgwr# These are all the parameters for the root fs: (256K) 261.3SgwrDISKTYPE= rdroot 271.1SgwrNBLKS= 512 281.3Sgwr# old format, minfree, opt, b/i trks, sects, cpg 291.8SgwrNEWFSARGS= -B be -O -m 0 -o space -i 2048 -t 2 -u 16 -c 16 301.1Sgwr 311.5SgwrCLEANFILES= netbsd-rd.sun3 netbsd-rd.sun3x rdsetroot ${IMAGE}.fs 321.1Sgwr 331.5Sgwrall: netbsd-rd.sun3 netbsd-rd.sun3x 341.5Sgwr 351.5Sgwrnetbsd-rd.sun3 : rdsetroot ${IMAGE}.fs 361.5Sgwr cp ${KERNEL3} netbsd-tmp 371.5Sgwr ./rdsetroot netbsd-tmp < ${IMAGE}.fs 381.5Sgwr -mv -f netbsd-tmp $@ 391.5Sgwr 401.5Sgwrnetbsd-rd.sun3x : rdsetroot ${IMAGE}.fs 411.5Sgwr cp ${KERNEL3X} netbsd-tmp 421.1Sgwr ./rdsetroot netbsd-tmp < ${IMAGE}.fs 431.1Sgwr -mv -f netbsd-tmp $@ 441.1Sgwr 451.1Sgwrrdsetroot: ${TOP}/common/rdsetroot.c 461.1Sgwr $(CC) -o $@ -DDEBUG ${TOP}/common/rdsetroot.c 471.1Sgwr 481.3Sgwr${IMAGE}.fs: ${TREE} ${LISTS} ${CBIN} 491.8Sgwr -newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE} 501.3Sgwr mount ${BDEV} ${MOUNT_POINT} 511.3Sgwr mtree -def ${TREE} -p ${MOUNT_POINT}/ -u 521.3Sgwr TOPDIR=${TOP} CURDIR=${.CURDIR} \ 531.3Sgwr OBJDIR=${.OBJDIR} TARGDIR=${MOUNT_POINT} \ 541.3Sgwr sh ${TOP}/common/RunList.sh ${LISTS} 551.3Sgwr sync 561.3Sgwr @echo "" 571.3Sgwr @df -i ${MOUNT_POINT} 581.3Sgwr @echo "" 591.3Sgwr -umount ${MOUNT_POINT} 601.4Sgwr dd if=${CDEV} of=$@ bs=16b \ 611.4Sgwr count=`expr ${NBLKS} / 16` 621.1Sgwr 631.2Sgwr# Do not delete this if I change my mind and kill make... 641.2Sgwr.PRECIOUS: ${IMAGE}.fs 651.2Sgwr 661.1Sgwr# Rules for making ${CBIN} ... 671.1Sgwr.include "${TOP}/common/Make.crunch" 681.1Sgwr 691.3Sgwr# This is listed in rd_bin.conf but is built here. 701.1Sgwr${CBIN} : libhack.o 711.1Sgwr 721.1Sgwr# Use stubs to eliminate some large stuff from libc 731.1SgwrHACKSRC=${TOP}/../utils/libhack 741.1Sgwr.include "${HACKSRC}/Makefile.inc" 751.1Sgwr 761.6Slukemclean cleandir distclean: 771.2Sgwr -rm -f a.out core *.core *.o 781.2Sgwr -rm -f ${CLEANFILES} 791.1Sgwr 801.1Sgwr# Standard rules needed by the above... 811.1Sgwr.include <bsd.obj.mk> 82