boot0: boot0.o.stripped
	dd if=boot0.o.stripped ibs=32 skip=1 of=$@
	ls -ls $@

boot0.o.stripped: boot0.o
	cp boot0.o $@
	strip $@

boot0.o: boot0.s
	cc -c -C boot0.s

boot0.s: RCS/boot0.s,v
	co -b -q $@

namelist: boot0.o
	nm boot0.o > $@
	nm -ug boot0.o

listing: boot0.s namelist
	pl boot0.s namelist | lpr

#	put it in block 0 of drive 1
install: boot0
	dd if=boot0 of=/dev/ksos
	touch $@

clean:
	rm -f boot0.stripped boot0.o namelist install
