aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTwinaphex2016-09-07 03:29:07 +0200
committerGitHub2016-09-07 03:29:07 +0200
commit201e4c416a48f547fbfd2f0c3e5ad5cbbc4cc10d (patch)
tree0d4792ccf33981d2403c2a738bd277e8e25e81a9
parent1cc8c854f8161cd0251a9b92929ad01584031ed3 (diff)
parent9b400da1a7d44efda870462121b3e36ab42e134b (diff)
downloadpcsx_rearmed-201e4c416a48f547fbfd2f0c3e5ad5cbbc4cc10d.tar.gz
pcsx_rearmed-201e4c416a48f547fbfd2f0c3e5ad5cbbc4cc10d.tar.bz2
pcsx_rearmed-201e4c416a48f547fbfd2f0c3e5ad5cbbc4cc10d.zip
Merge pull request #62 from orbea/debug
Use DEBUG=1 properly for debug builds
-rw-r--r--Makefile6
-rw-r--r--Makefile.libretro2
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 89788e6..627ccf4 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 79d71c5..01c1fcf 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),)