X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=2903a689430aa6c78957d73db420cab136c074db;hb=8d40ae56f317819a74dd369ab90aa6cec898ec9d;hp=2620a7046b5cc71677beae7636bc4e02b8f3cd0f;hpb=88f6038d0572233e6d076ca4319166f2c4381bbb;p=picodrive.git diff --git a/Makefile b/Makefile index 2620a70..2903a68 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ TARGET ?= PicoDrive +DEBUG ?= 0 CFLAGS += -Wall -g CFLAGS += -I. -ifndef DEBUG +ifeq "$(DEBUG)" "0" CFLAGS += -O3 -DNDEBUG endif @@ -222,7 +223,7 @@ pico/cd/gfx_cd.o: CFLAGS += -fno-strict-aliasing # on x86, this is reduced by ~300MB when debug info is off (but not on ARM) # not using O3 and -fno-expensive-optimizations seems to also help, but you may # want to remove this stuff for better performance if your compiler can handle it -ifndef DEBUG +ifeq "$(DEBUG)" "0" cpu/fame/famec.o: CFLAGS += -g0 -O2 -fno-expensive-optimizations endif @@ -236,4 +237,5 @@ cpu/sh2/compiler.o : cpu/drc/emit_x86.c cpu/sh2/mame/sh2pico.o : cpu/sh2/mame/sh2.c pico/pico.o pico/cd/mcd.o pico/32x/32x.o : pico/pico_cmn.c pico/pico_int.h pico/memory.o pico/cd/memory.o pico/32x/memory.o : pico/pico_int.h pico/memory.h +# pico/cart.o : pico/carthw_cfg.c cpu/fame/famec.o: cpu/fame/famec.c cpu/fame/famec_opcodes.h