notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
famec hack, CPU debug in CD mode
[picodrive.git]
/
platform
/
linux
/
Makefile
diff --git
a/platform/linux/Makefile
b/platform/linux/Makefile
index
12cb4a2
..
9dd365f
100644
(file)
--- a/
platform/linux/Makefile
+++ b/
platform/linux/Makefile
@@
-1,6
+1,9
@@
# settings
# settings
-dprint = 1
+#use_musashi = 1
+use_fame = 1
+#use_mz80 = 1
+
# profile = 1
# profile = 1
@@
-28,7
+31,7
@@
OBJS += ../gp2x/main.o ../gp2x/menu.o ../gp2x/emu.o ../gp2x/usbjoy.o blit.o \
gp2x.o 940ctl_ym2612.o log_io.o
# common
gp2x.o 940ctl_ym2612.o log_io.o
# common
-OBJS += ../common/
menu.o ../common/fonts.o ../common/readpng
.o
+OBJS += ../common/
emu.o ../common/menu.o ../common/fonts.o ../common/readpng.o ../common/mp3_helix
.o
# Pico
OBJS += ../../Pico/Area.o ../../Pico/Cart.o ../../Pico/Memory.o ../../Pico/Misc.o \
# Pico
OBJS += ../../Pico/Area.o ../../Pico/Cart.o ../../Pico/Memory.o ../../Pico/Misc.o \
@@
-45,18
+48,30
@@
OBJS += ../../zlib/gzio.o ../../zlib/inffast.o ../../zlib/inflate.o ../../zlib/i
../../zlib/deflate.o ../../zlib/crc32.o ../../zlib/adler32.o ../../zlib/zutil.o ../../zlib/compress.o
# unzip
OBJS += ../../unzip/unzip.o ../../unzip/unzip_stream.o
../../zlib/deflate.o ../../zlib/crc32.o ../../zlib/adler32.o ../../zlib/zutil.o ../../zlib/compress.o
# unzip
OBJS += ../../unzip/unzip.o ../../unzip/unzip_stream.o
-# mp3
-OBJS += ../gp2x/mp3.o
# CPU cores
# CPU cores
+ifeq "$(use_musashi)" "1"
DEFINC += -DEMU_M68K
OBJS += ../../cpu/musashi/m68kops.o ../../cpu/musashi/m68kcpu.o
DEFINC += -DEMU_M68K
OBJS += ../../cpu/musashi/m68kops.o ../../cpu/musashi/m68kcpu.o
-# mz80
+endif
+ifeq "$(use_fame)" "1"
+DEFINC += -DEMU_F68K
+OBJS += ../../cpu/fame/famec.o
+endif
+# z80
+ifeq "$(use_mz80)" "1"
DEFINC += -D_USE_MZ80
OBJS += ../../cpu/mz80/mz80.o
DEFINC += -D_USE_MZ80
OBJS += ../../cpu/mz80/mz80.o
-
-# faked asm
-#DEFINC += -D_ASM_DRAW_C
-#OBJS += fakedasm.o
+else
+DEFINC += -D_USE_CZ80
+OBJS += ../../cpu/cz80/cz80.o
+endif
+# misc
+ifeq "$(use_fame)" "1"
+ifeq "$(use_musashi)" "1"
+OBJS += ../../Pico/Debug.o
+OBJS += ../../cpu/musashi/m68kdasm.o
+endif
+endif
all: PicoDrive
all: PicoDrive
@@
-65,11
+80,11
@@
clean: tidy
tidy:
@$(RM) $(OBJS)
@make -C ../../cpu/mz80/ clean
tidy:
@$(RM) $(OBJS)
@make -C ../../cpu/mz80/ clean
- @make -C ../
gp2x
/helix/ X86=1 clean
+ @make -C ../
common
/helix/ X86=1 clean
-PicoDrive : $(OBJS) ../
gp2x
/helix/helix_mp3_x86.a
- @echo $@
-
@
$(GCC) $(COPT) $^ $(LDFLAGS) -lm -lpng -Wl,-Map=PicoDrive.map -o $@
+PicoDrive : $(OBJS) ../
common
/helix/helix_mp3_x86.a
+ @echo
">>>"
$@
+ $(GCC) $(COPT) $^ $(LDFLAGS) -lm -lpng -Wl,-Map=PicoDrive.map -o $@
../../cpu/musashi/m68kops.c :
../../cpu/musashi/m68kops.c :
@@
-82,23
+97,23
@@
PicoDrive : $(OBJS) ../gp2x/helix/helix_mp3_x86.a
../../cpu/mz80/mz80.asm :
@make -C ../../cpu/mz80/
../../cpu/mz80/mz80.asm :
@make -C ../../cpu/mz80/
-../
gp2x
/helix/helix_mp3_x86.a:
- @make -C ../
gp2x
/helix/ X86=1 clean all
+../
common
/helix/helix_mp3_x86.a:
+ @make -C ../
common
/helix/ X86=1 clean all
.c.o:
.c.o:
- @echo $<
-
@
$(GCC) $(COPT) $(DEFINC) -c $< -o $@
+ @echo
">>>"
$<
+ $(GCC) $(COPT) $(DEFINC) -c $< -o $@
.s.o:
.s.o:
- @echo $<
-
@
$(GCC) $(COPT) $(DEFINC) -c $< -o $@
+ @echo
">>>"
$<
+ $(GCC) $(COPT) $(DEFINC) -c $< -o $@
../../Pico/sound/ym2612.o : ../../Pico/sound/ym2612.c
../../Pico/sound/ym2612.o : ../../Pico/sound/ym2612.c
- @echo $@
- @$(GCC) $(COPT_COMMON) $(DEFINC) -c $< -o $@ # -mtune=arm940t -DEXTERNAL_YM2612
+ @echo ">>>" $@
+ $(GCC) $(COPT_COMMON) $(DEFINC) -c $< -o $@
+
+../../cpu/fame/famec.o : ../../cpu/fame/famec.c ../../cpu/fame/famec_opcodes.h
+ @echo ">>>" $<
+ $(GCC) $(COPT) $(DEFINC) -Wno-unused -c $< -o $@
-# faked asm
-#../../Pico/Draw.o : ../../Pico/Draw.c
-# @echo $<
-# @$(GCC) $(COPT) $(DEFINC) -D_ASM_DRAW_C -c $< -o $@