From: Paul Cercueil Date: Mon, 30 May 2022 17:23:02 +0000 (+0100) Subject: Makefile: Fix build on Windows and Android X-Git-Tag: r24l~472^2~3 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a017aca94ee3ba2f59e2824a590d0d5ab37990cf;p=pcsx_rearmed.git Makefile: Fix build on Windows and Android Fix build under MinGW where the rt library wasn't found, and on Android where the dynarec isn't Lightrec but Ari64. Signed-off-by: Paul Cercueil --- diff --git a/Makefile b/Makefile index bff1a1c3..de2641b9 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 ifeq ($(LIGHTREC_CUSTOM_MAP),1) +LDLIBS += -lrt OBJS += libpcsxcore/lightrec/mem.o endif OBJS += libpcsxcore/lightrec/plugin.o