X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Flinux%2FMakefile;h=9dd365f7040492ae1e361bb5cf7342074ffa2499;hb=03e4f2a349247334666c87abe3a908df72d23051;hp=e3aac31f9741bdba56427dc93d9f778f70c16780;hpb=7d4906bfc93ced40a544534f433f06b00add52b0;p=picodrive.git diff --git a/platform/linux/Makefile b/platform/linux/Makefile index e3aac31..9dd365f 100644 --- a/platform/linux/Makefile +++ b/platform/linux/Makefile @@ -1,6 +1,9 @@ # settings -dprint = 1 +#use_musashi = 1 +use_fame = 1 +#use_mz80 = 1 + # profile = 1 @@ -46,15 +49,29 @@ OBJS += ../../zlib/gzio.o ../../zlib/inffast.o ../../zlib/inflate.o ../../zlib/i # unzip OBJS += ../../unzip/unzip.o ../../unzip/unzip_stream.o # CPU cores +ifeq "$(use_musashi)" "1" 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 - -# 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 @@ -66,8 +83,8 @@ tidy: @make -C ../common/helix/ X86=1 clean PicoDrive : $(OBJS) ../common/helix/helix_mp3_x86.a - @echo $@ - @$(GCC) $(COPT) $^ $(LDFLAGS) -lm -lpng -Wl,-Map=PicoDrive.map -o $@ + @echo ">>>" $@ + $(GCC) $(COPT) $^ $(LDFLAGS) -lm -lpng -Wl,-Map=PicoDrive.map -o $@ ../../cpu/musashi/m68kops.c : @@ -84,14 +101,19 @@ PicoDrive : $(OBJS) ../common/helix/helix_mp3_x86.a @make -C ../common/helix/ X86=1 clean all .c.o: - @echo $< - @$(GCC) $(COPT) $(DEFINC) -c $< -o $@ + @echo ">>>" $< + $(GCC) $(COPT) $(DEFINC) -c $< -o $@ .s.o: - @echo $< - @$(GCC) $(COPT) $(DEFINC) -c $< -o $@ + @echo ">>>" $< + $(GCC) $(COPT) $(DEFINC) -c $< -o $@ ../../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 $@ +