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 /Makefile | |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 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) |