From db0d70df74dacac69856d38fe1b38c3c3d1c05e2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 7 Oct 2020 23:42:27 +0200 Subject: Add Emscripten target --- Makefile.libretro | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile.libretro') 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 -- cgit v1.2.3