From 079bc1bf446e57d81ffaa87dab66b5e90f0f6f01 Mon Sep 17 00:00:00 2001 From: orbea Date: Sun, 1 Apr 2018 19:43:22 -0700 Subject: [PATCH] Makefile: Build with optimizations if DEBUG=0 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 78fa5386..34f5d403 100644 --- 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 -- 2.39.5