#	$OpenBSD: Makefile,v 1.13 2005/07/30 17:25:19 millert Exp $

.if ${MACHINE} == "i386"
SUBDIR=	etc libsa libkern libz mbr cdbr
.endif
SUBDIR+= biosboot installboot boot pxeboot cdboot

test-fd0:
	sudo mount /dev/fd0a /mnt
	sudo cp /usr/mdec/boot /mnt
	sudo /usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot fd0
	sudo umount /mnt

zero-fd0:
	sudo dd if=/dev/zero of=/dev/rfd0a count=144 bs=10240

prep-fd0:
	sudo disklabel -rw fd0 floppy
	sudo newfs -O -m 0 -o space -i 3000 -c 80 /dev/rfd0a

.include <bsd.subdir.mk>