From 45b298d460b1999262ca803630f04494d380d8a2 Mon Sep 17 00:00:00 2001 From: ignis Date: Sat, 6 Jul 2019 17:13:18 +0900 Subject: [PATCH] makefile: -g and -O3 are exclusively applied by DEBUG flag --- code/makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/makefile b/code/makefile index 6255100..9b074bc 100644 --- a/code/makefile +++ b/code/makefile @@ -8,16 +8,18 @@ BLOCKSIZE?=32 TERMSPEC?=code_gen/terms.input -flags = -cpp -DBLOCKSIZE=$(BLOCKSIZE) -Wall -O3 -ffree-line-length-0 -fdefault-integer-8 -fdefault-double-8 -fdefault-real-8 -march=native - ifdef CHECK flags += -fcheck=all endif ifdef DEBUG flags += -g +else +flags += -O3 endif +flags += -cpp -DBLOCKSIZE=$(BLOCKSIZE) -Wall -ffree-line-length-0 -fdefault-integer-8 -fdefault-double-8 -fdefault-real-8 -march=native + compiler = mpif90