summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..96a64c3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+FC = gfortran
+FFLAGS = -march=native -Ofast
+XNAME = monte_carlo.x
+NPROC := $(shell nproc)
+
+
+all: build run plot
+
+build: main.f90
+ $(FC) $(FFLAGS) main.f90 -o $(XNAME)
+
+run: build
+ OMP_NUM_THREADS=$(NPROC) ./$(XNAME)
+
+plot: run
+ echo test