summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbmaupin2019-09-13 13:44:48 -0400
committerbmaupin2019-09-13 13:44:48 -0400
commit7816b42a8c44fa730048c5df67c5d9c83e4dd9b9 (patch)
treeeffe060a66727983ab6319a19db4f84eb858d85e /Makefile
parent16958ba2a798aae6ec933073a183db837a30883a (diff)
downloadpicogpsp-7816b42a8c44fa730048c5df67c5d9c83e4dd9b9.tar.gz
picogpsp-7816b42a8c44fa730048c5df67c5d9c83e4dd9b9.tar.bz2
picogpsp-7816b42a8c44fa730048c5df67c5d9c83e4dd9b9.zip
Fix compilation on PSP
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ab76003..c962e5f 100644
--- a/Makefile
+++ b/Makefile
@@ -215,6 +215,10 @@ else ifeq ($(platform), psp1)
CC = psp-gcc$(EXE_EXT)
AR = psp-ar$(EXE_EXT)
CFLAGS += -DPSP -G0
+ CFLAGS += -I$(shell psp-config --pspsdk-path)/include
+ CFLAGS += -march=allegrex -mfp32 -mgp32 -mlong32 -mabi=eabi
+ CFLAGS += -fomit-frame-pointer -ffast-math -fstrict-aliasing
+ CFLAGS += -falign-functions=32 -falign-loops -falign-labels -falign-jumps
STATIC_LINKING = 1
# Vita