emscripten support

This commit is contained in:
ToadKing 2013-09-15 17:10:42 -04:00
parent d973d7d39e
commit d3fbc1af60

View File

@ -5,6 +5,10 @@ FRONTEND_SUPPORTS_RGB565 = 1
GENPLUS_SRC_DIR := core
LIBRETRO_DIR := libretro
ifneq ($(EMSCRIPTEN),)
platform = emscripten
endif
ifeq ($(platform),)
platform = unix
ifeq ($(shell uname -a),)
@ -127,6 +131,9 @@ else ifneq (,$(findstring hardfloat,$(platform)))
PLATFORM_DEFINES += -mfloat-abi=hard
endif
PLATFORM_DEFINES += -DARM
else ifeq ($(platform), emscripten)
TARGET := $(TARGET_NAME)_libretro_emscripten.bc
ENDIANNESS_DEFINES := -DLSB_FIRST
else
TARGET := $(TARGET_NAME)_libretro.dll
CC = gcc
@ -138,13 +145,13 @@ endif
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g
else
ifeq ($(platform),qnx)
else ifeq ($(platform),qnx)
CFLAGS += -Os -DNDEBUG
else ifeq ($(platform), emscripten)
CFLAGS += -O2 -DNDEBUG
else
CFLAGS += -O3 -DNDEBUG
endif
endif
LIBRETRO_SRC := $(GENPLUS_SRC_DIR)/genesis.c \
$(GENPLUS_SRC_DIR)/vdp_ctrl.c \