Makefile: Build with optimizations if DEBUG=0
authororbea <orbea@fredslev.dk>
Mon, 2 Apr 2018 02:43:22 +0000 (19:43 -0700)
committernotaz <notasas@gmail.com>
Mon, 2 Apr 2018 20:19:50 +0000 (23:19 +0300)
Makefile

index 78fa538..34f5d40 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
 TARGET ?= PicoDrive
+DEBUG ?= 0
 CFLAGS += -Wall -g
 CFLAGS += -I.
-ifndef DEBUG
+ifeq "$(DEBUG)" "0"
 CFLAGS += -O3 -DNDEBUG
 endif