gpu_neon: split output code, some refactoring
[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 ifndef PEOPS
19 else
20 SRC += peops.c
21 endif
22
23 all: $(TARGET)
24
25 $(TARGET): $(SRC)
26         $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
27
28 clean:
29         $(RM) $(TARGET)