# emuspd makefile

all: emuspd

# start.z and end.z must stay first and last, respectively

SRCFILES = start.z \
	main.z mrf.z graph.z line.z mvaddstr.z \
	end.z

emuspd: emuspd.bin

emuspd.bin: $(SRCFILES)
	cat $(SRCFILES) >out.z
	zmac out.z
	cat out.bin font image.mrf >emuspd.bin
	ls -l emuspd.bin

sna:	emuspd.bin
	cp test.sna try.sna
	ldirsna try.sna emuspd.bin 32768

send:
	zxsend -v emuspd.bin emuspd.bin code 32768

clean:
	$(RM) *~ out.* *.o *.lst

spotless: clean
	$(RM) emuspd.bin
