
ZIPFILES=sines.c sines.asm gsxtest.asm gsxtest.com \
	 gsxtest.txt Makefile COPYING

CC=gcc
CFLAGS=-g -Wall 

all:	gsxtest.com sines

zip:	gsxtest.zip


gsxtest.zip: $(ZIPFILES)
	zip $@ $(ZIPFILES)

sines:	sines.o
	$(CC) -o $@ $< -lm

sines.asm:	sines
	./sines | unix2dos > $@

gsxtest.com:	gsxtest.rel sines.rel
	zxcc link80 gsxtest,sines
	zxcc ../gengraf.com gsxtest.com

gsxtest.rel:	gsxtest.asm
	zxcc rmac gsxtest

sines.rel:	sines.asm
	zxcc rmac sines

