MMAP_WIN32 = 0
EXTRA_LDFLAGS =
+# select some defaults
+ifneq (,$(findstring $(ARCH_DETECTED),arm aarch64))
+ DYNAREC = ari64
+ifneq ($(findstring __thumb__,$(shell $(CC) -E -dD $(CFLAGS) include/arm_features.h)),)
+ # must disable thumb as ari64 can't handle it
+ CFLAGS += -marm
+endif
+endif
+ifneq (,$(findstring $(ARCH_DETECTED),x86_64 aarch64))
+ BUILTIN_GPU = neon
+endif
+
+# platform specific options
+
# Unix
ifeq ($(platform), unix)
TARGET := $(TARGET_NAME)_libretro.so
ifneq ($(findstring SunOS,$(shell uname -s)),)
CC = gcc
endif
-ifneq (,$(findstring $(ARCH_DETECTED),arm aarch64))
- DYNAREC = ari64
-
-ifneq ($(findstring __thumb__,$(shell $(CC) -E -dD $(CFLAGS) include/arm_features.h)),)
- # must disable thumb as ari64 can't handle it
- CFLAGS += -marm
-endif
-endif
# ODROIDN2
else ifneq (,$(findstring CortexA73_G12B,$(platform)))
CC = cc -arch arm64 -isysroot $(IOSSDK)
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
ARCH := arm64
- HAVE_NEON = 0
- BUILTIN_GPU = peops
+ BUILTIN_GPU = neon
+ HAVE_NEON = 1
DYNAREC = 0
else
CC = cc -arch armv7 -isysroot $(IOSSDK)
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
endif
- CFLAGS += -DIOS -DTVOS -marm
+ CFLAGS += -DIOS -DTVOS
CC = cc -arch arm64 -isysroot $(IOSSDK)
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
ARCH := arm64
- HAVE_NEON = 0
- BUILTIN_GPU = peops
+ BUILTIN_GPU = neon
+ HAVE_NEON = 1
DYNAREC = 0
CC_AS = perl ./tools/gas-preprocessor.pl $(CC)
# Windows
else
TARGET := $(TARGET_NAME)_libretro.dll
- BUILTIN_GPU = peops
PLATFORM = libretro
MAIN_LDFLAGS += -static-libgcc -static-libstdc++ -s
CFLAGS += -D__WIN32__ -DNO_DYLIB