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