gpu-gles: schtruck/fpse merge: additional calls
[pcsx_rearmed.git] / plugins / gpu_neon / Makefile
... / ...
CommitLineData
1CC = $(CROSS_COMPILE)gcc
2
3ARCH = $(shell $(CC) -v 2>&1 | grep -i 'target:' | awk '{print $$2}' | awk -F '-' '{print $$1}')
4
5HAVE_NEON = $(shell $(CC) -E -dD $(CFLAGS_) ../gpulib/gpu.h | grep -q '__ARM_NEON__ 1' && echo 1)
6
7# FIXME: rework NEON detection to get rid of this
8ifeq "$(ARCH)" "arm"
9 ARM_CORTEXA8 ?= 1
10 ifeq "$(ARM_CORTEXA8)" "1"
11 CFLAGS_ += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
12 endif
13endif
14
15CFLAGS += -ggdb -Wall -fPIC -O2
16
17SRC += psx_gpu_if.c
18
19CFLAGS += -DTEXTURE_CACHE_4BPP -DTEXTURE_CACHE_8BPP
20ifeq "$(HAVE_NEON)" "1"
21SRC += psx_gpu/psx_gpu_arm_neon.S
22CFLAGS += -DNEON_BUILD
23else
24CFLAGS += -fno-strict-aliasing
25endif
26
27BIN_GPULIB = gpu_neon.so
28include ../gpulib/gpulib.mak