2017-12-11 15:04:35 -08:00
|
|
|
BUILD_PRX = 0
|
|
|
|
PSP_LARGE_MEMORY = 1
|
2022-01-24 18:50:18 -08:00
|
|
|
HAVE_KERNEL_PRX = 1
|
2014-06-04 16:17:37 -07:00
|
|
|
DEBUG = 0
|
|
|
|
|
|
|
|
TARGET = retroarchpsp_salamander
|
|
|
|
|
|
|
|
ifeq ($(DEBUG), 1)
|
|
|
|
OPTIMIZE_LV := -O0 -g
|
|
|
|
else
|
2022-01-24 18:50:18 -08:00
|
|
|
OPTIMIZE_LV := -O3
|
2014-06-04 16:17:37 -07:00
|
|
|
endif
|
|
|
|
|
2015-02-18 15:04:03 -08:00
|
|
|
INCDIR = $(PSPPATH)/include libretro-common/include
|
2022-01-24 18:50:18 -08:00
|
|
|
CFLAGS = $(OPTIMIZE_LV) -ffast-math -fsingle-precision-constant
|
2014-06-04 16:17:37 -07:00
|
|
|
ASFLAGS = $(CFLAGS)
|
|
|
|
|
2015-01-11 21:51:57 -08:00
|
|
|
RARCH_DEFINES = -DPSP -DIS_SALAMANDER -DRARCH_CONSOLE
|
2014-06-04 16:17:37 -07:00
|
|
|
|
|
|
|
LIBDIR =
|
|
|
|
LDFLAGS =
|
2022-01-24 18:50:18 -08:00
|
|
|
LIBS = -lstdc++ -lpsppower
|
2014-06-04 16:17:37 -07:00
|
|
|
|
2019-02-03 15:49:35 -08:00
|
|
|
CFLAGS += $(RARCH_DEFINES)
|
2014-06-04 16:17:37 -07:00
|
|
|
|
2015-09-20 06:35:17 -07:00
|
|
|
EXTRA_TARGETS = EBOOT.PBP
|
2014-06-05 19:05:15 -07:00
|
|
|
PSP_EBOOT_TITLE = RetroArch
|
2015-09-20 06:35:17 -07:00
|
|
|
PSP_EBOOT_ICON = pkg/psp1/ICON0.PNG
|
|
|
|
PSP_EBOOT_PIC1 = pkg/psp1/PIC1.PNG
|
2014-06-04 16:17:37 -07:00
|
|
|
|
2015-06-14 16:56:01 -07:00
|
|
|
OBJS = frontend/frontend_salamander.o \
|
|
|
|
frontend/frontend_driver.o \
|
|
|
|
frontend/drivers/platform_psp.o \
|
|
|
|
libretro-common/file/file_path.o \
|
2020-01-09 06:44:48 -08:00
|
|
|
libretro-common/file/file_path_io.o \
|
2015-12-25 22:45:19 -08:00
|
|
|
libretro-common/string/stdstring.o \
|
2016-03-20 06:53:54 -07:00
|
|
|
libretro-common/lists/string_list.o \
|
|
|
|
libretro-common/lists/dir_list.o \
|
2015-09-04 09:54:29 -07:00
|
|
|
libretro-common/file/retro_dirent.o \
|
2017-08-06 04:58:17 -07:00
|
|
|
libretro-common/encodings/encoding_utf.o \
|
2019-01-08 12:42:52 -08:00
|
|
|
libretro-common/compat/fopen_utf8.o \
|
2015-10-25 18:46:51 -07:00
|
|
|
libretro-common/compat/compat_strl.o \
|
2022-08-25 08:00:23 -07:00
|
|
|
libretro-common/compat/compat_strldup.o \
|
2016-12-17 10:35:51 -08:00
|
|
|
libretro-common/compat/compat_strcasestr.o \
|
2015-06-14 16:56:01 -07:00
|
|
|
libretro-common/file/config_file.o \
|
2016-03-20 08:29:14 -07:00
|
|
|
libretro-common/streams/file_stream.o \
|
2017-12-14 06:18:48 -08:00
|
|
|
libretro-common/vfs/vfs_implementation.o \
|
2020-12-28 11:24:55 -08:00
|
|
|
libretro-common/hash/lrc_hash.o \
|
2020-06-04 14:37:35 -07:00
|
|
|
libretro-common/time/rtime.o \
|
2022-01-24 18:50:18 -08:00
|
|
|
verbosity.o
|
|
|
|
|
|
|
|
ifeq ($(HAVE_KERNEL_PRX), 1)
|
2023-02-11 00:12:16 -08:00
|
|
|
OBJS += bootstrap/psp1/kernel_functions.o
|
2022-01-24 18:50:18 -08:00
|
|
|
CFLAGS += -DHAVE_KERNEL_PRX
|
|
|
|
endif
|
2014-06-04 16:17:37 -07:00
|
|
|
|
|
|
|
PSPSDK=$(shell psp-config --pspsdk-path)
|
|
|
|
include $(PSPSDK)/lib/build.mak
|