X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Flinux%2FMakefile;h=1adb5da3a4ed31e6ec16c9f109b4346ff1f33eff;hb=e898de13cdd5416507675f175958204c5e9f27e9;hp=965b52beebfe1026a4e004413ed5f4af9312cdcd;hpb=be20816c4c487c4b114aa444b1a5819d5785b118;p=picodrive.git diff --git a/platform/linux/Makefile b/platform/linux/Makefile index 965b52b..1adb5da 100644 --- a/platform/linux/Makefile +++ b/platform/linux/Makefile @@ -2,6 +2,8 @@ use_musashi = 1 #use_fame = 1 #use_mz80 = 1 +use_sh2drc = 1 +drc_debug = 1 #profile = 1 #fake_in_gp2x = 1 @@ -72,7 +74,22 @@ DEFINES += _USE_CZ80 OBJS += cpu/cz80/cz80.o endif # sh2 -OBJS += cpu/sh2mame/sh2pico.o +OBJS += cpu/sh2/sh2.o +ifeq "$(use_sh2drc)" "1" +DEFINES += DRC_SH2 DRC_TMP +OBJS += cpu/sh2/mame/sh2pico.o +OBJS += cpu/sh2/compiler.o +OBJS += cpu/sh2/stub_x86.o +ifeq "$(drc_debug)" "1" +DEFINES += DRC_DEBUG=1 +OBJS += cpu/sh2/mame/sh2dasm.o +OBJS += host_dasm.o +LDFLAGS += -lbfd -lopcodes +endif +else +OBJS += cpu/sh2/mame/sh2pico.o +endif +OBJS += cpu/drc/cmn.o # misc ifeq "$(use_fame)" "1" ifeq "$(use_musashi)" "1" @@ -83,9 +100,10 @@ endif CFLAGS += $(addprefix -D,$(DEFINES)) vpath %.c = ../.. +vpath %.asm = ../.. DIRS = platform platform/gp2x platform/common pico pico/cd pico/pico pico/sound pico/carthw/svp \ - pico/32x zlib unzip cpu cpu/musashi cpu/fame cpu/mz80 cpu/cz80 cpu/sh2mame + pico/32x zlib unzip cpu cpu/musashi cpu/fame cpu/mz80 cpu/cz80 cpu/sh2/mame cpu/drc all: mkdirs PicoDrive clean: tidy @@ -124,6 +142,9 @@ cpu/mz80/mz80.o : ../../cpu/mz80/mz80.asm .s.o: @echo ">>>" $< $(CC) $(CFLAGS) -c $< -o $@ +%.o : %.asm + @echo ">>>" $< + nasm -f elf $< -o $@ cpu/fame/famec.o : ../../cpu/fame/famec.c ../../cpu/fame/famec_opcodes.h