# PS3
else ifeq ($(platform), ps3)
- TARGET := $(TARGET_NAME)_libretro_ps3.a
+ TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
AR = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ar.exe
CFLAGS += -DBLARGG_BIG_ENDIAN=1 -D__ppc__ -DFAMEC_NO_GOTOS
# Lightweight PS3 Homebrew SDK
else ifeq ($(platform), psl1ght)
- TARGET := $(TARGET_NAME)_libretro_psl1ght.a
+ TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(PS3DEV)/ppu/bin/ppu-gcc$(EXE_EXT)
AR = $(PS3DEV)/ppu/bin/ppu-ar$(EXE_EXT)
CFLAGS += -DBLARGG_BIG_ENDIAN=1 -D__ppc__ -DFAMEC_NO_GOTOS
# PSP
else ifeq ($(platform), psp1)
- TARGET := $(TARGET_NAME)_libretro_psp1.a
+ TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = psp-gcc$(EXE_EXT)
AR = psp-ar$(EXE_EXT)
CFLAGS += -G0 -ftracer
# CTR (3DS)
else ifeq ($(platform), ctr)
- TARGET := $(TARGET_NAME)_libretro_ctr.a
+ TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(DEVKITARM)/bin/arm-none-eabi-gcc$(EXE_EXT)
CXX = $(DEVKITARM)/bin/arm-none-eabi-g++$(EXE_EXT)
AR = $(DEVKITARM)/bin/arm-none-eabi-ar$(EXE_EXT)
# Vita
else ifeq ($(platform), vita)
- TARGET := $(TARGET_NAME)_libretro_vita.a
+ TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = arm-vita-eabi-gcc$(EXE_EXT)
AR = arm-vita-eabi-ar$(EXE_EXT)
CFLAGS += -DVITA
# Nintendo Game Cube
else ifeq ($(platform), ngc)
- TARGET := $(TARGET_NAME)_libretro_ngc.a
+ TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
CFLAGS += -DGEKKO -DHW_DOL -mrvl -mcpu=750 -meabi -mhard-float -DBLARGG_BIG_ENDIAN=1 -D__ppc__
# Nintendo Wii
else ifeq ($(platform), wii)
- TARGET := libretro_$(TARGET_NAME)_wii.a
+ TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
CFLAGS += -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float -DBLARGG_BIG_ENDIAN=1 -D__ppc__
# QNX
else ifeq ($(platform), qnx)
- TARGET := $(TARGET_NAME)_libretro_qnx.so
+ TARGET := $(TARGET_NAME)_libretro_$(platform).so
fpic := -fPIC
CC = qcc -Vgcc_ntoarmv7le
CC_AS = $(CC)
endif
ARCH = arm
+# Emscripten
+else ifeq ($(platform), emscripten)
+ TARGET := $(TARGET_NAME)_libretro_$(platform).bc
+ STATIC_LINKING = 1
+ NO_MMAP = 1
+ DONT_COMPILE_IN_ZLIB = 1
+
# GCW0
else ifeq ($(platform), gcw0)
TARGET := $(TARGET_NAME)_libretro.so