CFLAGS = -Wall -std=c99
LDLIBS = -lm

all: figure.pdf figure.png

figure.png: figure.pdf
	convert -density 200 $< $@

figure.pdf : figure.ppl data
	pyxplot $<

data: main
	./$< > $@

clean:
	$(RM) data main figure.pdf *~
