X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu_unai%2FMakefile;h=57a0371182faecdb062c52c6f4e8fd768f4b033b;hp=531c9fb6b504cb4c020d085699e0ddec8d6d506b;hb=f7be0e2b7adc4f6c4057f44f789bd7405844701c;hpb=55b0eeea6028e00741e620d28ab3211c49b8515f diff --git a/plugins/gpu_unai/Makefile b/plugins/gpu_unai/Makefile index 531c9fb6..57a03711 100644 --- a/plugins/gpu_unai/Makefile +++ b/plugins/gpu_unai/Makefile @@ -1,34 +1,17 @@ -CC = $(CROSS_COMPILE)gcc +CC = $(CROSS_COMPILE)g++ -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 -SRC += ../../frontend/cspace_neon.s -else -CFLAGS += -mcpu=arm926ej-s -mtune=arm926ej-s -SRC += ../../frontend/cspace.c -endif - -SRC += gpu.cpp +ARCH = $(shell $(CC) -v 2>&1 | grep -i 'target:' | awk '{print $$2}' | awk -F '-' '{print $$1}') -TARGET = gpuPCSX4ALL.so -LDFLAGS += -shared -Wl,-soname,$(TARGET) +CFLAGS += -DREARMED +CFLAGS += -ggdb -Wall -O3 -ffast-math --include Makefile.local +SRC_STANDALONE += gpu.cpp +SRC_GPULIB += gpulib_if.cpp -all: $(TARGET) - -$(TARGET): $(SRC) - $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) - -# $(TARGET): *.h +ifeq "$(ARCH)" "arm" +SRC += gpu_arm.s +endif -clean: - $(RM) $(TARGET) $(OBJ) +BIN_STANDLALONE = gpuPCSX4ALL.so +BIN_GPULIB = gpu_unai.so +include ../gpulib/gpulib.mak