DEBUG ?= 0
WANT_ZLIB ?= 1
+HAVE_CHD ?= 1
ifeq ($(platform),)
platform = unix
ifneq ($(findstring SunOS,$(shell uname -s)),)
CC = gcc
endif
+ifeq ($(ARCH), arm)
+ifneq ($(findstring __thumb__,$(shell $(CC) -E -dD $(CFLAGS) include/arm_features.h)),)
+ # must disable thumb as recompiler can't handle it
+ CFLAGS += -marm
+endif
+endif
else ifeq ($(platform), linux-portable)
TARGET := $(TARGET_NAME)_libretro.so
DRC_CACHE_BASE = 0
ARCH = arm
HAVE_NEON = 0
-
+ HAVE_CHD = 0
STATIC_LINKING = 1
# Xbox 360
LDFLAGS += -static-libgcc -static-libstdc++
endif
endif
+
+# (armv8 a35, hard point, neon based) ###
+# PlayStation Classic
+else ifeq ($(platform), classic_armv8_a35)
+ TARGET := $(TARGET_NAME)_libretro.so
+ fpic := -fPIC
+ CFLAGS += -Ofast \
+ -fmerge-all-constants -fno-math-errno -march=armv8-a \
+ -marm -mcpu=cortex-a35 -mtune=cortex-a35 -mfpu=neon-fp-armv8 -mfloat-abi=hard
+ HAVE_NEON = 1
+ ARCH = arm
+ BUILTIN_GPU = neon
+ USE_DYNAREC = 1
+ LDFLAGS += -static-libgcc -static-libstdc++ -fPIC
+
#######################################
# ARM