notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
0d87bd6
)
Merge pull request #40 from fetzerch/debug
author
Twinaphex
<libretro@gmail.com>
Mon, 5 Dec 2016 23:01:46 +0000
(
00:01
+0100)
committer
GitHub
<noreply@github.com>
Mon, 5 Dec 2016 23:01:46 +0000
(
00:01
+0100)
Fix compilation with DEBUG flag
Makefile
patch
|
blob
|
blame
|
history
diff --git
a/Makefile
b/Makefile
index
9b364dd
..
a62d9b1
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,16
+1,19
@@
TARGET ?= PicoDrive
+DEBUG = 0
CFLAGS += -Wall
CFLAGS += -I. -DINLINE=inline
-if
ndef DEBUG
+if
eq ($(DEBUG),0)
ifeq ($(platform), vita)
CFLAGS += -O3 -DNDEBUG
else
CFLAGS += -O2 -DNDEBUG -ffunction-sections
endif
+else
+CFLAGS += -g -O2
+endif
ifneq ($(APPLE),1)
LDFLAGS += -Wl,--gc-sections
endif
-endif
#CFLAGS += -DEVT_LOG
#CFLAGS += -DDRC_CMP
#cpu_cmp = 1