X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=linux%2FMakefile;h=90a149c67beb0b37616e6bd7af38d946b608dcc8;hb=a52e1f622222d0d70cda3ee9fddd87bcd32f1629;hp=e3aac31f9741bdba56427dc93d9f778f70c16780;hpb=703e4c7bbb2cfd549797e2092e4d863547b3e87c;p=libpicofe.git diff --git a/linux/Makefile b/linux/Makefile index e3aac31..90a149c 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -1,6 +1,8 @@ # settings -dprint = 1 +#use_musashi = 1 +#use_mz80 = 1 + # profile = 1 @@ -46,11 +48,21 @@ 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 -DEFINC += -D_USE_MZ80 +else +DEFINC += -DEMU_F68K +OBJS += ../../cpu/fame/famec.o +endif +# z80 +ifeq "$(use_mz80)" "1" +CFLAGS += -D_USE_MZ80 OBJS += ../../cpu/mz80/mz80.o +else +CFLAGS += -D_USE_CZ80 +OBJS += ../../cpu/cz80/cz80.o +endif # faked asm #DEFINC += -D_ASM_DRAW_C @@ -95,3 +107,7 @@ PicoDrive : $(OBJS) ../common/helix/helix_mp3_x86.a @echo $@ @$(GCC) $(COPT_COMMON) $(DEFINC) -c $< -o $@ # -mtune=arm940t -DEXTERNAL_YM2612 +../../cpu/fame/famec.o : ../../cpu/fame/famec.c + @echo $< + @$(GCC) $(COPT) $(DEFINC) -Wno-unused -c $< -o $@ +