gpu_neon: gpu info reads, some bugfixes
[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 6
1ab64c54 7LDFLAGS += -shared -Wl,-soname,$(TARGET)
56f08d83 8SRC += gpu.c
9ifeq "$(ARCH)" "arm"
fc84f618 10TARGET = gpu_neon.so
56f08d83 11CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
12SRC += vout_fb.c ../../frontend/arm_utils.s
13else
fc84f618 14TARGET = gpu_neon.so.x86
56f08d83 15CFLAGS += `sdl-config --cflags` -m32
16LDFLAGS += `sdl-config --libs`
17SRC += vout_sdl.c
18endif
ddd56f6e 19PEOPS=1
56f08d83 20ifndef PEOPS
21else
22SRC += peops.c
23endif
1ab64c54
GI
24
25all: $(TARGET)
26
27$(TARGET): $(SRC)
28 $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
29
30clean:
31 $(RM) $(TARGET)