FFLAGS = -ffree-form -fimplicit-none -std=gnu -O
LDLIBS = -lgfortran -lm
FC = gfortran

all:out.txt
	cat $<
out.txt:main
	./$< > $@

%.o %.mod: %.f
	$(FC) $(FFLAGS) -c $<
	touch $@

main:main.o integ.o
main.o: integ.mod

clean:
	find . -type f -executable -delete
	rm -f *.o *.mod out* *log
