1
0
Fork 0

Change default make behavior to O3 optimization

This commit is contained in:
Austin Morlan 2018-09-10 18:50:39 -07:00
parent 0c5cf83748
commit bf5fabfdb2
Signed by: austin
GPG Key ID: FD6B27654AF5E348
1 changed files with 12 additions and 9 deletions

View File

@ -5,24 +5,27 @@ else
V := @ V := @
endif endif
# Debugging
ifeq ("$(DEBUG)","0")
D :=
else
D := -g
endif
# Optimizations # Optimizations
ifeq ("$(OPTIMIZE)","1") ifeq ("$(OPTIMIZE)","0")
O := -O0
else ifeq ("$(OPTIMIZE)","1")
O := -O1 O := -O1
else ifeq ("$(OPTIMIZE)", "2") else ifeq ("$(OPTIMIZE)", "2")
O := -O2 O := -O2
else ifeq ("$(OPTIMIZE)", "3") else ifeq ("$(OPTIMIZE)", "3")
O := -O3 O := -O3
else else
O := -O0 O := -O3
endif endif
# Debugging
ifeq ("$(DEBUG)","1")
D := -g
else
D :=
endif
SRC_DIR=src SRC_DIR=src
INCLUDE_DIR=include INCLUDE_DIR=include
BUILD_DIR=build BUILD_DIR=build