summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAutechre2021-03-27 00:31:51 +0100
committerGitHub2021-03-27 00:31:51 +0100
commit08d2fa1ebe9e259da228dfa5e5086bd5b62c4347 (patch)
tree73d1a6eba45d5ed80a698b254332c8e9de2b7bd2 /Makefile
parent53cc4a2475ebc8cc510dc97fe8db95939230cee9 (diff)
parent452ba76ba898c5fc6d176ae8f8e2d77cf15f64a2 (diff)
downloadpicogpsp-08d2fa1ebe9e259da228dfa5e5086bd5b62c4347.tar.gz
picogpsp-08d2fa1ebe9e259da228dfa5e5086bd5b62c4347.tar.bz2
picogpsp-08d2fa1ebe9e259da228dfa5e5086bd5b62c4347.zip
Merge pull request #120 from davidgfnet/master
Fixes and improvements for MIPS and ARM
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a5f2649..dfc7c37 100644
--- a/Makefile
+++ b/Makefile
@@ -362,6 +362,15 @@ else ifneq (,$(findstring armv,$(platform)))
endif
LDFLAGS := -Wl,--no-undefined
+# MIPS
+else ifeq ($(platform), mips32)
+ TARGET := $(TARGET_NAME)_libretro.so
+ SHARED := -shared -nostdlib -Wl,--version-script=link.T
+ fpic := -fPIC -DPIC
+ CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
+ HAVE_DYNAREC := 1
+ CPU_ARCH := mips
+
# emscripten
else ifeq ($(platform), emscripten)
TARGET := $(TARGET_NAME)_libretro_$(platform).bc