X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2FMakefile;h=65565f189bb703f846ef819860b8d14c31f56609;hb=f013066e974c7d35b818a6fca43a9deba1ce5c3e;hp=0eee0eb2a4b85ae81259d7a7e7942dbdf589db75;hpb=263b3b7c04adb427e87b07d18f8fe6dc43061619;p=libpicofe.git diff --git a/gp2x/Makefile b/gp2x/Makefile index 0eee0eb..65565f1 100644 --- a/gp2x/Makefile +++ b/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 +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 @@ -48,10 +53,13 @@ LD = $(CROSS)ld OBJCOPY = $(CROSS)objcopy # frontend -OBJS += main.o menu.o fonts.o gp2x.o usbjoy.o emu.o squidgehack.o asmutils.o cpuctrl.o readpng.o +OBJS += main.o menu.o gp2x.o usbjoy.o emu.o squidgehack.o cpuctrl.o # 940 core control OBJS += 940ctl.o +# common +OBJS += ../common/emu.o ../common/menu.o ../common/fonts.o ../common/arm_utils.o ../common/readpng.o + # Pico ifeq "$(amalgamate)" "1" OBJS += ../../PicoAll.o @@ -148,7 +156,7 @@ up: PicoDrive.gpe # @cmd //C copy PicoDrive.gpe \\\\10.0.1.2\\gp2x\\mnt\\sd\\games\\PicoDrive\\ -testrefr.gpe : test.o gp2x.o asmutils.o +testrefr.gpe : test.o gp2x.o @echo $@ @$(GCC) $(COPT) $^ -o $@ @$(STRIP) $@ @@ -175,7 +183,7 @@ testrefr.gpe : test.o gp2x.o asmutils.o ../../Pico/sound/mix_asm.o : ../../Pico/sound/mix.s @echo $< @$(AS) $(ASOPT) $< -o $@ -../../Pico/misc_asm.o : ../../Pico/misc.s +../../Pico/misc_asm.o : ../../Pico/Misc.s @echo $< @$(AS) $(ASOPT) $< -o $@ ../../Pico/cd/pico_asm.o : ../../Pico/cd/Pico.s @@ -184,7 +192,7 @@ testrefr.gpe : test.o gp2x.o asmutils.o ../../Pico/cd/memory_asm.o : ../../Pico/cd/Memory.s @echo $< @$(AS) $(ASOPT) $< -o $@ -../../Pico/cd/misc_asm.o : ../../Pico/cd/misc.s +../../Pico/cd/misc_asm.o : ../../Pico/cd/Misc.s @echo $< @$(AS) $(ASOPT) $< -o $@