diff options
author | orbea | 2016-09-06 17:47:31 -0700 |
---|---|---|
committer | orbea | 2016-09-06 17:47:31 -0700 |
commit | 9b400da1a7d44efda870462121b3e36ab42e134b (patch) | |
tree | 0d4792ccf33981d2403c2a738bd277e8e25e81a9 | |
parent | 1cc8c854f8161cd0251a9b92929ad01584031ed3 (diff) | |
download | pcsx_rearmed-9b400da1a7d44efda870462121b3e36ab42e134b.tar.gz pcsx_rearmed-9b400da1a7d44efda870462121b3e36ab42e134b.tar.bz2 pcsx_rearmed-9b400da1a7d44efda870462121b3e36ab42e134b.zip |
Use DEBUG=1 properly for debug builds
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | Makefile.libretro | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -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),) |