mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
27 lines
550 B
Makefile
27 lines
550 B
Makefile
ifeq ($(OSTYPE),darwin)
|
|
ARCH=$(shell uname -m)
|
|
|
|
XCODE_VERSION=$(shell xcodebuild -version|grep Xcode|grep -o "[\.0-9]\+")
|
|
XCODE_VERSION_MAJOR=$(word 1, $(subst ., ,$(XCODE_VERSION)))
|
|
|
|
ifneq (,$(findstring ios-sdk,$(COMPILER)))
|
|
|
|
IOS_VERSION="9.0"
|
|
IOS_SDK_VERSION="9.0"
|
|
|
|
else
|
|
|
|
ifeq ($(XCODE_VERSION_MAJOR),)
|
|
XCODE_VERSION_MAJOR=0
|
|
endif
|
|
|
|
ifeq ($(shell test $(XCODE_VERSION_MAJOR) -gt 10;echo $$?),0)
|
|
MACOS_VERSION="10.5"
|
|
MACOS_SDK_VERSION="10.5"
|
|
PARTIALLD+=-arch ${ARCH} -platform_version macos $(MACOS_VERSION) $(MACOS_SDK_VERSION)
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|