X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=a62d9b110dd3a98161d921a521d56fe40ac05265;hb=fbd5ab26736358198d7b4c68abd04583f982da4e;hp=c7fbe9ed68c2ce3858b56e93735fafdb1050448c;hpb=a33a365d783c8a6a360de8668eeb86a26086c551;p=picodrive.git diff --git a/Makefile b/Makefile index c7fbe9e..a62d9b1 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,19 @@ TARGET ?= PicoDrive +DEBUG = 0 CFLAGS += -Wall CFLAGS += -I. -DINLINE=inline -ifndef DEBUG +ifeq ($(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