#CROSS = $(devkit_path)bin/arm-linux-\r
\r
# settings\r
-dprint = 1\r
#mz80 = 1\r
-#debug_cyclone = 1\r
+debug_cyclone = 0\r
asm_memory = 1\r
asm_render = 1\r
asm_ym2612 = 1\r
#use_musashi = 1\r
#up = 1\r
\r
+\r
+ifeq "$(debug_cyclone)" "1"\r
+use_cyclone = 1\r
+use_musashi = 1\r
+asm_memory = 0\r
+asm_cdmemory = 0\r
+endif\r
+ifneq "$(use_musashi)" "1"\r
+use_cyclone = 1\r
+endif\r
+\r
DEFINC = -I../.. -I. -DARM -D__GP2X__ -D_UNZIP_SUPPORT # -DBENCHMARK\r
-COPT_COMMON = -static -O3 -ftracer -fstrength-reduce -Wall -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math # -s\r
+COPT_COMMON = -static -Wall -O3 -ftracer -fstrength-reduce -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math # -s\r
ifeq "$(profile)" "1"\r
COPT_COMMON += -fprofile-generate\r
endif\r
OBJS += ../../unzip/unzip.o ../../unzip/unzip_stream.o\r
# mp3\r
OBJS += mp3.o\r
+# debug\r
+ifeq "$(debug_cyclone)" "1"\r
+OBJS += ../../Pico/_cyclone_debug.o ../../cpu/musashi/m68kdasm.o\r
+endif\r
# CPU cores\r
ifeq "$(use_musashi)" "1"\r
DEFINC += -DEMU_M68K\r
OBJS += ../../cpu/musashi/m68kcpu.o ../../cpu/musashi/m68kopac.o ../../cpu/musashi/m68kopdm.o\r
OBJS += ../../cpu/musashi/m68kopnz.o ../../cpu/musashi/m68kops.o\r
-else\r
+endif\r
+ifeq "$(use_cyclone)" "1"\r
DEFINC += -DEMU_C68K\r
OBJS += ../../cpu/Cyclone/proj/Cyclone.o\r
endif\r