aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-06-01 16:46:16 +0200
committerWojtek Kosior <kwojtus@protonmail.com>2019-06-01 16:46:16 +0200
commit9aca0009ddae08ac7a98df518fbc0c95f11e8691 (patch)
treed1a095de618e2e143ada8ccc5457813a2a3d3469 /Makefile
parent3e181f91fb807209f71c096dc06a66f6a9a47a61 (diff)
downloadfortran-assignment2-9aca0009ddae08ac7a98df518fbc0c95f11e8691.tar.gz
fortran-assignment2-9aca0009ddae08ac7a98df518fbc0c95f11e8691.zip
compile f1, don't use build/
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5019f1e..772ca48 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,13 @@
-build/:
- mkdir build
+FC = gfortran
+FFLAGS = -std=f2008 -Wall -pedantic -fbounds-check -fimplicit-none \
+ -I/usr/include -lfftw3 -lm
+
+all : f1
+
+f1 : src/f1.f90
+ $(FC) $(FFLAGS) src/f1.f90 -o $@
+
+clean :
+ rm f1
+
+.PHONY : all clean