Makefile fix
This commit is contained in:
parent
e1f3cb1879
commit
b358032fe9
14
GNUmakefile
14
GNUmakefile
@ -50,12 +50,12 @@ ifeq ($(release),1)
|
|||||||
ifeq ($(disableofast),1)
|
ifeq ($(disableofast),1)
|
||||||
CC_OPTIONS = -g -O3 -DNDEBUG
|
CC_OPTIONS = -g -O3 -DNDEBUG
|
||||||
CXX_OPTIONS = -g -O3 -DNDEBUG
|
CXX_OPTIONS = -g -O3 -DNDEBUG
|
||||||
|
LNK_OPTIONS = -pthread -O3
|
||||||
else
|
else
|
||||||
CC_OPTIONS = -g -Ofast -DNDEBUG
|
CC_OPTIONS = -g -Ofast -DNDEBUG
|
||||||
CXX_OPTIONS = -g -Ofast -DNDEBUG
|
CXX_OPTIONS = -g -Ofast -DNDEBUG
|
||||||
|
LNK_OPTIONS = -pthread -Ofast
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LNK_OPTIONS = -pthread -Ofast
|
|
||||||
BUILDDIR = build/release/
|
BUILDDIR = build/release/
|
||||||
|
|
||||||
else
|
else
|
||||||
@ -67,12 +67,13 @@ ifeq ($(profile),1)
|
|||||||
ifeq ($(disableofast),1)
|
ifeq ($(disableofast),1)
|
||||||
CC_OPTIONS = -s -g -ggdb -O3 -pg -DNDEBUG
|
CC_OPTIONS = -s -g -ggdb -O3 -pg -DNDEBUG
|
||||||
CXX_OPTIONS = -s -g -ggdb -O3 -pg -DNDEBUG
|
CXX_OPTIONS = -s -g -ggdb -O3 -pg -DNDEBUG
|
||||||
|
LNK_OPTIONS = -pthread -ggdb -O3 -pg
|
||||||
else
|
else
|
||||||
CC_OPTIONS = -s -g -ggdb -Ofast -pg -DNDEBUG
|
CC_OPTIONS = -s -g -ggdb -Ofast -pg -DNDEBUG
|
||||||
CXX_OPTIONS = -s -g -ggdb -Ofast -pg -DNDEBUG
|
CXX_OPTIONS = -s -g -ggdb -Ofast -pg -DNDEBUG
|
||||||
|
LNK_OPTIONS = -pthread -ggdb -Ofast -pg
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LNK_OPTIONS = -pthread -ggdb -Ofast -pg
|
|
||||||
BUILDDIR = build/profile/
|
BUILDDIR = build/profile/
|
||||||
|
|
||||||
else
|
else
|
||||||
@ -81,7 +82,12 @@ else
|
|||||||
# Since C code is used only for supporting libraries (zlib, lua), it is still Ofast-optimized
|
# Since C code is used only for supporting libraries (zlib, lua), it is still Ofast-optimized
|
||||||
################
|
################
|
||||||
|
|
||||||
CC_OPTIONS = -s -ggdb -g -D_DEBUG -Ofast
|
ifeq ($(disableofast),1)
|
||||||
|
CC_OPTIONS = -s -ggdb -g -D_DEBUG -O3
|
||||||
|
else
|
||||||
|
CC_OPTIONS = -s -ggdb -g -D_DEBUG -Ofast
|
||||||
|
endif
|
||||||
|
|
||||||
CXX_OPTIONS = -s -ggdb -g -D_DEBUG -Og
|
CXX_OPTIONS = -s -ggdb -g -D_DEBUG -Og
|
||||||
LNK_OPTIONS = -pthread -g -ggdb -Og
|
LNK_OPTIONS = -pthread -g -ggdb -Og
|
||||||
BUILDDIR = build/debug/
|
BUILDDIR = build/debug/
|
||||||
|
Loading…
Reference in New Issue
Block a user