notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4f3ff6
)
Add Emscripten target
author
twinaphex
<libretro@gmail.com>
Wed, 7 Oct 2020 21:42:27 +0000
(23:42 +0200)
committer
twinaphex
<libretro@gmail.com>
Wed, 7 Oct 2020 21:42:27 +0000
(23:42 +0200)
Makefile.libretro
patch
|
blob
|
blame
|
history
diff --git
a/Makefile.libretro
b/Makefile.libretro
index
625972a
..
3f642ae
100644
(file)
--- a/
Makefile.libretro
+++ b/
Makefile.libretro
@@
-380,6
+380,14
@@
else ifneq (,$(findstring armv,$(platform)))
ARCH = arm
DYNAREC = ari64
+# Emscripten
+else ifeq ($(platform), emscripten)
+ TARGET := $(TARGET_NAME)_libretro_$(platform).bc
+ fpic := -fPIC
+ SHARED := -shared -Wl,--no-undefined -Wl,--version-script=link.T
+ CFLAGS += -DNO_DYLIB -DNO_SOCKET
+ STATIC_LINKING = 1
+
# Windows
else
TARGET := $(TARGET_NAME)_libretro.dll