#FC = g77
FC = /usr/users/wwwifa/docs/subatom/nucltheo/bin/g77
LFLAGS = -L/usr/users/wwwifa/docs/subatom/nucltheo/lib
FFLAGS = -ffree-form
GRAPH = /usr/users/wwwifa/docs/subatom/nucltheo/bin/graph

OBJ = main.o pc.o pcstep.o rkstep.o rkf45.o

main: $(OBJ)
	$(FC) -o main $(OBJ)

rkf45.o: rkf45.f
	$(FC) -c rkf45.f

plot: main
	main > plot.dat
	$(GRAPH) \
		--display-type gif \
		--x-label "x" --y-label "y" \
		--top-label "two-point predictor-corrector" \
		plot.dat > plot.gif

clean:
	rm -rf $(OBJ) main
