Skip to content

Instantly share code, notes, and snippets.

@iMokhles
Last active June 27, 2016 21:27
Show Gist options
  • Save iMokhles/5952298 to your computer and use it in GitHub Desktop.
Save iMokhles/5952298 to your computer and use it in GitHub Desktop.
Change Logs, - First Release - Platform .mk file if you have any quiz just follow me on twitter @iMokhles And mail me : [email protected]
ifeq ($(_THEOS_PLATFORM_LOADED),)
_THEOS_PLATFORM_LOADED := 1
THEOS_PLATFORM_NAME := cygwin
_THEOS_PLATFORM_DEFAULT_TARGET := iphone
_THEOS_PLATFORM_DU_EXCLUDE = --exclude
endif
ifeq ($(_THEOS_TARGET_LOADED),)
_THEOS_TARGET_LOADED := 1
THEOS_TARGET_NAME := iphone
SDKTARGET ?= arm-apple-darwin11
SDKBINPATH ?= /usr/local/bin/
SYSROOT ?= /opt/sdk/iPhoneOS.sdk
PREFIX := $(SDKBINPATH)/$(SDKTARGET)-
TARGET_CC ?= /usr/local/bin/arm-apple-darwin11-llvm-gcc.exe
TARGET_CXX ?= /usr/local/bin/arm-apple-darwin11-llvm-g++.exe
TARGET_LD ?= /usr/local/bin/arm-apple-darwin9-ld
TARGET_STRIP ?= /usr/local/bin/arm-apple-darwin9-strip
TARGET_STRIP_FLAGS ?=
TARGET_CODESIGN_ALLOCATE ?= /usr/local/bin/arm-apple-darwin9-codesign_allocate
TARGET_CODESIGN ?= ldid
TARGET_CODESIGN_FLAGS ?= -S
include $(THEOS_MAKE_PATH)/targets/_common/install_deb_remote.mk
include $(THEOS_MAKE_PATH)/targets/_common/darwin.mk
include $(THEOS_MAKE_PATH)/targets/_common/darwin_flat_bundle.mk
TARGET_PRIVATE_FRAMEWORK_PATH = $(SYSROOT)/System/Library/PrivateFrameworks
TARGET_FRAMEWORK_PATH = $(SYSROOT)/System/Library/Frameworks
SDKFLAGS := -isysroot $(SYSROOT)
TARGET_CFLAGS := $(SDKFLAGS) -I /usr/local/lib/gcc/arm-apple-darwin11/4.2.1/include
TARGET_LDFLAGS := $(SDKFLAGS) -multiply_defined suppress -bind_at_load
endif
This is my first .mk files to get theos work and compile tweaks through Cygwin,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment