Browse Source

Makefile: Build with optimizations if DEBUG=0

orbea 6 years ago
parent
commit
079bc1bf44
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Makefile

+ 2 - 1
Makefile

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