Skip to content

Commit

Permalink
updated compilation flags
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Feb 18, 2022
1 parent 5d41198 commit 9e1d8e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

###################################################################
# #
Expand All @@ -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
#
Expand Down Expand Up @@ -93,6 +97,7 @@ all : $(oall)
#
# Compiling with flags for development
#
static : devel
perf : devel
devel : $(oall)
@echo " ------------------------------------------------------ "
Expand Down

0 comments on commit 9e1d8e7

Please sign in to comment.