FC = /usr/users/wwwifa/docs/subatom/nucltheo/bin/g77
GRAPH = /usr/users/wwwifa/docs/subatom/nucltheo/bin/graph

obj = main.o qspline.o qseval.o spline.o seval.o pinterp.o

main: $(obj) makefile points.dat
	$(FC) -o main $(obj)
	main > points.dat
	$(GRAPH) \
		--display-type gif \
		--x-label "x" --y-label "y" \
		--top-label "Spline interpolation" \
		points.dat > plot.gif

clean:
	rm -rf *.o
