notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Fix input not working in some games"
[pcsx_rearmed.git]
/
Makefile.libretro
diff --git
a/Makefile.libretro
b/Makefile.libretro
index
11093b5
..
3034cdf
100644
(file)
--- a/
Makefile.libretro
+++ b/
Makefile.libretro
@@
-1,6
+1,7
@@
# Makefile for PCSX ReARMed (libretro)
DEBUG=0
# Makefile for PCSX ReARMed (libretro)
DEBUG=0
+WANT_ZLIB=1
ifeq ($(platform),)
platform = unix
ifeq ($(platform),)
platform = unix
@@
-26,13
+27,16
@@
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
ifneq ($(GIT_VERSION)," unknown")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
+ifneq ($(WANT_ZLIB),1)
LIBZ := -lz
LIBZ := -lz
+endif
LIBPTHREAD := -lpthread
ifneq ($(findstring Haiku,$(shell uname -s)),)
LIBDL := -lroot -lnetwork
else
LIBDL := -ldl
endif
LIBPTHREAD := -lpthread
ifneq ($(findstring Haiku,$(shell uname -s)),)
LIBDL := -lroot -lnetwork
else
LIBDL := -ldl
endif
+LIBM := -lm
MMAP_WIN32=0
EXTRA_LDFLAGS =
MMAP_WIN32=0
EXTRA_LDFLAGS =
@@
-51,13
+55,19
@@
else ifeq ($(platform), linux-portable)
LIBZ :=
LIBPTHREAD :=
LIBDL :=
LIBZ :=
LIBPTHREAD :=
LIBDL :=
+ LIBM :=
NO_UNDEF_CHECK = 1
# OS X
else ifeq ($(platform), osx)
NO_UNDEF_CHECK = 1
# OS X
else ifeq ($(platform), osx)
+ USE_DYNAREC ?= 1
TARGET := $(TARGET_NAME)_libretro.dylib
fpic := -fPIC
fpic += -mmacosx-version-min=10.1
TARGET := $(TARGET_NAME)_libretro.dylib
fpic := -fPIC
fpic += -mmacosx-version-min=10.1
+ifeq ($(USE_DYNAREC),0)
+ # Override
+ TARGET := $(TARGET_NAME)_interpreter_libretro.dylib
+endif
# iOS
else ifeq ($(platform),$(filter $(platform),ios-arm64))
# iOS
else ifeq ($(platform),$(filter $(platform),ios-arm64))
@@
-70,10
+80,10
@@
else ifeq ($(platform),$(filter $(platform),ios-arm64))
else ifneq (,$(findstring ios,$(platform)))
ARCH := arm
USE_DYNAREC ?= 1
else ifneq (,$(findstring ios,$(platform)))
ARCH := arm
USE_DYNAREC ?= 1
- HAVE_NEON = 1
- BUILTIN_GPU = neon
+
HAVE_NEON = 1
+
BUILTIN_GPU = neon
TARGET := $(TARGET_NAME)_libretro_ios.dylib
TARGET := $(TARGET_NAME)_libretro_ios.dylib
-ifeq ($(USE_DYNAREC),
1
)
+ifeq ($(USE_DYNAREC),
0
)
# Override
TARGET := $(TARGET_NAME)_interpreter_libretro_ios.dylib
endif
# Override
TARGET := $(TARGET_NAME)_interpreter_libretro_ios.dylib
endif
@@
-167,7
+177,7
@@
else ifeq ($(platform), ctr)
CFLAGS += -Werror=implicit-function-declaration
# CFLAGS += -DPCSX
CFLAGS += -Werror=implicit-function-declaration
# CFLAGS += -DPCSX
-
BUILTIN_GPU = unai
+
#
BUILTIN_GPU = unai
USE_DYNAREC = 1
DRC_CACHE_BASE = 0
ARCH = arm
USE_DYNAREC = 1
DRC_CACHE_BASE = 0
ARCH = arm
@@
-212,6
+222,7
@@
else ifeq ($(platform), qnx)
MAIN_LDLIBS += -lsocket
LIBPTHREAD :=
LIBDL :=
MAIN_LDLIBS += -lsocket
LIBPTHREAD :=
LIBDL :=
+ LIBM :=
#Raspberry Pi 2
else ifeq ($(platform), rpi2)
#Raspberry Pi 2
else ifeq ($(platform), rpi2)
@@
-274,7
+285,9
@@
else ifeq ($(platform), classic_armv7_a7)
else ifneq (,$(findstring armv,$(platform)))
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
else ifneq (,$(findstring armv,$(platform)))
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
+ HAVE_NEON = 0
DRC_CACHE_BASE = 0
DRC_CACHE_BASE = 0
+ BUILTIN_GPU = peops
ifneq (,$(findstring cortexa8,$(platform)))
CFLAGS += -marm -mcpu=cortex-a8
ASFLAGS += -mcpu=cortex-a8
ifneq (,$(findstring cortexa8,$(platform)))
CFLAGS += -marm -mcpu=cortex-a8
ASFLAGS += -mcpu=cortex-a8
@@
-314,11
+327,12
@@
else
MAIN_LDLIBS += -lws2_32
LIBPTHREAD :=
LIBDL :=
MAIN_LDLIBS += -lws2_32
LIBPTHREAD :=
LIBDL :=
+ LIBM :=
endif
CFLAGS += $(fpic)
MAIN_LDFLAGS += -shared
endif
CFLAGS += $(fpic)
MAIN_LDFLAGS += -shared
-MAIN_LDLIBS += $(LIBPTHREAD) $(LIBDL) $(LIBZ)
+MAIN_LDLIBS += $(LIBPTHREAD) $(LIB
M) $(LIB
DL) $(LIBZ)
# try to autodetect stuff for the lazy
ifndef ARCH
# try to autodetect stuff for the lazy
ifndef ARCH
@@
-349,13
+363,14
@@
SOUND_DRIVERS = libretro
PLUGINS =
NO_CONFIG_MAK = yes
PLUGINS =
NO_CONFIG_MAK = yes
-libretro_all: all
-ifeq ($(platform),ios)
-ifeq ($(USE_DYNAREC),1)
- make -f Makefile.libretro USE_DYNAREC=0 platform=$(platform) clean
- make -f Makefile.libretro USE_DYNAREC=0 platform=$(platform)
-endif
-endif
+# what does this do
+#libretro_all: all
+#ifeq ($(platform),ios)
+#ifeq ($(USE_DYNAREC),1)
+# make -f Makefile.libretro USE_DYNAREC=0 platform=$(platform) clean
+# make -f Makefile.libretro USE_DYNAREC=0 platform=$(platform)
+#endif
+#endif
include Makefile
include Makefile