mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 07:59:42 +00:00
(Vita) Update Makefile.griffin
(Vita) Add Vita support to libretro-test
This commit is contained in:
parent
1533d451e9
commit
e0949b3bb7
@ -141,25 +141,28 @@ else ifeq ($(platform), vita)
|
||||
CC = arm-vita-eabi-gcc$(EXE_EXT)
|
||||
CXX = arm-vita-eabi-g++$(EXE_EXT)
|
||||
LD = arm-vita-eabi-ld$(EXE_EXT)
|
||||
INCLUDE +=
|
||||
EXT_TARGET := $(TARGET_NAME).velf
|
||||
EXT_INTER_TARGET := $(TARGET_NAME).elf
|
||||
MACHDEP := -DVITA
|
||||
PLATCFLAGS := -Wl,-q -Wall -O3
|
||||
LIBS += -lSceKernel_stub -lSceDisplay_stub -lSceGxm_stub \
|
||||
PLATCFLAGS := -O3
|
||||
LIBS += -lretro_vita \
|
||||
-lSceKernel_stub -lSceDisplay_stub -lSceGxm_stub \
|
||||
-lSceSysmodule_stub -lSceCtrl_stub -lSceAudio_stub \
|
||||
-lSceRtc_stub -lz -lm -lc
|
||||
|
||||
PLATOBJS += audio/audio_utils_neon.o audio/drivers_resampler/sinc_neon.o \
|
||||
audio/drivers_resampler/cc_resampler_neon.o
|
||||
|
||||
LIBDIRS += -L.
|
||||
LDFLAGS += -Wl,-q
|
||||
|
||||
HAVE_LIBRETRO_MANAGEMENT := 1
|
||||
HAVE_RPNG := 1
|
||||
HAVE_ZLIB := 1
|
||||
HAVE_VITA2D := 1
|
||||
endif
|
||||
|
||||
CFLAGS += -Wall -std=gnu99 $(MACHDEP) $(INCLUDE)
|
||||
CFLAGS += -Wall -std=gnu99 $(MACHDEP) $(PLATCFLAGS) $(INCLUDE)
|
||||
|
||||
OBJ = griffin/griffin.o $(PLATOBJS)
|
||||
|
||||
|
@ -56,6 +56,11 @@ else ifeq ($(platform), emscripten)
|
||||
TARGET := $(TARGET_NAME)_libretro_emscripten.bc
|
||||
fpic := -fPIC
|
||||
SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
|
||||
else ifeq ($(platform), vita)
|
||||
TARGET := $(TARGET_NAME).a
|
||||
CC = arm-vita-eabi-gcc
|
||||
AR = arm-vita-eabi-ar
|
||||
CFLAGS += -Wl,-q -Wall -O3
|
||||
else
|
||||
CC = gcc
|
||||
TARGET := $(TARGET_NAME)_libretro.dll
|
||||
@ -81,8 +86,15 @@ endif
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
ifeq ($(platform), vita)
|
||||
|
||||
$(TARGET): $(OBJECTS)
|
||||
$(AR) -rc $@ $^
|
||||
else
|
||||
|
||||
$(TARGET): $(OBJECTS)
|
||||
$(CC) $(fpic) $(SHARED) $(INCLUDES) -o $@ $(OBJECTS) $(LDFLAGS)
|
||||
endif
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
Loading…
Reference in New Issue
Block a user