X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=9b364dd9cd2ed9657333bff693488f058fc25894;hb=e8454cb09b4e787ee847ba64936f79b3f08a4ea3;hp=eb5dc0a0347ebd0e5d3f361be61c7da19dce7ced;hpb=d6a897aa61fb13b435a7bc8798c7f7c78db1930c;p=picodrive.git diff --git a/Makefile b/Makefile index eb5dc0a..9b364dd 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,11 @@ TARGET ?= PicoDrive 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,7 +17,7 @@ endif #drc_debug = 7 #profile = 1 -ifneq ($(platform),emscripten) +ifeq ($(WANT_GDB),1) CFLAGS += ggdb -falign-functions=2 endif