Makefile: Build with optimizations if DEBUG=0

This commit is contained in:
orbea 2018-04-01 19:43:22 -07:00 committed by notaz
parent fd587b673e
commit 079bc1bf44

View file

@ -1,7 +1,8 @@
TARGET ?= PicoDrive TARGET ?= PicoDrive
DEBUG ?= 0
CFLAGS += -Wall -g CFLAGS += -Wall -g
CFLAGS += -I. CFLAGS += -I.
ifndef DEBUG ifeq "$(DEBUG)" "0"
CFLAGS += -O3 -DNDEBUG CFLAGS += -O3 -DNDEBUG
endif endif