Commit 0bf6c076 authored by Francisco Javier Trujillo Mata's avatar Francisco Javier Trujillo Mata
Browse files

Improve makefile and add PS2 platform

parent 01ccadda
......@@ -198,9 +198,17 @@ else ifeq ($(platform), emscripten)
TARGET := $(TARGET_NAME)_libretro_emscripten.bc
fpic := -fPIC
SHARED := -shared -Wl,--version-script=$(CORE_DIR)/link.T -Wl,--no-undefined
# PS2
else ifeq ($(platform), ps2)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = mips64r5900el-ps2-elf-gcc
CXX = mips64r5900el-ps2-elf-g++
AR = mips64r5900el-ps2-elf-ar
CXXFLAGS += -Wall -DMINIZ_NO_TIME -ffast-math -fsingle-precision-constant
STATIC_LINKING = 1
# PSP
else ifeq ($(platform), psp1)
TARGET := $(TARGET_NAME)_libretro_psp1.a
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = psp-gcc
CXX = psp-g++
AR = psp-ar
......@@ -208,7 +216,7 @@ else ifeq ($(platform), psp1)
STATIC_LINKING = 1
# Vita
else ifeq ($(platform), vita)
TARGET := $(TARGET_NAME)_libretro_vita.a
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = arm-vita-eabi-gcc
CXX = arm-vita-eabi-g++
AR = arm-vita-eabi-ar
......@@ -236,7 +244,7 @@ endif
LDFLAGS += $(LIBM)
ifeq ($(DEBUG), 1)
CXXFLAGS += -O0 -g
CXXFLAGS += -O0 -g -DDEBUG
else
CXXFLAGS += -O3
endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment