notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #64 from orbea/debug
[pcsx_rearmed.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
89788e6
..
dc4e07d
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-2,8
+2,10
@@
# default stuff goes here, so that config can override
TARGET ?= pcsx
# 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
+else
CFLAGS += -O2 -DNDEBUG
endif
CXXFLAGS += $(CFLAGS)
CFLAGS += -O2 -DNDEBUG
endif
CXXFLAGS += $(CFLAGS)