aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Cercueil2020-01-07 14:26:14 -0300
committerPaul Cercueil2020-02-08 11:44:53 -0300
commit6f1edc3c7fd1f7f58155107d0c99d0ac7d22443b (patch)
treef1a447b8d2de843485cfef1cb197f6f86021da04 /Makefile
parent38c19eff92f3440c9a50f336b2adc9b297925f0c (diff)
downloadpcsx_rearmed-6f1edc3c7fd1f7f58155107d0c99d0ac7d22443b.tar.gz
pcsx_rearmed-6f1edc3c7fd1f7f58155107d0c99d0ac7d22443b.tar.bz2
pcsx_rearmed-6f1edc3c7fd1f7f58155107d0c99d0ac7d22443b.zip
Add support for the Lightrec dynarec
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile38
1 files changed, 32 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index b44c1f2..7afced6 100644
--- a/Makefile
+++ b/Makefile
@@ -78,16 +78,40 @@ endif
libpcsxcore/psxbios.o: CFLAGS += -Wno-nonnull
# dynarec
-ifeq "$(USE_DYNAREC)" "1"
-OBJS += libpcsxcore/new_dynarec/new_dynarec.o libpcsxcore/new_dynarec/arm/linkage_arm.o
-OBJS += libpcsxcore/new_dynarec/backends/psx/pcsxmem.o
+ifeq "$(DYNAREC)" "lightrec"
+CFLAGS += -Ideps/lightning/include -Ideps/lightrec \
+ -I deps/mman -DLIGHTREC -DLIGHTREC_STATIC
+OBJS += libpcsxcore/lightrec/plugin.o
+OBJS += deps/lightning/lib/jit_disasm.o \
+ deps/lightning/lib/jit_memory.o \
+ deps/lightning/lib/jit_names.o \
+ deps/lightning/lib/jit_note.o \
+ deps/lightning/lib/jit_print.o \
+ deps/lightning/lib/jit_size.o \
+ deps/lightning/lib/lightning.o \
+ deps/lightrec/blockcache.o \
+ deps/lightrec/disassembler.o \
+ deps/lightrec/emitter.o \
+ deps/lightrec/interpreter.o \
+ deps/lightrec/lightrec.o \
+ deps/lightrec/memmanager.o \
+ deps/lightrec/optimizer.o \
+ deps/lightrec/regcache.o \
+ deps/lightrec/recompiler.o
+ifeq ($(MMAP_WIN32),1)
+OBJS += deps/mman/mman.o
+endif
+else ifeq "$(DYNAREC)" "ari64"
+OBJS += libpcsxcore/new_dynarec/backends/psx/emu_if.o \
+ libpcsxcore/new_dynarec/new_dynarec.o \
+ libpcsxcore/new_dynarec/arm/linkage_arm.o \
+ libpcsxcore/new_dynarec/backends/psx/pcsxmem.o
+libpcsxcore/new_dynarec/new_dynarec.o: libpcsxcore/new_dynarec/arm/assem_arm.c \
+ libpcsxcore/new_dynarec/backends/psx/pcsxmem_inline.c
else
libpcsxcore/new_dynarec/backends/psx/emu_if.o: CFLAGS += -DDRC_DISABLE
frontend/libretro.o: CFLAGS += -DDRC_DISABLE
endif
-OBJS += libpcsxcore/new_dynarec/backends/psx/emu_if.o
-libpcsxcore/new_dynarec/new_dynarec.o: libpcsxcore/new_dynarec/arm/assem_arm.c \
- libpcsxcore/new_dynarec/backends/psx/pcsxmem_inline.c
ifdef DRC_DBG
libpcsxcore/new_dynarec/backends/psx/emu_if.o: CFLAGS += -D_FILE_OFFSET_BITS=64
CFLAGS += -DDRC_DBG
@@ -284,10 +308,12 @@ CFLAGS += -Ilibretro-common/include
CFLAGS += -DFRONTEND_SUPPORTS_RGB565
CFLAGS += -DHAVE_LIBRETRO
+ifneq ($(DYNAREC),lightrec)
ifeq ($(MMAP_WIN32),1)
OBJS += libpcsxcore/memmap_win32.o
endif
endif
+endif
ifeq "$(USE_PLUGIN_LIB)" "1"
OBJS += frontend/plugin_lib.o