Use DEBUG=1 properly for debug builds
authororbea <ovariegata@yahoo.com>
Wed, 7 Sep 2016 00:47:31 +0000 (17:47 -0700)
committerorbea <ovariegata@yahoo.com>
Wed, 7 Sep 2016 00:47:31 +0000 (17:47 -0700)
Makefile
Makefile.libretro

index 89788e6..627ccf4 100644 (file)
--- 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)
index 79d71c5..01c1fcf 100644 (file)
@@ -1,5 +1,7 @@
 # Makefile for PCSX ReARMed (libretro)
 
+DEBUG=0
+
 ifeq ($(platform),)
        platform = unix
        ifeq ($(shell uname -a),)