diff options
author | David Guillen Fandos | 2021-03-16 19:02:11 +0100 |
---|---|---|
committer | David Guillen Fandos | 2021-03-16 22:58:58 +0100 |
commit | 6b503667ec074c55dbcd689595d8fe03aa17e4a4 (patch) | |
tree | 2465e0d464b5a221b93701a67173b69d80ac8d3b /Makefile | |
parent | 80be1e3447f26376b07a1154c98258fb4a124500 (diff) | |
download | picogpsp-6b503667ec074c55dbcd689595d8fe03aa17e4a4.tar.gz picogpsp-6b503667ec074c55dbcd689595d8fe03aa17e4a4.tar.bz2 picogpsp-6b503667ec074c55dbcd689595d8fe03aa17e4a4.zip |
Add Dingux support
Uses a different cache primitive and a differend madd(u) encoding.
Also added a flag for BGR vs RGB color output (since PSP is assuming to
be BGR for speed).
Aside from that the ABI required some special function calls for PIC.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -193,7 +193,7 @@ else ifeq ($(platform), psp1) TARGET := $(TARGET_NAME)_libretro_$(platform).a CC = psp-gcc$(EXE_EXT) AR = psp-ar$(EXE_EXT) - CFLAGS += -DPSP -G0 + CFLAGS += -DPSP -G0 -DUSE_BGR_FORMAT CFLAGS += -I$(shell psp-config --pspsdk-path)/include CFLAGS += -march=allegrex -mfp32 -mgp32 -mlong32 -mabi=eabi CFLAGS += -fomit-frame-pointer -ffast-math @@ -374,8 +374,10 @@ else ifeq ($(platform), gcw0) CXX = /opt/gcw0-toolchain/usr/bin/mipsel-linux-g++ AR = /opt/gcw0-toolchain/usr/bin/mipsel-linux-ar SHARED := -shared -nostdlib -Wl,--version-script=link.T - fpic := -fPIC + fpic := -fPIC -DPIC CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float + HAVE_DYNAREC := 1 + CPU_ARCH := mips # Windows else @@ -403,8 +405,8 @@ ifeq ($(DEBUG), 1) OPTIMIZE_SAFE := -O0 -g OPTIMIZE := -O0 -g else - OPTIMIZE_SAFE := -O2 -DNDEBUG -g - OPTIMIZE := -O3 -DNDEBUG -g + OPTIMIZE_SAFE := -O2 -DNDEBUG + OPTIMIZE := -O3 -DNDEBUG endif |