aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authororbea2016-09-06 17:47:31 -0700
committerorbea2016-09-06 17:47:31 -0700
commit9b400da1a7d44efda870462121b3e36ab42e134b (patch)
tree0d4792ccf33981d2403c2a738bd277e8e25e81a9 /Makefile
parent1cc8c854f8161cd0251a9b92929ad01584031ed3 (diff)
downloadpcsx_rearmed-9b400da1a7d44efda870462121b3e36ab42e134b.tar.gz
pcsx_rearmed-9b400da1a7d44efda870462121b3e36ab42e134b.tar.bz2
pcsx_rearmed-9b400da1a7d44efda870462121b3e36ab42e134b.zip
Use DEBUG=1 properly for debug builds
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 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)