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

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

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

main:main.o

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