From: orbea Date: Wed, 7 Sep 2016 00:47:31 +0000 (-0700) Subject: Use DEBUG=1 properly for debug builds X-Git-Tag: r24l~840^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b400da1a7d44efda870462121b3e36ab42e134b;p=pcsx_rearmed.git Use DEBUG=1 properly for debug builds --- diff --git a/Makefile b/Makefile index 89788e66..627ccf4f 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,10 @@ # default stuff goes here, so that config can override TARGET ?= pcsx -CFLAGS += -Wall -ggdb -Iinclude -ffast-math -ifndef DEBUG +CFLAGS += -Wall -Iinclude -ffast-math +ifeq ($(DEBUG), 1) +CFLAGS += -O0 -ggdb -DOPENGL_DEBUG +else CFLAGS += -O2 -DNDEBUG endif CXXFLAGS += $(CFLAGS) diff --git a/Makefile.libretro b/Makefile.libretro index 79d71c52..01c1fcfa 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -1,5 +1,7 @@ # Makefile for PCSX ReARMed (libretro) +DEBUG=0 + ifeq ($(platform),) platform = unix ifeq ($(shell uname -a),)