aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex2014-12-23 09:44:11 +0100
committertwinaphex2014-12-23 09:44:11 +0100
commit56f56d804bfc55fea8a4f6d2b7fecbaf30f4d5e7 (patch)
tree18f26af22ca37bb1b83e2acf3cc82ca4130e5bf1
parentc07f24ea82534fcf33b295c97a36c61d714af7bc (diff)
downloadsnesemu-56f56d804bfc55fea8a4f6d2b7fecbaf30f4d5e7.tar.gz
snesemu-56f56d804bfc55fea8a4f6d2b7fecbaf30f4d5e7.tar.bz2
snesemu-56f56d804bfc55fea8a4f6d2b7fecbaf30f4d5e7.zip
(Theos iOS) Add Theos iOS target
-rw-r--r--Makefile22
-rw-r--r--control10
2 files changed, 29 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3e7515c..c4c62db 100644
--- a/Makefile
+++ b/Makefile
@@ -79,6 +79,17 @@ ifeq ($(OSX_LT_MAVERICKS),"YES")
CC += -miphoneos-version-min=5.0
CXX += -miphoneos-version-min=5.0
endif
+else ifeq ($(platform), theos_ios)
+ # Theos iOS
+DEPLOYMENT_IOSVERSION = 5.0
+TARGET = iphone:latest:$(DEPLOYMENT_IOSVERSION)
+ARCHS = armv7 armv7s
+TARGET_IPHONEOS_DEPLOYMENT_VERSION=$(DEPLOYMENT_IOSVERSION)
+THEOS_BUILD_DIR := objs
+include $(THEOS)/makefiles/common.mk
+
+LIBRARY_NAME = $(TARGET_NAME)_libretro_ios
+
else ifeq ($(platform), qnx)
TARGET := $(TARGET_NAME)_libretro_qnx.so
fpic := -fPIC
@@ -135,11 +146,8 @@ LIBRETRO_DIR := .
include Makefile.common
-
OBJECTS := $(SOURCES_C:.c=.o)
-all: $(TARGET)
-
ifeq ($(DEBUG),1)
FLAGS += -O0 -g
else
@@ -183,6 +191,13 @@ FLAGS += -D__LIBRETRO__ $(WARNINGS) $(INCLUDE) $(DEFS)
CXXFLAGS += $(FLAGS)
CFLAGS += $(FLAGS)
+ifeq ($(platform), theos_ios)
+COMMON_FLAGS := -DIOS $(COMMON_DEFINES) $(INCFLAGS) -I$(THEOS_INCLUDE_PATH) -Wno-error
+$(LIBRARY_NAME)_CFLAGS += $(COMMON_FLAGS) $(CFLAGS)
+${LIBRARY_NAME}_FILES = $(SOURCES_C)
+include $(THEOS_MAKE_PATH)/library.mk
+else
+all: $(TARGET)
$(TARGET): $(OBJECTS)
ifeq ($(STATIC_LINKING), 1)
$(AR) rcs $@ $(OBJECTS)
@@ -200,3 +215,4 @@ clean:
rm -f $(TARGET) $(OBJECTS)
.PHONY: clean
+endif
diff --git a/control b/control
new file mode 100644
index 0000000..9397a89
--- /dev/null
+++ b/control
@@ -0,0 +1,10 @@
+Package: com.libretro.catsfc
+Name: catsfc
+Depends:
+Version: 0.0.1
+Architecture: iphoneos-arm
+Description: Libretro iOS core of catSFC
+Maintainer: libretro
+Author: libretro
+Section: System
+Tag: role::developer