From 55b0eeea6028e00741e620d28ab3211c49b8515f Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 24 Sep 2011 18:41:41 +0300 Subject: add pollux/caanoo port, refactor things --- plugins/gpu_unai/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'plugins/gpu_unai/Makefile') diff --git a/plugins/gpu_unai/Makefile b/plugins/gpu_unai/Makefile index 80f82ae..531c9fb 100644 --- a/plugins/gpu_unai/Makefile +++ b/plugins/gpu_unai/Makefile @@ -7,7 +7,16 @@ endif ifdef MAEMO CFLAGS += -DMAEMO endif +ARM_CORTEXA8 ?= 1 +ifeq "$(ARM_CORTEXA8)" "1" CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp +SRC += ../../frontend/cspace_neon.s +else +CFLAGS += -mcpu=arm926ej-s -mtune=arm926ej-s +SRC += ../../frontend/cspace.c +endif + +SRC += gpu.cpp TARGET = gpuPCSX4ALL.so LDFLAGS += -shared -Wl,-soname,$(TARGET) @@ -16,7 +25,7 @@ LDFLAGS += -shared -Wl,-soname,$(TARGET) all: $(TARGET) -$(TARGET): gpu.cpp ../../frontend/cspace_neon.s +$(TARGET): $(SRC) $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) # $(TARGET): *.h -- cgit v1.2.3