X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=9b364dd9cd2ed9657333bff693488f058fc25894;hb=6d0aaeaf9036411ceb7aa68205549e246ea86a60;hp=7a4e1301c7529b44f9d798006d59d565c8017469;hpb=5cd97263ce3d2fe446fa2d5856c4401326094714;p=picodrive.git diff --git a/Makefile b/Makefile index 7a4e130..9b364dd 100644 --- 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_