2014-02-13 13:42:51 +01:00
|
|
|
BUILD_PRX = 1
|
|
|
|
DEBUG = 0
|
2014-02-13 13:28:21 +01:00
|
|
|
HAVE_FILE_LOGGER = 0
|
2014-02-17 19:54:29 +01:00
|
|
|
HAVE_THREADS = 0
|
2012-11-26 02:59:29 +01:00
|
|
|
|
2012-11-24 04:23:20 +01:00
|
|
|
TARGET = retroarchpsp
|
2012-11-23 07:19:21 +01:00
|
|
|
|
2014-02-13 13:42:51 +01:00
|
|
|
ifeq ($(DEBUG), 1)
|
|
|
|
OPTIMIZE_LV := -O0 -g
|
|
|
|
else
|
2014-02-16 16:14:38 +01:00
|
|
|
OPTIMIZE_LV := -O2 -g
|
2014-02-13 13:42:51 +01:00
|
|
|
endif
|
|
|
|
|
2014-02-17 19:30:21 +01:00
|
|
|
INCDIR = $(PSPPATH)/include
|
2014-02-13 13:46:32 +01:00
|
|
|
CFLAGS = $(OPTIMIZE_LV) -G0 -std=gnu99 -ffast-math
|
2012-11-23 07:19:21 +01:00
|
|
|
ASFLAGS = $(CFLAGS)
|
|
|
|
|
2014-02-17 14:26:03 +01:00
|
|
|
RARCH_DEFINES = -DPSP -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_ZLIB -DWANT_MINIZ -DHAVE_GRIFFIN=1 -DRARCH_INTERNAL -DRARCH_CONSOLE -DHAVE_MENU -DHAVE_RGUI -DWANT_RPNG -DSINC_LOWEST_QUALITY
|
2012-11-26 02:59:29 +01:00
|
|
|
|
2014-02-17 19:30:21 +01:00
|
|
|
LIBDIR =
|
|
|
|
LDFLAGS =
|
2014-02-18 18:43:23 +01:00
|
|
|
LIBS = -lretro_psp1 -lstdc++ -lpspgu -lpspgum -lm -lpspaudio -lpspfpu -lpsppower
|
2014-02-17 19:30:21 +01:00
|
|
|
|
|
|
|
ifeq ($(HAVE_THREADS), 1)
|
|
|
|
RARCH_DEFINES += -DHAVE_THREADS
|
|
|
|
LIBS += -lpthread-psp
|
|
|
|
endif
|
|
|
|
|
2012-11-26 02:59:29 +01:00
|
|
|
ifeq ($(HAVE_FILE_LOGGER), 1)
|
|
|
|
CFLAGS += -DHAVE_FILE_LOGGER
|
|
|
|
endif
|
|
|
|
|
2012-11-23 07:19:21 +01:00
|
|
|
CFLAGS += $(RARCH_DEFINES)
|
|
|
|
|
|
|
|
|
2012-11-24 04:23:20 +01:00
|
|
|
EXTRA_TARGETS = EBOOT.PBP
|
|
|
|
PSP_EBOOT_TITLE = RetroArch PSP1
|
2012-11-23 07:19:21 +01:00
|
|
|
|
2013-03-18 05:46:19 +01:00
|
|
|
PSP_OBJECTS = griffin/griffin.o
|
2012-11-24 04:23:20 +01:00
|
|
|
|
|
|
|
OBJS = $(PSP_OBJECTS)
|
|
|
|
|
|
|
|
PSPSDK=$(shell psp-config --pspsdk-path)
|
2012-11-23 07:19:21 +01:00
|
|
|
include $(PSPSDK)/lib/build.mak
|