all:

test: disk
	sh -c '( dos -Z -f1,2 -A | tee zap ) & \
	echo $! > test.pid ;\
	wait ;\
	less -f zap /tmp/dosdbg.${USERNAME}'

killtest:
	A=`cat test.pid`
	kill -9 ${A}
	rmdir /tmp/dosem*${A}*

clean:
	$(RM)	*.o *.a \
		*.lst *.crf *.xrf *.obj *.map *.exe \
		*~ '#*#' \
		core zap zep zip zop zup foo bar test.pid

veryclean: clean
	$(RM)	*.com *.bin

disk:	bootrec.bin loader.com bios-api.bin ../../Kernel/oslki386.bin
	(dd if=bootrec.bin			bs=512 conv=sync ;\
	 dd if=loader.com			bs=512 conv=sync ;\
	 dd if=bios-api.bin			bs=512 conv=sync ;\
	 dd if=../../Kernel/oslki386.bin	bs=512 conv=sync ;\
	) > /dev/fd0

install: all
