From 9e1d8e7f511ae7501250bf89d03d04d0b3263677 Mon Sep 17 00:00:00 2001 From: Leandro Martinez Date: Fri, 18 Feb 2022 13:41:45 -0300 Subject: [PATCH] updated compilation flags --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b3765df..f6c778f 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ FORTRAN=/usr/bin/gfortran # # Change the flags of the compilation if you want: # -FLAGS= -O3 --fast-math +FLAGS= -O3 --fast-math -march=native -funroll-loops ################################################################### # # @@ -37,6 +37,10 @@ ifeq ($(MAKECMDGOALS),perf) FLAGS = -g -pg GENCANFLAGS = -g -pg endif +ifeq ($(MAKECMDGOALS),static) +FLAGS = -O3 --fast-math -static +GENCANFLAGS = -O3 --fast-math -static +endif # # Files required # @@ -93,6 +97,7 @@ all : $(oall) # # Compiling with flags for development # +static : devel perf : devel devel : $(oall) @echo " ------------------------------------------------------ "