##
## Written for Debian on behalf of the Debian Science Team
## by Jerome Benoit <calculus@rezozer.net>, 2014-11-07.
##

CFLAGS += -Wall
LDLIBS = -ltachyon

listof_progam = animskull animspheres animspheres-ogl animspheres2 fire hypertex mainanim tgatoyuv

default: build

build: $(listof_progam)

demo-nox:
	./fire

demo-ogl: animspheres-ogl
	./animspheres-ogl -nosave -opengl -res 1024 512

animspheres: animspheres.c glwin.c

animspheres-ogl: animspheres.c glwin.c
	$(CC) $(CPPFLAGS) -DUSEOPENGL $(CFLAGS) $^ $(LDLIBS) -lGL -lX11 -o $@

clean:
	rm -f $(listof_progam)
	rm -f *.tga
