X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgp2x%2FMakefile;h=1458a34b4cd5648b291b6f051061abf281105fb3;hb=1dceadaee482ad3ca6f5ccbef57ea93893f45e82;hp=c6f9fe936524e76adcdb09d30d1bb4f1f9005ec4;hpb=32826a1a22fd3e6203310bba855d8c2b6f3c403a;p=picodrive.git diff --git a/platform/gp2x/Makefile b/platform/gp2x/Makefile index c6f9fe9..1458a34 100644 --- a/platform/gp2x/Makefile +++ b/platform/gp2x/Makefile @@ -32,7 +32,12 @@ use_cyclone = 1 endif DEFINC = -I../.. -I. -DARM -D__GP2X__ -D_UNZIP_SUPPORT # -DBENCHMARK -COPT_COMMON = -static -Wall -O2 -ftracer -fstrength-reduce -fomit-frame-pointer -fstrict-aliasing -ffast-math -Winline +COPT_COMMON = -static -Wall -Winline +ifeq ($(DEBUG),) +COPT_COMMON += -O2 -ftracer -fstrength-reduce -fomit-frame-pointer -fstrict-aliasing -ffast-math +else +COPT_COMMON += -ggdb +endif ifeq "$(profile)" "1" COPT_COMMON += -fprofile-generate endif