gpu_neon: vram fixes, list loop detection
[pcsx_rearmed.git] / plugins / gpu_neon / Makefile
1 CC = $(CROSS_COMPILE)gcc
2
3 ARCH = $(shell $(CC) -v 2>&1 | grep -i 'target:' | awk '{print $$2}' | awk -F '-' '{print $$1}')
4
5 CFLAGS += -ggdb -Wall -fPIC -O2
6
7 TARGET = gpu_neon.so
8 LDFLAGS += -shared -Wl,-soname,$(TARGET)
9 SRC += gpu.c
10 ifeq "$(ARCH)" "arm"
11 CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
12 SRC += vout_fb.c ../../frontend/arm_utils.s
13 else
14 CFLAGS += `sdl-config --cflags` -m32
15 LDFLAGS += `sdl-config --libs`
16 SRC += vout_sdl.c
17 endif
18 PEOPS=1
19 ifndef PEOPS
20 else
21 SRC += peops.c
22 endif
23
24 all: $(TARGET)
25
26 $(TARGET): $(SRC)
27         $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
28
29 clean:
30         $(RM) $(TARGET)