From b08c7f752d5fc3126902a3465443e8eb21cd5caf Mon Sep 17 00:00:00 2001 From: twinaphex <libretro@gmail.com> Date: Thu, 20 Aug 2015 01:11:00 +0200 Subject: [PATCH] Update both test cores' Makefile for Emscripten --- cores/libretro-test-gl/Makefile | 6 ++++++ cores/libretro-test/Makefile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cores/libretro-test-gl/Makefile b/cores/libretro-test-gl/Makefile index 3d14a3cd52..cf86540aa9 100644 --- a/cores/libretro-test-gl/Makefile +++ b/cores/libretro-test-gl/Makefile @@ -1,3 +1,6 @@ +ifneq ($(EMSCRIPTEN),) + platform = emscripten +endif ifeq ($(platform),) platform = unix @@ -102,6 +105,9 @@ else ifneq (,$(findstring hardfloat,$(platform))) CFLAGS += -mfloat-abi=hard endif CFLAGS += -DARM +# emscripten +else ifeq ($(platform), emscripten) + TARGET := $(TARGET_NAME)_libretro_emscripten.bc else CC = gcc TARGET := $(TARGET_NAME)_libretro.dll diff --git a/cores/libretro-test/Makefile b/cores/libretro-test/Makefile index 8556c99756..36cd6c3b18 100644 --- a/cores/libretro-test/Makefile +++ b/cores/libretro-test/Makefile @@ -43,7 +43,7 @@ else ifneq (,$(findstring qnx,$(platform))) fpic := -fPIC SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined else ifeq ($(platform), emscripten) - TARGET := $(TARGET_NAME)_libretro_emscripten.so + TARGET := $(TARGET_NAME)_libretro_emscripten.bc fpic := -fPIC SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined else