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

all: aplot.png aplot.pdf

aplot.pdf: aplot.ps
	ps2pdf $<

aplot.ps aplot.png: aplot.gp theory.dat exp.dat
	gnuplot $<

theory.dat exp.dat: main
	./$< 1> theory.dat 2> exp.dat

clean:
	$(RM) *.o main *.txt *.dat *.png *~ *.pdf *.ps *.aux *.log
