diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-07-02 21:44:05 +0200 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-07-02 21:44:05 +0200 |
commit | 6e44cb993473d33eddd919c81d121cc0073899ac (patch) | |
tree | 2bd0fbfbcb0cd01e6fb8f99b5b243641571c62a9 /Makefile | |
parent | 560e148807b688d20275985646225423a8ee8733 (diff) | |
download | fortran-assignment3-6e44cb993473d33eddd919c81d121cc0073899ac.tar.gz fortran-assignment3-6e44cb993473d33eddd919c81d121cc0073899ac.zip |
add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6f3251b --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +FC = gfortran +FFLAGS = -std=f2008 -Wall -pedantic -fbounds-check -fimplicit-none \ + -ffree-form -fcoarray=lib -O2 -c +LDFLAGS = -lcaf_mpi + +all : integrator + +main.o main.mod : quadratures.mod functions.mod + +%.mod %.o : src/%.f90 + $(FC) $(FFLAGS) $< + +integrator : main.o quadratures.o functions.o + $(FC) $(LDFLAGS) $^ -o $@ + +clean : + -rm integrator *.{mod,o} + +.PHONY : all clean |