gpu_neon: tune frameskip further, allow >1
[pcsx_rearmed.git] / plugins / gpu_neon / Makefile
... / ...
CommitLineData
1CC = $(CROSS_COMPILE)gcc
2CXX = $(CROSS_COMPILE)g++
3CC_ = $(CC)
4
5ARCH = $(shell $(CC) -v 2>&1 | grep -i 'target:' | awk '{print $$2}' | awk -F '-' '{print $$1}')
6
7CFLAGS += -ggdb -Wall -fPIC -O2
8CFLAGS += -fno-strict-aliasing
9
10SRC += gpu.c
11ifeq "$(ARCH)" "arm"
12CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
13SRC += vout_fb.c ../../frontend/cspace_neon.s
14EXT = so
15endif
16ifeq "$(ARCH)" "x86_64"
17CFLAGS += `sdl-config --cflags` -m32
18LDFLAGS += `sdl-config --libs`
19SRC += vout_sdl.c
20EXT = so.x86
21endif
22
23TARGETS = gpu_neon.$(EXT) gpu_peops.$(EXT) gpu_unai.$(EXT)
24
25gpu_neon.$(EXT): SRC += psx_gpu_if.c
26gpu_neon.$(EXT): CFLAGS += -fno-strict-aliasing
27gpu_peops.$(EXT): SRC += peops_if.c
28gpu_peops.$(EXT): CFLAGS += -fno-strict-aliasing
29gpu_unai.$(EXT): SRC += unai_if.cpp
30gpu_unai.$(EXT): CC_ = $(CXX)
31
32all: $(TARGETS)
33
34$(TARGETS): $(SRC)
35 $(CC_) -o $@ $(SRC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,$@
36
37clean:
38 $(RM) $(TARGETS)