From: twinaphex Date: Wed, 7 Oct 2020 21:42:27 +0000 (+0200) Subject: Add Emscripten target X-Git-Tag: r24l~624 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db0d70df74dacac69856d38fe1b38c3c3d1c05e2;p=pcsx_rearmed.git Add Emscripten target --- diff --git a/Makefile.libretro b/Makefile.libretro index 625972a4..3f642ae5 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -380,6 +380,14 @@ else ifneq (,$(findstring armv,$(platform))) ARCH = arm DYNAREC = ari64 +# Emscripten +else ifeq ($(platform), emscripten) + TARGET := $(TARGET_NAME)_libretro_$(platform).bc + fpic := -fPIC + SHARED := -shared -Wl,--no-undefined -Wl,--version-script=link.T + CFLAGS += -DNO_DYLIB -DNO_SOCKET + STATIC_LINKING = 1 + # Windows else TARGET := $(TARGET_NAME)_libretro.dll