From: orbea Date: Mon, 2 Apr 2018 02:43:22 +0000 (-0700) Subject: Makefile: Build with optimizations if DEBUG=0 X-Git-Tag: v1.93~3 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=079bc1bf446e57d81ffaa87dab66b5e90f0f6f01;p=picodrive.git Makefile: Build with optimizations if DEBUG=0 --- diff --git a/Makefile b/Makefile index 78fa538..34f5d40 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