Allow threaded rendering for peops and enable on unix
[pcsx_rearmed.git] / Makefile
index 9866050..993b05e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -97,7 +97,8 @@ OBJS += deps/lightning/lib/jit_disasm.o \
                deps/lightrec/memmanager.o \
                deps/lightrec/optimizer.o \
                deps/lightrec/regcache.o \
-               deps/lightrec/recompiler.o
+               deps/lightrec/recompiler.o \
+               deps/lightrec/reaper.o
 ifeq ($(MMAP_WIN32),1)
 CFLAGS += -Ideps/mman
 OBJS += deps/mman/mman.o
@@ -192,6 +193,10 @@ endif
 plugins/gpu_unai/gpulib_if.o: CFLAGS += -DREARMED -O3 
 CC_LINK = $(CXX)
 endif
+ifeq "$(THREAD_RENDERING)" "1"
+CFLAGS += -DTHREAD_RENDERING
+OBJS += plugins/gpulib/gpulib_thread_if.o
+endif
 
 # cdrcimg
 OBJS += plugins/cdrcimg/cdrcimg.o