aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortwinaphex2014-12-23 09:44:11 +0100
committertwinaphex2014-12-23 09:44:11 +0100
commit56f56d804bfc55fea8a4f6d2b7fecbaf30f4d5e7 (patch)
tree18f26af22ca37bb1b83e2acf3cc82ca4130e5bf1 /Makefile
parentc07f24ea82534fcf33b295c97a36c61d714af7bc (diff)
downloadsnesemu-56f56d804bfc55fea8a4f6d2b7fecbaf30f4d5e7.tar.gz
snesemu-56f56d804bfc55fea8a4f6d2b7fecbaf30f4d5e7.tar.bz2
snesemu-56f56d804bfc55fea8a4f6d2b7fecbaf30f4d5e7.zip
(Theos iOS) Add Theos iOS target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 19 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