makefile: -g and -O3 are exclusively applied by DEBUG flag

This commit is contained in:
ignis 2019-07-06 17:13:18 +09:00
parent e282f210f6
commit 45b298d460

View file

@ -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