psx_gpu: more limit checking
[pcsx_rearmed.git] / plugins / gpu_neon / Makefile
index aab989f..8a7342b 100644 (file)
@@ -1,15 +1,16 @@
-CC = $(CROSS_COMPILE)gcc
-CFLAGS += -ggdb -Wall -fPIC
-CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
+CFLAGS += -ggdb -Wall -O2
 
-TARGET = gpu_neon.so
-LDFLAGS += -shared -Wl,-soname,$(TARGET)
-SRC += gpu.c ../../frontend/arm_utils.s
+include ../../config.mak
 
-all: $(TARGET)
+SRC += psx_gpu_if.c
 
-$(TARGET): $(SRC)
-       $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
+CFLAGS += -DTEXTURE_CACHE_4BPP -DTEXTURE_CACHE_8BPP
+ifeq "$(HAVE_NEON)" "1"
+SRC += psx_gpu/psx_gpu_arm_neon.S
+CFLAGS += -DNEON_BUILD
+else
+CFLAGS += -fno-strict-aliasing
+endif
 
-clean:
-       $(RM) $(TARGET)
+BIN_GPULIB = gpu_neon.so
+include ../gpulib/gpulib.mak