2021-12-04 01:01:00 +00:00
|
|
|
BUILD_PRX ?= 0
|
|
|
|
PSP_LARGE_MEMORY ?= 1
|
|
|
|
DEBUG ?= 0
|
|
|
|
HAVE_KERNEL_PRX ?= 1
|
|
|
|
HAVE_THREADS ?= 1
|
|
|
|
BIG_STACK ?= 0
|
|
|
|
LOAD_WITHOUT_CORE_INFO ?= 0
|
2022-01-25 02:50:18 +00:00
|
|
|
HAVE_STATIC_DUMMY ?= 0
|
2023-11-24 04:19:07 +00:00
|
|
|
HAVE_XDELTA ?= 1
|
2012-11-24 03:23:20 +00:00
|
|
|
TARGET = retroarchpsp
|
2012-11-23 06:19:21 +00:00
|
|
|
|
2014-02-13 12:42:51 +00:00
|
|
|
ifeq ($(DEBUG), 1)
|
|
|
|
OPTIMIZE_LV := -O0 -g
|
|
|
|
else
|
2018-08-21 20:48:55 +00:00
|
|
|
OPTIMIZE_LV := -O3
|
2014-02-13 12:42:51 +00:00
|
|
|
endif
|
|
|
|
|
2021-06-07 10:47:50 +00:00
|
|
|
INCDIR = deps deps/stb deps/7zip libretro-common/include libretro-common/include/compat/zlib
|
2022-01-25 02:50:18 +00:00
|
|
|
CFLAGS = $(OPTIMIZE_LV) -ffast-math -fsingle-precision-constant
|
2012-11-23 06:19:21 +00:00
|
|
|
ASFLAGS = $(CFLAGS)
|
|
|
|
|
2021-10-14 13:57:28 +00:00
|
|
|
RARCH_DEFINES = -DPSP \
|
|
|
|
-D_MIPS_ARCH_ALLEGREX \
|
|
|
|
-DHAVE_ZLIB \
|
|
|
|
-DHAVE_AUDIOMIXER \
|
|
|
|
-DHAVE_RWAV \
|
|
|
|
-DHAVE_RPNG \
|
|
|
|
-DHAVE_RJPEG \
|
|
|
|
-DHAVE_GRIFFIN=1 \
|
|
|
|
-DRARCH_INTERNAL \
|
|
|
|
-DHAVE_SCREENSHOTS \
|
|
|
|
-DHAVE_REWIND \
|
|
|
|
-DRARCH_CONSOLE \
|
|
|
|
-DHAVE_MENU \
|
|
|
|
-DHAVE_CONFIGFILE \
|
|
|
|
-DHAVE_PATCH \
|
|
|
|
-DHAVE_CHEATS \
|
|
|
|
-DHAVE_RGUI \
|
|
|
|
-DHAVE_FILTERS_BUILTIN \
|
|
|
|
-DHAVE_DSP_FILTER \
|
|
|
|
-DHAVE_VIDEO_FILTER \
|
|
|
|
-DHAVE_7ZIP \
|
|
|
|
-D_7ZIP_ST \
|
|
|
|
-DHAVE_CC_RESAMPLER \
|
|
|
|
-DHAVE_CORE_INFO_CACHE
|
2012-11-26 01:59:29 +00:00
|
|
|
|
2014-02-17 18:30:21 +00:00
|
|
|
LIBDIR =
|
2022-01-25 02:50:18 +00:00
|
|
|
LDFLAGS = -L$(shell psp-config --psp-prefix)
|
|
|
|
|
|
|
|
ifeq ($(HAVE_STATIC_DUMMY),1)
|
|
|
|
RARCH_DEFINES += -DHAVE_STATIC_DUMMY
|
|
|
|
else
|
|
|
|
LIBS += -lretro_psp1
|
|
|
|
endif
|
|
|
|
LIBS += -lstdc++ -lpspgu -lpspgum -lpspaudio -lpspfpu -lpsppower -lpsprtc -lpthread
|
2014-02-17 18:30:21 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_THREADS), 1)
|
|
|
|
RARCH_DEFINES += -DHAVE_THREADS
|
|
|
|
endif
|
|
|
|
|
2014-06-04 23:17:37 +00:00
|
|
|
ifeq ($(HAVE_KERNEL_PRX), 1)
|
2022-01-25 02:50:18 +00:00
|
|
|
OBJS += bootstrap/psp1/kernel_functions.o
|
2014-06-06 23:40:58 +00:00
|
|
|
CFLAGS += -DHAVE_KERNEL_PRX
|
2014-06-06 03:14:02 +00:00
|
|
|
endif
|
|
|
|
|
2014-06-29 04:45:36 +00:00
|
|
|
ifeq ($(BIG_STACK), 1)
|
|
|
|
CFLAGS += -DBIG_STACK
|
|
|
|
endif
|
|
|
|
|
2021-12-04 01:01:00 +00:00
|
|
|
ifeq ($(LOAD_WITHOUT_CORE_INFO),1)
|
|
|
|
RARCH_DEFINES += -DLOAD_WITHOUT_CORE_INFO
|
|
|
|
endif
|
|
|
|
|
2015-02-26 04:44:52 +00:00
|
|
|
CFLAGS += $(RARCH_DEFINES)
|
2012-11-23 06:19:21 +00:00
|
|
|
|
2012-11-24 03:23:20 +00:00
|
|
|
EXTRA_TARGETS = EBOOT.PBP
|
|
|
|
PSP_EBOOT_TITLE = RetroArch PSP1
|
2012-11-23 06:19:21 +00:00
|
|
|
|
2022-01-25 02:50:18 +00:00
|
|
|
OBJS += griffin/griffin.o
|
2012-11-24 03:23:20 +00:00
|
|
|
|
2020-01-08 15:52:40 +00:00
|
|
|
PSPSDK=$(shell psp-config --pspsdk-path)
|
|
|
|
include $(PSPSDK)/lib/build.mak
|
2020-01-06 14:38:33 +00:00
|
|
|
|
2020-01-08 15:52:40 +00:00
|
|
|
pspsh-debug:
|
|
|
|
pspsh -e reset
|
|
|
|
read -p "Start debugger in VSCode and press any key to continue... \n" -n1 -s
|
|
|
|
pspsh -e debug ./retroarchpsp.prx
|
|
|
|
pspsh
|
2020-01-06 14:38:33 +00:00
|
|
|
|
2020-01-08 15:52:40 +00:00
|
|
|
pspsh-run:
|
|
|
|
pspsh -e reset
|
|
|
|
pspsh -e ./retroarchpsp.prx
|
|
|
|
pspsh
|
2020-01-06 14:38:33 +00:00
|
|
|
|
2020-01-08 15:52:40 +00:00
|
|
|
debug: clean all pspsh-debug
|
2020-01-06 14:38:33 +00:00
|
|
|
|
2020-02-02 20:27:38 +00:00
|
|
|
run: clean all pspsh-run
|
2022-01-25 02:50:18 +00:00
|
|
|
|
|
|
|
sim:
|
|
|
|
/Applications/PPSSPPSDL.app/Contents/MacOS/PPSSPPSDL $(shell pwd)/EBOOT.PBP
|