X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu_unai%2FMakefile;h=dd9e4cadedb79f71789676d169e9173e29294986;hp=026d950383745919786e25619c1b2922e6f1a626;hb=62d7fa9555924ab8e152b546711d27add640b102;hpb=1db5bc1ed7f992d7c2686f5359e53301eba2b2ca diff --git a/plugins/gpu_unai/Makefile b/plugins/gpu_unai/Makefile index 026d9503..dd9e4cad 100644 --- a/plugins/gpu_unai/Makefile +++ b/plugins/gpu_unai/Makefile @@ -1,25 +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 -CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp - -TARGET = gpuPCSX4ALL.so -LDFLAGS += -shared -Wl,-soname,$(TARGET) +ARCH = $(shell $(CC) -v 2>&1 | grep -i 'target:' | awk '{print $$2}' | awk -F '-' '{print $$1}') --include Makefile.local +CFLAGS += -DREARMED +CFLAGS += -ggdb -Wall -fPIC -O2 -ffast-math -all: $(TARGET) +SRC_STANDALONE += gpu.cpp +SRC_GPULIB += gpulib_if.cpp -$(TARGET): gpu.cpp ../../frontend/arm_utils.s - $(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