X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fgpu_unai%2FMakefile;h=531c9fb6b504cb4c020d085699e0ddec8d6d506b;hb=4f55097de04a34ddcc83647f3b1f69570d7f1e36;hp=636c31bf1c29d73944bababe9e46e0c4921aed6a;hpb=297b3d633ad25797a4f355c57964b7ce3aee6936;p=pcsx_rearmed.git diff --git a/plugins/gpu_unai/Makefile b/plugins/gpu_unai/Makefile index 636c31bf..531c9fb6 100644 --- a/plugins/gpu_unai/Makefile +++ b/plugins/gpu_unai/Makefile @@ -4,16 +4,28 @@ CFLAGS += -ggdb -fPIC -Wall -DREARMED ifndef DEBUG CFLAGS += -O2 -ffast-math -fomit-frame-pointer 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 -# -fschedule-insns (from -O2+) causes bugs, probably bad asm() statements -CFLAGS += -fno-schedule-insns -fno-schedule-insns2 +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) +-include Makefile.local + all: $(TARGET) -$(TARGET): gpu.cpp ../../frontend/arm_utils.s +$(TARGET): $(SRC) $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) # $(TARGET): *.h