summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 96a64c3..bd3491f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,13 @@
FC = gfortran
-FFLAGS = -march=native -Ofast
+FFLAGS = -march=native -O3
XNAME = monte_carlo.x
NPROC := $(shell nproc)
-all: build run plot
+all: clean build run plot
+
+clean:
+ rm -f *.x *.out *.mod
build: main.f90
$(FC) $(FFLAGS) main.f90 -o $(XNAME)
@@ -13,4 +16,4 @@ run: build
OMP_NUM_THREADS=$(NPROC) ./$(XNAME)
plot: run
- echo test
+ gnuplot plot.gnu