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