summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraliaspider2015-04-06 11:27:02 +0100
committeraliaspider2015-04-06 11:27:02 +0100
commit33add4bad460f2c126955bf80517c549a18e2cdf (patch)
tree0ea0f82b9e054b5e22d0339dcb022370ca9a1e57
parent3309d13f80b94d380cca6b386a6c0dcaeefa5ac7 (diff)
downloadpicogpsp-33add4bad460f2c126955bf80517c549a18e2cdf.tar.gz
picogpsp-33add4bad460f2c126955bf80517c549a18e2cdf.tar.bz2
picogpsp-33add4bad460f2c126955bf80517c549a18e2cdf.zip
add a ctr(3ds) target. no dynarec for now.
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fbce907..82b1e0d 100644
--- a/Makefile
+++ b/Makefile
@@ -190,6 +190,22 @@ else ifeq ($(platform), psp1)
CFLAGS += -DPSP -G0
STATIC_LINKING = 1
+# CTR(3DS)
+else ifeq ($(platform), ctr)
+ TARGET := $(TARGET_NAME)_libretro_ctr.a
+ CC = $(DEVKITARM)/bin/arm-none-eabi-gcc$(EXE_EXT)
+ CXX = $(DEVKITARM)/bin/arm-none-eabi-g++$(EXE_EXT)
+ AR = $(DEVKITARM)/bin/arm-none-eabi-ar$(EXE_EXT)
+ CFLAGS += -DARM11 -D_3DS
+ CFLAGS += -march=armv6k -mtune=mpcore -mfloat-abi=hard
+ CFLAGS += -Wall -mword-relocations
+ CFLAGS += -fomit-frame-pointer -ffast-math
+ CPU_ARCH := arm
+ #no dynarec support for now
+ #HAVE_DYNAREC := 1
+ #CFLAGS += -DARM_MEMORY_DYNAREC
+ STATIC_LINKING = 1
+
# Xbox 360
else ifeq ($(platform), xenon)
TARGET := $(TARGET_NAME)_libretro_xenon360.a