Merge pull request #38 from lentillog/feature/dynarec
[picodrive.git] / Makefile
index 7a4e130..9b364dd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,12 @@
 TARGET ?= PicoDrive
-CFLAGS += -Wall -ggdb -falign-functions=2
+CFLAGS += -Wall 
 CFLAGS += -I. -DINLINE=inline
 ifndef DEBUG
+ifeq ($(platform), vita)
+CFLAGS += -O3 -DNDEBUG
+else
 CFLAGS += -O2 -DNDEBUG -ffunction-sections
+endif
 ifneq ($(APPLE),1)
 LDFLAGS += -Wl,--gc-sections
 endif
@@ -13,6 +17,10 @@ endif
 #drc_debug = 7
 #profile = 1
 
+ifeq ($(WANT_GDB),1)
+CFLAGS += ggdb -falign-functions=2
+endif
+
 
 all: config.mak target_