Add Emscripten target
authortwinaphex <libretro@gmail.com>
Wed, 7 Oct 2020 21:42:27 +0000 (23:42 +0200)
committertwinaphex <libretro@gmail.com>
Wed, 7 Oct 2020 21:42:27 +0000 (23:42 +0200)
Makefile.libretro

index 625972a..3f642ae 100644 (file)
@@ -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