X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=d1585a17594b8664bab62f94fe3633fa8ac5cd60;hb=437b1e617808119c3a24a72c77cd2fa86a5d3220;hp=bff1a1c3939e8f2fedbdfbf06b05ae751825f193;hpb=aa314e8ebc2281c4b2d3db3378f143de5d68f335;p=pcsx_rearmed.git diff --git a/Makefile b/Makefile index bff1a1c3..d1585a17 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,7 @@ CFLAGS += -DPCNT endif LIGHTREC_CUSTOM_MAP ?= 0 +CFLAGS += -DLIGHTREC_CUSTOM_MAP=$(LIGHTREC_CUSTOM_MAP) # core OBJS += libpcsxcore/cdriso.o libpcsxcore/cdrom.o libpcsxcore/cheat.o libpcsxcore/database.o \ @@ -91,10 +92,9 @@ libpcsxcore/psxbios.o: CFLAGS += -Wno-nonnull # dynarec ifeq "$(DYNAREC)" "lightrec" CFLAGS += -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec \ - -DLIGHTREC -DLIGHTREC_STATIC \ - -DLIGHTREC_CUSTOM_MAP=$(LIGHTREC_CUSTOM_MAP) -LDLIBS += -lrt + -DLIGHTREC -DLIGHTREC_STATIC -DHAVE_MMAP ifeq ($(LIGHTREC_CUSTOM_MAP),1) +LDLIBS += -lrt OBJS += libpcsxcore/lightrec/mem.o endif OBJS += libpcsxcore/lightrec/plugin.o