Merge pull request #349 from negativeExponent/unai_plugin_update
[pcsx_rearmed.git] / Makefile.libretro
index f58f284..65ca1dc 100644 (file)
@@ -82,7 +82,11 @@ else ifeq ($(platform),$(filter $(platform),ios-arm64))
        USE_DYNAREC = 0
        HAVE_NEON = 0
        BUILTIN_GPU = peops
-       TARGET := $(TARGET_NAME)_libretro_ios.dylib
+       TARGET := $(TARGET_NAME)_interpreter_libretro_ios.dylib
+
+       CC = clang -arch arm64 -isysroot $(IOSSDK) -miphoneos-version-min=8.0
+       CXX = clang++ -arch arm64 -isysroot $(IOSSDK) -miphoneos-version-min=8.0
+       CFLAGS += -marm -DIOS
 
 else ifneq (,$(findstring ios,$(platform)))
        ARCH := arm
@@ -184,12 +188,11 @@ else ifeq ($(platform), ctr)
        CFLAGS += -Werror=implicit-function-declaration
 
 #      CFLAGS += -DPCSX
-#      BUILTIN_GPU = unai
+       BUILTIN_GPU = unai
        USE_DYNAREC = 1
        DRC_CACHE_BASE = 0
        ARCH = arm
        HAVE_NEON = 0
-       HAVE_CHD = 0
        STATIC_LINKING = 1
 
 # Xbox 360
@@ -253,6 +256,17 @@ else ifeq ($(platform), rpi3)
        BUILTIN_GPU = neon
        USE_DYNAREC = 1
 
+#Raspberry Pi 4
+else ifeq ($(platform), rpi4)
+       TARGET := $(TARGET_NAME)_libretro.so
+       fpic := -fPIC
+       CFLAGS += -marm -mcpu=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard
+       ASFLAGS += -mcpu=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard
+       HAVE_NEON = 1
+       ARCH = arm
+       BUILTIN_GPU = neon
+       USE_DYNAREC = 1
+
 # Classic Platforms ####################
 # Platform affix = classic_<ISA>_<µARCH>
 # Help at https://modmyclassic.com/comp