From 9b400da1a7d44efda870462121b3e36ab42e134b Mon Sep 17 00:00:00 2001 From: orbea Date: Tue, 6 Sep 2016 17:47:31 -0700 Subject: Use DEBUG=1 properly for debug builds --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3