notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add staticios target (for iOS 8 and later)
[picodrive.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
9b364dd
..
ca8ccf6
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,16
+1,22
@@
TARGET ?= PicoDrive
TARGET ?= PicoDrive
+DEBUG = 0
CFLAGS += -Wall
CFLAGS += -I. -DINLINE=inline
CFLAGS += -Wall
CFLAGS += -I. -DINLINE=inline
-ifndef DEBUG
-ifeq ($(
platform), vita
)
-CFLAGS += -O3 -DNDEBUG
+
+ifeq ($(
DEBUG),1
)
+ CFLAGS += -g -O0
else
else
-CFLAGS += -O2 -DNDEBUG -ffunction-sections
+ ifeq ($(platform), vita)
+ CFLAGS += -O3 -DNDEBUG
+ else
+ CFLAGS += -O2 -DNDEBUG -ffunction-sections
+ endif
endif
endif
+
ifneq ($(APPLE),1)
ifneq ($(APPLE),1)
-LDFLAGS += -Wl,--gc-sections
-endif
+ LDFLAGS += -Wl,--gc-sections
endif
endif
+
#CFLAGS += -DEVT_LOG
#CFLAGS += -DDRC_CMP
#cpu_cmp = 1
#CFLAGS += -DEVT_LOG
#CFLAGS += -DDRC_CMP
#cpu_cmp = 1
@@
-21,7
+27,6
@@
ifeq ($(WANT_GDB),1)
CFLAGS += ggdb -falign-functions=2
endif
CFLAGS += ggdb -falign-functions=2
endif
-
all: config.mak target_
ifndef NO_CONFIG_MAK
all: config.mak target_
ifndef NO_CONFIG_MAK