diff --git a/Makefile.libretro b/Makefile.libretro index fa07447..66ddbae 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -72,6 +72,17 @@ ifeq ($(OSX_LT_MAVERICKS),"YES") CC += -miphoneos-version-min=5.0 CFLAGS += -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 @@ -194,6 +205,12 @@ ifeq ($(FRONTEND_SUPPORTS_RGB565), 1) CFLAGS += -DFRONTEND_SUPPORTS_RGB565 endif +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) @@ -213,3 +230,4 @@ clean: rm -f $(TARGET) $(OBJECTS) .PHONY: clean +endif diff --git a/control b/control new file mode 100644 index 0000000..50fd788 --- /dev/null +++ b/control @@ -0,0 +1,10 @@ +Package: com.libretro.vecx +Name: vecx +Depends: +Version: 0.0.1 +Architecture: iphoneos-arm +Description: Libretro iOS core of vecX +Maintainer: libretro +Author: libretro +Section: System +Tag: role::developer diff --git a/e6809.c b/e6809.c index 7e29e6a..e309b21 100644 --- a/e6809.c +++ b/e6809.c @@ -1125,7 +1125,7 @@ static einline void inst_exg (void) /* instruction: tfr */ -einline void inst_tfr (void) +static void inst_tfr (void) { unsigned op;