gpu_neon: add peops as temp renderer
[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
5CFLAGS += -ggdb -Wall -fPIC -O2
6CFLAGS += -fno-strict-aliasing
7
8LDFLAGS += -shared -Wl,-soname,$(TARGET)
9SRC += gpu.c
10ifeq "$(ARCH)" "arm"
11TARGET = gpu_neon.so
12CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
13SRC += vout_fb.c ../../frontend/arm_utils.s
14else
15TARGET = gpu_neon.so.x86
16CFLAGS += `sdl-config --cflags` -m32
17LDFLAGS += `sdl-config --libs`
18SRC += vout_sdl.c
19endif
20PEOPS=1
21ifndef PEOPS
22SRC += psx_gpu_if.c
23else
24SRC += peops_if.c
25endif
26
27all: $(TARGET)
28
29$(TARGET): $(SRC)
30 $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
31
32clean:
33 $(RM) $(TARGET)