Makefile: Build with optimizations if DEBUG=0
[picodrive.git] / 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