aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortwinaphex2016-09-07 05:17:38 +0200
committertwinaphex2016-09-07 05:17:38 +0200
commit2044c6c30f918a9987581c9e316940e88784b20e (patch)
treea5e036acfca79cada7ef700a8b82a1f449b429ec /Makefile
parent76b73ffc0973061695004010bc3323400832b3d7 (diff)
downloadsnesemu-2044c6c30f918a9987581c9e316940e88784b20e.tar.gz
snesemu-2044c6c30f918a9987581c9e316940e88784b20e.tar.bz2
snesemu-2044c6c30f918a9987581c9e316940e88784b20e.zip
Add Emscripten target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index b63037b..845cb24 100644
--- a/Makefile
+++ b/Makefile
@@ -113,7 +113,7 @@ include $(THEOS)/makefiles/common.mk
LIBRARY_NAME = $(TARGET_NAME)_libretro_ios
else ifeq ($(platform), qnx)
- TARGET := $(TARGET_NAME)_libretro_qnx.so
+ TARGET := $(TARGET_NAME)_libretro_$(platform).so
fpic := -fPIC
SHARED := -shared -Wl,--no-undefined -Wl,--version-script=link.T
CC = qcc -Vgcc_ntoarmv7le
@@ -121,7 +121,7 @@ else ifeq ($(platform), qnx)
# 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
CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-g++.exe
AR = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ar.exe
@@ -141,7 +141,7 @@ else ifeq ($(platform), sncps3)
# PSP1
else ifeq ($(platform), psp1)
- TARGET := $(TARGET_NAME)_libretro_psp1.a
+ TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = psp-gcc$(EXE_EXT)
CXX = psp-g++$(EXE_EXT)
AR = psp-ar$(EXE_EXT)
@@ -157,7 +157,7 @@ else ifeq ($(platform), psp1)
# Vita
else ifeq ($(platform), vita)
- TARGET := $(TARGET_NAME)_libretro_vita.a
+ TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = arm-vita-eabi-gcc$(EXE_EXT)
CXX = arm-vita-eabi-g++$(EXE_EXT)
AR = arm-vita-eabi-ar$(EXE_EXT)
@@ -168,7 +168,7 @@ else ifeq ($(platform), vita)
# 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)
@@ -182,7 +182,7 @@ else ifeq ($(platform), ctr)
# 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 -D__ppc__ -DMSB_FIRST
@@ -190,12 +190,16 @@ else ifeq ($(platform), ngc)
# Nintendo Wii
else ifeq ($(platform), wii)
- TARGET := $(TARGET_NAME)_libretro_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 -D__ppc__ -DMSB_FIRST
STATIC_LINKING = 1
+else ifeq ($(platform), emscripten)
+ TARGET := $(TARGET_NAME)_libretro_$(platform).bc
+ STATIC_LINKING = 1
+
# GCW0
else ifeq ($(platform), gcw0)
TARGET := $(TARGET_NAME)_libretro.so