# Makefile - Don Yang (uguu.org)
#
# Compiles, links, and runs on at least one linux box.  Your mileage
# may vary.
#
# Surprising enough, program will compile and link on linux without
# having included math.h, but then atan2() wouldn't work, hence the
# -include below.

aya: aya.o
	gcc -L/usr/X11R6/lib -lGL -lGLU -lglut -lXi -lXmu $< -o $@

aya.o: aya.c
	gcc -O3 -c -include math.h $< -o $@

clean:
	-rm -f aya aya.o

backup:
	-rm -f backup.tar.gz
	tar cf backup.tar *.c *.h Makefile makefile.w32
	gzip -9 backup.tar
