aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex2020-10-07 23:42:27 +0200
committertwinaphex2020-10-07 23:42:27 +0200
commitdb0d70df74dacac69856d38fe1b38c3c3d1c05e2 (patch)
tree504c890998f88580b1850c16a0f05aee3aad0ff6
parenta4f3ff6ad0d3e2edf8b8f519a1635450c0594394 (diff)
downloadpcsx_rearmed-db0d70df74dacac69856d38fe1b38c3c3d1c05e2.tar.gz
pcsx_rearmed-db0d70df74dacac69856d38fe1b38c3c3d1c05e2.tar.bz2
pcsx_rearmed-db0d70df74dacac69856d38fe1b38c3c3d1c05e2.zip
Add Emscripten target
-rw-r--r--Makefile.libretro8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.libretro b/Makefile.libretro
index 625972a..3f642ae 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