# makefile for ZX81 AY demo
#
# requires zmac, http://www.nenie.org/cpcip/index.html#zmac (also
# available from ibiblio).

all: aydemo.p

aydemo.p: tune.z asciiprn.z screen.z tunedat.z bin2p
	zmac tune.z
	./bin2p tune.bin aydemo.p

tunedat.z: tuneconv macroscopic.csf
	./tuneconv <macroscopic.csf >tunedat.z

tuneconv: tuneconv.c
	$(CC) -o tuneconv tuneconv.c -lm

clean:
	$(RM) *~ *.lst *.bin bin2p tuneconv tunedat.z

tar:
	cd ..;tar -cvhf - aydemo | gzip >$(HOME)/tmp/aydemo-src.tar.gz
