X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=linux%2FMakefile;h=0af279c7af685d0e8ab6be42309d9a017913c164;hb=5ecedd0cc2257b564dfcf68cb0e9d7d541bfc2b8;hp=90a149c67beb0b37616e6bd7af38d946b608dcc8;hpb=a52e1f622222d0d70cda3ee9fddd87bcd32f1629;p=libpicofe.git diff --git a/linux/Makefile b/linux/Makefile index 90a149c..0af279c 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -1,6 +1,7 @@ # settings #use_musashi = 1 +use_fame = 1 #use_mz80 = 1 # profile = 1 @@ -12,8 +13,8 @@ STRIP = strip AS = gcc ifeq "$(profile)" "1" -COPT_COMMON = -s -O3 -ftracer -fstrength-reduce -Wall -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math -fprofile-generate # -static -COPT = $(COPT_COMMON) # -mtune=arm920t +COPT_COMMON = -s -O3 -ftracer -fstrength-reduce -Wall -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math -fprofile-generate +COPT = $(COPT_COMMON) else COPT = -ggdb -Wall -fno-strict-aliasing # -pg -O3 -ftracer -fstrength-reduce -funroll-loops -fomit-frame-pointer -ffast-math COPT_COMMON = $(COPT) @@ -51,22 +52,26 @@ OBJS += ../../unzip/unzip.o ../../unzip/unzip_stream.o ifeq "$(use_musashi)" "1" DEFINC += -DEMU_M68K OBJS += ../../cpu/musashi/m68kops.o ../../cpu/musashi/m68kcpu.o -else +endif +ifeq "$(use_fame)" "1" DEFINC += -DEMU_F68K OBJS += ../../cpu/fame/famec.o endif # z80 ifeq "$(use_mz80)" "1" -CFLAGS += -D_USE_MZ80 +DEFINC += -D_USE_MZ80 OBJS += ../../cpu/mz80/mz80.o else -CFLAGS += -D_USE_CZ80 +DEFINC += -D_USE_CZ80 OBJS += ../../cpu/cz80/cz80.o endif - -# faked asm -#DEFINC += -D_ASM_DRAW_C -#OBJS += fakedasm.o +# misc +ifeq "$(use_fame)" "1" +ifeq "$(use_musashi)" "1" +OBJS += ../../Pico/Debug.o +OBJS += ../../cpu/musashi/m68kdasm.o +endif +endif all: PicoDrive @@ -78,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 : @@ -96,18 +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 $@ -../../cpu/fame/famec.o : ../../cpu/fame/famec.c - @echo $< - @$(GCC) $(COPT) $(DEFINC) -Wno-unused -c $< -o $@