2014-06-29 04:45:36 +00:00
|
|
|
BUILD_PRX = 1
|
|
|
|
DEBUG = 0
|
|
|
|
HAVE_KERNEL_PRX = 1
|
|
|
|
HAVE_FILE_LOGGER = 0
|
2015-02-25 12:30:46 +00:00
|
|
|
HAVE_THREADS = 0
|
2014-06-29 04:45:36 +00:00
|
|
|
BIG_STACK = 0
|
|
|
|
WHOLE_ARCHIVE_LINK = 0
|
2012-11-26 01:59:29 +00:00
|
|
|
|
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
|
2015-02-25 12:30:46 +00:00
|
|
|
OPTIMIZE_LV := -O3 -g
|
2014-02-13 12:42:51 +00:00
|
|
|
endif
|
|
|
|
|
2014-06-06 23:40:58 +00:00
|
|
|
ifeq ($(WHOLE_ARCHIVE_LINK), 1)
|
|
|
|
WHOLE_START := -Wl,--whole-archive
|
|
|
|
WHOLE_END := -Wl,--no-whole-archive
|
|
|
|
endif
|
|
|
|
|
2015-03-06 00:47:09 +00:00
|
|
|
INCDIR = deps/zlib deps/7zip libretro-common/include
|
2014-02-13 12:46:32 +00:00
|
|
|
CFLAGS = $(OPTIMIZE_LV) -G0 -std=gnu99 -ffast-math
|
2012-11-23 06:19:21 +00:00
|
|
|
ASFLAGS = $(CFLAGS)
|
|
|
|
|
2016-12-12 11:44:29 +00:00
|
|
|
RARCH_DEFINES = -DPSP -D_MIPS_ARCH_ALLEGREX -DHAVE_LANGEXTRA -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DWANT_ZLIB -DHAVE_GRIFFIN=1 -DRARCH_INTERNAL -DRARCH_CONSOLE -DHAVE_MENU -DHAVE_RGUI -DSINC_LOWEST_QUALITY -DHAVE_FILTERS_BUILTIN -DHAVE_7ZIP -DHAVE_CC_RESAMPLER
|
2012-11-26 01:59:29 +00:00
|
|
|
|
2014-02-17 18:30:21 +00:00
|
|
|
LIBDIR =
|
|
|
|
LDFLAGS =
|
2014-06-28 23:05:13 +00:00
|
|
|
LIBS = $(WHOLE_START) -lretro_psp1 $(WHOLE_END) -lstdc++ -lpspgu -lpspgum -lm -lpspaudio -lpspfpu -lpsppower -lpsprtc
|
2014-02-17 18:30:21 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_THREADS), 1)
|
|
|
|
RARCH_DEFINES += -DHAVE_THREADS
|
|
|
|
endif
|
|
|
|
|
2012-11-26 01:59:29 +00:00
|
|
|
ifeq ($(HAVE_FILE_LOGGER), 1)
|
2014-06-06 23:40:58 +00:00
|
|
|
CFLAGS += -DHAVE_FILE_LOGGER
|
2012-11-26 01:59:29 +00:00
|
|
|
endif
|
|
|
|
|
2014-06-04 23:17:37 +00:00
|
|
|
ifeq ($(HAVE_KERNEL_PRX), 1)
|
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
|
|
|
|
|
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
|
|
|
|
2015-09-20 13:33:54 +00:00
|
|
|
PSP_OBJECTS = griffin/griffin.o bootstrap/psp1/kernel_functions.o
|
2012-11-24 03:23:20 +00:00
|
|
|
|
|
|
|
OBJS = $(PSP_OBJECTS)
|
|
|
|
|
|
|
|
PSPSDK=$(shell psp-config --pspsdk-path)
|
2012-11-23 06:19:21 +00:00
|
|
|
include $(PSPSDK)/lib/build.mak
|