TARGET ?= PicoDrive
+DEBUG = 0
CFLAGS += -Wall
CFLAGS += -I. -DINLINE=inline
-ifndef DEBUG
-CFLAGS += -O2 -DNDEBUG -ffunction-sections
-ifneq ($(APPLE),1)
-LDFLAGS += -Wl,--gc-sections
+
+ifeq ($(DEBUG),1)
+ CFLAGS += -g -O0
+else
+ ifeq ($(platform), vita)
+ CFLAGS += -O3 -DNDEBUG
+ else
+ CFLAGS += -O2 -DNDEBUG -ffunction-sections
+ endif
endif
+
+ifneq ($(APPLE),1)
+ LDFLAGS += -Wl,--gc-sections
endif
+
#CFLAGS += -DEVT_LOG
#CFLAGS += -DDRC_CMP
#cpu_cmp = 1
CFLAGS += ggdb -falign-functions=2
endif
-
all: config.mak target_
ifndef NO_CONFIG_MAK