Makefile revision 1.11
11.11Sgwr# $NetBSD: Makefile,v 1.11 1999/05/21 04:06:20 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.9SgwrKERNEL3 = ${KERNOBJDIR}/RAMDISK/netbsd 171.9SgwrKERNEL3X = ${KERNOBJDIR}/RAMDISK3X/netbsd 181.3Sgwr 191.9SgwrMOUNT_POINT?= /mnt 201.9SgwrBDEV?= /dev/sd1b 211.9SgwrCDEV?= /dev/rsd1b 221.1Sgwr 231.10Sgwr# These are all the parameters for the root fs: (320K) 241.3SgwrDISKTYPE= rdroot 251.10SgwrNBLKS= 640 261.9Sgwr# bigendian, old format, minfree, opt, b/i trks, sects, cpg 271.8SgwrNEWFSARGS= -B be -O -m 0 -o space -i 2048 -t 2 -u 16 -c 16 281.1Sgwr 291.11SgwrKERNELS= netbsd-RAMDISK netbsd-RAMDISK3X 301.11SgwrCLEANFILES= $(KERNELS) rdsetroot ${IMAGE}.fs 311.1Sgwr 321.11Sgwrall: $(KERNELS) 331.5Sgwr 341.11Sgwrnetbsd-RAMDISK : rdsetroot ${IMAGE}.fs 351.5Sgwr cp ${KERNEL3} netbsd-tmp 361.5Sgwr ./rdsetroot netbsd-tmp < ${IMAGE}.fs 371.5Sgwr -mv -f netbsd-tmp $@ 381.5Sgwr 391.11Sgwrnetbsd-RAMDISK3X : rdsetroot ${IMAGE}.fs 401.5Sgwr cp ${KERNEL3X} netbsd-tmp 411.1Sgwr ./rdsetroot netbsd-tmp < ${IMAGE}.fs 421.1Sgwr -mv -f netbsd-tmp $@ 431.1Sgwr 441.1Sgwrrdsetroot: ${TOP}/common/rdsetroot.c 451.1Sgwr $(CC) -o $@ -DDEBUG ${TOP}/common/rdsetroot.c 461.1Sgwr 471.3Sgwr${IMAGE}.fs: ${TREE} ${LISTS} ${CBIN} 481.8Sgwr -newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE} 491.3Sgwr mount ${BDEV} ${MOUNT_POINT} 501.3Sgwr mtree -def ${TREE} -p ${MOUNT_POINT}/ -u 511.3Sgwr TOPDIR=${TOP} CURDIR=${.CURDIR} \ 521.3Sgwr OBJDIR=${.OBJDIR} TARGDIR=${MOUNT_POINT} \ 531.3Sgwr sh ${TOP}/common/RunList.sh ${LISTS} 541.3Sgwr sync 551.3Sgwr @echo "" 561.3Sgwr @df -i ${MOUNT_POINT} 571.3Sgwr @echo "" 581.3Sgwr -umount ${MOUNT_POINT} 591.4Sgwr dd if=${CDEV} of=$@ bs=16b \ 601.4Sgwr count=`expr ${NBLKS} / 16` 611.1Sgwr 621.2Sgwr# Do not delete this if I change my mind and kill make... 631.2Sgwr.PRECIOUS: ${IMAGE}.fs 641.2Sgwr 651.1Sgwr# Rules for making ${CBIN} ... 661.1Sgwr.include "${TOP}/common/Make.crunch" 671.1Sgwr 681.3Sgwr# This is listed in rd_bin.conf but is built here. 691.1Sgwr${CBIN} : libhack.o 701.1Sgwr 711.1Sgwr# Use stubs to eliminate some large stuff from libc 721.1SgwrHACKSRC=${TOP}/../utils/libhack 731.1Sgwr.include "${HACKSRC}/Makefile.inc" 741.1Sgwr 751.6Slukemclean cleandir distclean: 761.2Sgwr -rm -f a.out core *.core *.o 771.2Sgwr -rm -f ${CLEANFILES} 781.1Sgwr 791.1Sgwr# Standard rules needed by the above... 801.1Sgwr.include <bsd.obj.mk> 811.11Sgwr 821.11Sgwr.if !defined(RELEASEDIR) 831.11Sgwrrelease: 841.11Sgwr @echo setenv RELEASEDIR before doing that! 851.11Sgwr @false 861.11Sgwr.else # RELEASEDIR 871.11Sgwrrelease: $(KERNELS) 881.11Sgwr.for x in ${KERNELS} 891.11Sgwr gzip -c -9 < ${x} > \ 901.11Sgwr ${RELEASEDIR}/binary/kernel/${x}.gz 911.11Sgwr.endfor # KERNELS 921.11Sgwr.endif # RELEASEDIR 93