mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-24 11:45:16 +00:00
45 lines
955 B
Makefile
45 lines
955 B
Makefile
BUILD_PRX = 1
|
|
DEBUG = 0
|
|
HAVE_FILE_LOGGER = 0
|
|
HAVE_THREADS = 0
|
|
|
|
TARGET = retroarchpsp
|
|
|
|
ifeq ($(DEBUG), 1)
|
|
OPTIMIZE_LV := -O0 -g
|
|
else
|
|
OPTIMIZE_LV := -O2 -g
|
|
endif
|
|
|
|
INCDIR = $(PSPPATH)/include
|
|
CFLAGS = $(OPTIMIZE_LV) -G0 -std=gnu99 -ffast-math
|
|
ASFLAGS = $(CFLAGS)
|
|
|
|
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 -DHAVE_CC_RESAMPLER
|
|
|
|
LIBDIR =
|
|
LDFLAGS =
|
|
LIBS = -lretro_psp1 -lstdc++ -lpspgu -lpspgum -lm -lpspaudio -lpspfpu -lpsppower
|
|
|
|
ifeq ($(HAVE_THREADS), 1)
|
|
RARCH_DEFINES += -DHAVE_THREADS
|
|
LIBS += -lpthread-psp
|
|
endif
|
|
|
|
ifeq ($(HAVE_FILE_LOGGER), 1)
|
|
CFLAGS += -DHAVE_FILE_LOGGER
|
|
endif
|
|
|
|
CFLAGS += $(RARCH_DEFINES)
|
|
|
|
|
|
EXTRA_TARGETS = EBOOT.PBP
|
|
PSP_EBOOT_TITLE = RetroArch PSP1
|
|
|
|
PSP_OBJECTS = griffin/griffin.o
|
|
|
|
OBJS = $(PSP_OBJECTS)
|
|
|
|
PSPSDK=$(shell psp-config --pspsdk-path)
|
|
include $(PSPSDK)/lib/build.mak
|