X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=gp2x%2FMakefile;h=d9c40bb3d8176b0216e6571bfdb6adadc549d0d7;hb=0ae6813e481cdbb7a661b49dba612bd1c6670433;hp=abb6be4c86814433f501410d56bcae69cb5c14f1;hpb=fb88e614316e559b8c2e419da97619218c046b2f;p=libpicofe.git diff --git a/gp2x/Makefile b/gp2x/Makefile index abb6be4..d9c40bb 100644 --- a/gp2x/Makefile +++ b/gp2x/Makefile @@ -5,7 +5,6 @@ CROSS = arm-linux- #CROSS = $(devkit_path)bin/arm-linux- # settings -dprint = 1 #mz80 = 1 #debug_cyclone = 1 asm_memory = 1 @@ -18,8 +17,21 @@ asm_cdmemory = 1 #use_musashi = 1 #up = 1 + +ifeq "$(debug_cyclone)" "1" +use_cyclone = 1 +use_musashi = 1 +endif +ifeq "$(use_musashi)" "1" +asm_cdpico = 0 +asm_memory = 0 +asm_cdmemory = 0 +else +use_cyclone = 1 +endif + DEFINC = -I../.. -I. -DARM -D__GP2X__ -D_UNZIP_SUPPORT # -DBENCHMARK -COPT_COMMON = -static -O3 -ftracer -fstrength-reduce -Wall -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math # -s +COPT_COMMON = -static -Wall -O3 -ftracer -fstrength-reduce -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math # -s ifeq "$(profile)" "1" COPT_COMMON += -fprofile-generate endif @@ -82,12 +94,16 @@ OBJS += ../../zlib/gzio.o ../../zlib/inffast.o ../../zlib/inflate.o ../../zlib/i OBJS += ../../unzip/unzip.o ../../unzip/unzip_stream.o # mp3 OBJS += mp3.o +# debug +ifeq "$(debug_cyclone)" "1" +OBJS += ../../Pico/_cyclone_debug.o ../../cpu/musashi/m68kdasm.o +endif # CPU cores ifeq "$(use_musashi)" "1" DEFINC += -DEMU_M68K -OBJS += ../../cpu/musashi/m68kcpu.o ../../cpu/musashi/m68kopac.o ../../cpu/musashi/m68kopdm.o -OBJS += ../../cpu/musashi/m68kopnz.o ../../cpu/musashi/m68kops.o -else +OBJS += ../../cpu/musashi/m68kops.o ../../cpu/musashi/m68kcpu.o +endif +ifeq "$(use_cyclone)" "1" DEFINC += -DEMU_C68K OBJS += ../../cpu/Cyclone/proj/Cyclone.o endif @@ -164,7 +180,11 @@ testrefr.gpe : test.o gp2x.o asmutils.o # build Cyclone ../../cpu/Cyclone/proj/Cyclone.s : @echo building Cyclone... - @make -C ../../cpu/Cyclone/proj -f Makefile.linux + @make -C ../../cpu/Cyclone/proj CONFIG_FILE=config_pico.h + +../../cpu/musashi/m68kops.c : + @make -C ../../cpu/musashi + # build helix libs helix/helix_mp3.a: