Makefile revision 1.2
11.2Sgwr#	$NetBSD: Makefile,v 1.2 1995/10/13 16:51:30 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.1SgwrMOUNT_POINT=	/mnt
171.1SgwrDISKTYPE=	rdroot
181.1SgwrBDEV=		/dev/rd0
191.1SgwrCDEV?=		/dev/rd0
201.1Sgwr
211.1SgwrKERNEL=${SRCSYSDIR}/arch/sun3/compile/RAMDISK/netbsd
221.1Sgwr
231.1Sgwr# These are all the parameters for the root fs: (256K)
241.1SgwrNBLKS=		512
251.1Sgwr# args: old fmt, minfree, opt, b/i  trks, sects, cpg
261.1SgwrNEWFSARGS= -O -m 0 -o space -i 2048 -t 2 -u 16 -c 16
271.1Sgwr
281.2SgwrCLEANFILES= netbsd-rd rdsetroot
291.1Sgwr
301.1Sgwrnetbsd-rd : rdsetroot ${IMAGE}.fs
311.1Sgwr	cp ${KERNEL} netbsd-tmp
321.1Sgwr	./rdsetroot  netbsd-tmp < ${IMAGE}.fs
331.1Sgwr	-mv -f netbsd-tmp $@
341.1Sgwr
351.1Sgwrrdsetroot: ${TOP}/common/rdsetroot.c
361.1Sgwr	$(CC) -o $@ -DDEBUG ${TOP}/common/rdsetroot.c
371.1Sgwr
381.1Sgwr${IMAGE}.fs: ${CBIN} do_mount do_files do_umount
391.1Sgwr	dd if=${CDEV} of=$@ count=${NBLKS}
401.1Sgwr
411.2Sgwr# Do not delete this if I change my mind and kill make...
421.2Sgwr.PRECIOUS: ${IMAGE}.fs
431.2Sgwr
441.1Sgwr# Rules used making ${IMAGE}.fs (do_*)
451.1Sgwr.include "${TOP}/common/Make.fsimage"
461.1Sgwr
471.1Sgwr# Rules for making ${CBIN} ...
481.1Sgwr.include "${TOP}/common/Make.crunch"
491.1Sgwr
501.1Sgwr${CBIN} : libhack.o
511.1Sgwr
521.1Sgwr# Use stubs to eliminate some large stuff from libc
531.1SgwrHACKSRC=${TOP}/../utils/libhack
541.1Sgwr.include "${HACKSRC}/Makefile.inc"
551.1Sgwr
561.1Sgwrclean cleandir:
571.2Sgwr	-rm -f a.out core *.core *.o
581.2Sgwr	-rm -f ${CLEANFILES}
591.1Sgwr
601.1Sgwr# Standard rules needed by the above...
611.1Sgwr.include <bsd.obj.mk>
62