aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpu_neon/Makefile
diff options
context:
space:
mode:
authornotaz2011-12-10 23:52:12 +0200
committernotaz2011-12-11 01:39:26 +0200
commit7d993ee2dec1905c689ec0787f6543247fae665c (patch)
treebab7c2b31caaca0635e70b62069cfae51909c561 /plugins/gpu_neon/Makefile
parent9fe27e257939224d5a85975dee39f63f50b7e3dc (diff)
downloadpcsx_rearmed-7d993ee2dec1905c689ec0787f6543247fae665c.tar.gz
pcsx_rearmed-7d993ee2dec1905c689ec0787f6543247fae665c.tar.bz2
pcsx_rearmed-7d993ee2dec1905c689ec0787f6543247fae665c.zip
gpu_neon: update for armv5pollux build
Diffstat (limited to 'plugins/gpu_neon/Makefile')
-rw-r--r--plugins/gpu_neon/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/plugins/gpu_neon/Makefile b/plugins/gpu_neon/Makefile
index 0778754..f227752 100644
--- a/plugins/gpu_neon/Makefile
+++ b/plugins/gpu_neon/Makefile
@@ -9,8 +9,15 @@ CFLAGS += -fno-strict-aliasing
SRC += gpu.c
ifeq "$(ARCH)" "arm"
+ARM_CORTEXA8 ?= 1
+ifeq "$(ARM_CORTEXA8)" "1"
CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
-SRC += vout_fb.c ../../frontend/cspace_neon.s
+SRC += ../../frontend/cspace_neon.s
+else
+CFLAGS += -mcpu=arm926ej-s -mtune=arm926ej-s
+SRC += ../../frontend/cspace.c
+endif
+SRC += vout_fb.c
EXT = so
endif
ifeq "$(ARCH)" "x86_64"
@@ -20,7 +27,12 @@ SRC += vout_sdl.c
EXT = so.x86
endif
-TARGETS = gpu_neon.$(EXT) gpu_peops.$(EXT) gpu_unai.$(EXT)
+HAVE_NEON = $(shell $(CC_) -E -dD $(CFLAGS) gpu.h | grep -q '__ARM_NEON__ 1' && echo 1)
+
+TARGETS = gpu_peops.$(EXT) gpu_unai.$(EXT)
+ifeq "$(HAVE_NEON)" "1"
+TARGETS += gpu_neon.$(EXT)
+endif
gpu_neon.$(EXT): SRC += psx_gpu_if.c
gpu_neon.$(EXT): CFLAGS += -fno-strict-aliasing