CFLAGS = -Wall -std=gnu99
CFLAGS += `gsl-config --cflags` -DNDEBUG
LDLIBS += `gsl-config --libs`

report.pdf: report.tex plot.eps plot2.tex
	latex report
	latex report
	dvipdf report
clean-report: ; $(RM) report.aux report.log report.pdf report.dvi

plot2.tex: plot2.gnuplot data ; gnuplot $<

plot.eps: plot.pyxplot data ; pyxplot $<
clean-plot: ; $(RM) plot.eps

data: main; ./main > data
main: main.o errorfc.o
clean-data: ; $(RM) main data main.o errorfc.o


clean: clean-report clean-plot clean-data
