summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTwinaphex2016-08-05 17:38:21 +0200
committerGitHub2016-08-05 17:38:21 +0200
commit851b1c7f20a6f533963b4c1f0cb7f61f63a594f3 (patch)
tree0ec8991f2514e41f84196b8afe999ef00a6b590c /Makefile
parentc87b24f54d0e6ac3478902ebd71bbacd122d3712 (diff)
parent36dd6cd4294b1bf3899b9404f76c0d9614368104 (diff)
downloadsnes9x2002-851b1c7f20a6f533963b4c1f0cb7f61f63a594f3.tar.gz
snes9x2002-851b1c7f20a6f533963b4c1f0cb7f61f63a594f3.tar.bz2
snes9x2002-851b1c7f20a6f533963b4c1f0cb7f61f63a594f3.zip
Merge pull request #16 from NunaticAlumina/master
added vita target.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 85e2a82..caf3669 100644
--- a/Makefile
+++ b/Makefile
@@ -79,6 +79,21 @@ else ifeq ($(platform), wii)
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar
CFLAGS += -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float -DBLARGG_BIG_ENDIAN=1 -D__ppc__
STATIC_LINKING := 1
+# Vita
+else ifeq ($(platform), vita)
+ TARGET := $(TARGET_NAME)_libretro_vita.a
+ CC = $(VITASDK)/bin/arm-vita-eabi-gcc$(EXE_EXT)
+ CXX = $(VITASDK)/bin/arm-vita-eabi-g++$(EXE_EXT)
+ AR = $(VITASDK)/bin/arm-vita-eabi-ar$(EXE_EXT)
+ ARM_ASM = 1
+ ASM_CPU = 0
+ ASM_SPC700 = 0
+ CFLAGS += -march=armv7-a -mfloat-abi=hard
+ CFLAGS += -Wall -mword-relocations
+ CFLAGS += -fomit-frame-pointer -ffast-math
+ CFLAGS += -std=c11 -Wa,-mimplicit-it=thumb
+ DEFS += -DVITA
+ STATIC_LINKING := 1
# CTR (3DS)
else ifeq ($(platform), ctr)
TARGET := $(TARGET_NAME)_libretro_ctr.a