X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu_unai%2FMakefile;h=1075ee522f248284424d54399e6405c943399f85;hp=a89ca6bfae95549f1cb74aef7ed641108da850ce;hb=ecd502e11f1d17998924f2de5909380b75c67d49;hpb=de38f20e0863e33a2a824380da5aa46b1dc39631 diff --git a/plugins/gpu_unai/Makefile b/plugins/gpu_unai/Makefile index a89ca6bf..1075ee52 100644 --- a/plugins/gpu_unai/Makefile +++ b/plugins/gpu_unai/Makefile @@ -1,24 +1,16 @@ -CC = $(CROSS_COMPILE)gcc +CFLAGS += -ggdb -Wall -O3 -ffast-math +CFLAGS += -DREARMED +CFLAGS += -I../../include -CFLAGS += -ggdb -fPIC -Wall -DREARMED -ifndef DEBUG -CFLAGS += -O2 -ffast-math -fomit-frame-pointer -endif -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 - -TARGET = gpuPCSX4ALL.so -LDFLAGS += -shared -Wl,-soname,$(TARGET) - --include Makefile.local +include ../../config.mak -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_STANDALONE = gpuPCSX4ALL.so +BIN_GPULIB = gpu_unai.so +include ../gpulib/gpulib.mak