Update both test cores' Makefile for Emscripten

This commit is contained in:
twinaphex 2015-08-20 01:11:00 +02:00
parent fc25e9310f
commit b08c7f752d
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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