Makefile revision 1.1
11.1Sgwr#	$NetBSD: Makefile,v 1.1 1995/10/08 23:07:53 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.1Sgwr# Rules used making ${IMAGE}.fs (do_*)
441.1Sgwr.include "${TOP}/common/Make.fsimage"
451.1Sgwr
461.1Sgwr# Rules for making ${CBIN} ...
471.1Sgwr.include "${TOP}/common/Make.crunch"
481.1Sgwr
491.1Sgwrclean cleandir:
501.1Sgwr	echo rm -f core ${CLEANFILES} *.o
511.1Sgwr
521.1Sgwr# Standard rules needed by the above...
531.1Sgwr.include <bsd.obj.mk>
54