FFLAGS = -ffree-form -fimplicit-none -std=gnu -O LDLIBS = -lgfortran -lm all:out.txt cat $< out.txt:main ./$< > $@ main: main.o qrgivens.o main.o: qrgivens.mod qrgivens.o qrgivens.mod: qrgivens.f clean: find . -type f -executable -delete rm -f *.o *.mod out* %.o %.mod: %.f $(FC) $(FFLAGS) -c $<