Makefile revision 1.11
11.11Ssjg#	$NetBSD: Makefile,v 1.11 2000/05/02 16:06:45 sjg Exp $
21.11Ssjg
31.11Ssjg.include "../../../Makefile.inc"
41.11Ssjg.include <bsd.kernobj.mk>
51.1Sross
61.1SrossMOUNT_POINT?=	/mnt
71.1SrossVND?=		vnd0
81.1SrossVND_DEV=	/dev/${VND}a
91.1SrossVND_RDEV=	/dev/r${VND}a
101.1SrossVND_CDEV=	/dev/${VND}c
111.1SrossVND_CRDEV=	/dev/r${VND}c
121.6SrossMDEC?=		${DESTDIR}/usr/mdec
131.11SsjgKERNEL?=	${KERNOBJDIR}/GENERIC/netbsd
141.10StsutsuiSTRIP?=		strip
151.1Sross
161.4SrossGZKERNEL=	netbsd
171.1SrossIMAGE=		GENERIC.fs
181.1Sross
191.1SrossDISKTYPE=	floppy
201.1Sross
211.1Sross# Some reasonable values for the -i parameter to newfs are:
221.1Sross#
231.1Sross#   6144	1147k, 189 inodes free
241.1Sross#  16384	1159k,  93 inodes free
251.1Sross# 204800	1167k,  29 inodes free
261.1SrossINO_BYTES?=	6144
271.1Sross
281.1SrossCLEANFILES+=	${IMAGE} ${GZKERNEL}
291.3Sross
301.3Srossall: GENERIC.fs
311.1Sross
321.5ScgdGENERIC.fs: ${GZKERNEL} ${MDEC}/boot ${MDEC}/bootxx.old
331.4Sross	@echo Creating tar image
341.4Sross	tar cvf ustar.tmp ${MDEC}/boot ${GZKERNEL}
351.1Sross	@echo Creating vn image
361.1Sross	dd if=/dev/zero of=${.TARGET}.tmp count=2880
371.1Sross	vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${.TARGET}.tmp
381.4Sross	dd bs=8k seek=1 if=ustar.tmp of=${VND_CDEV}
391.1Sross	disklabel -rw ${VND_CDEV} ${DISKTYPE}
401.5Scgd	${MDEC}/installboot.old -b 17 -v	\
411.5Scgd		${MDEC}/boot ${MDEC}/bootxx.old ${VND_CRDEV}
421.1Sross	vnconfig -u ${VND_CDEV}
431.1Sross	mv ${.TARGET}.tmp ${.TARGET}
441.1Sross
451.1Sross${GZKERNEL}: ${KERNEL}
461.4Sross	cp ${KERNEL} ${.TARGET}
471.10Stsutsui	${STRIP} ${.TARGET}
481.4Sross	gzip -9 ${.TARGET}
491.4Sross	mv ${.TARGET}.gz ${.TARGET}
501.1Sross
511.1Srossunconfig:
521.1Sross	-vnconfig -u ${VND_CDEV}
531.6Sross
541.6Srossdisk: all
551.6Sross	dd if=GENERIC.fs bs=18k of=/dev/rfd0a
561.1Sross
571.2Slukemclean cleandir distclean:
581.4Sross	/bin/rm -f *.core ${CLEANFILES} ${GZKERNEL} ${GZKERNEL}.gz *.tmp
591.7Sveego
601.7Sveego# nothing to do here
611.7Sveegodepend includes lint regress tags:
621.1Sross
631.1Sross.include <bsd.own.mk>
641.1Sross.include <bsd.obj.mk>
65