X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.libretro;h=26ee336c3eec22d81740880a3fa5890b06a899f4;hb=4e0771f57fdc6d3410a11c7731d9e8dbc3c026f6;hp=e0dfe2514fff2ea13bb75645b98cd94d13b39cd5;hpb=a109c90ae4f8456c9e33df026047dec84ef3decb;p=pcsx_rearmed.git diff --git a/Makefile.libretro b/Makefile.libretro index e0dfe251..26ee336c 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -198,6 +198,19 @@ else ifeq ($(platform), rpi2) fpic := -fPIC SHARED := -shared -Wl,--no-undefined CFLAGS += -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard + ASFLAGS += -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard + HAVE_NEON = 1 + ARCH = arm + BUILTIN_GPU = neon + USE_DYNAREC = 1 + +#Raspberry Pi 3 +else ifeq ($(platform), rpi3) + TARGET := $(TARGET_NAME)_libretro.so + fpic := -fPIC + SHARED := -shared -Wl,--no-undefined + CFLAGS += -marm -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard + ASFLAGS += -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard HAVE_NEON = 1 ARCH = arm BUILTIN_GPU = neon @@ -254,6 +267,17 @@ endif MAIN_LDFLAGS += -shared MAIN_LDLIBS += $(LIBM) $(LIBZ) +# try to autodetect stuff for the lazy +ifndef ARCH +ARCH = $(shell $(CC) -dumpmachine | awk -F- '{print $$1}') +endif +ifndef HAVE_NEON +HAVE_NEON = $(shell $(CC) -E -dD - < /dev/null 2> /dev/null | grep -q __ARM_NEON__ && echo 1 || echo 0) +endif +ifeq ($(shell ld -v 2> /dev/null | awk '{print $$1}'),GNU) +MAIN_LDFLAGS += -Wl,--no-undefined +endif + TARGET ?= libretro.so PLATFORM = libretro BUILTIN_GPU ?= peops