mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-01 00:51:19 +00:00
23 lines
490 B
Makefile
23 lines
490 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 ($(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
|