aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-07-02 21:44:05 +0200
committerWojtek Kosior <kwojtus@protonmail.com>2019-07-02 21:44:05 +0200
commit6e44cb993473d33eddd919c81d121cc0073899ac (patch)
tree2bd0fbfbcb0cd01e6fb8f99b5b243641571c62a9
parent560e148807b688d20275985646225423a8ee8733 (diff)
downloadfortran-assignment3-6e44cb993473d33eddd919c81d121cc0073899ac.tar.gz
fortran-assignment3-6e44cb993473d33eddd919c81d121cc0073899ac.zip
add Makefile
-rw-r--r--Makefile19
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