From: Evan Shelhamer Date: Thu, 18 Aug 2016 18:03:42 +0000 (-0700) Subject: [build] set default BLAS include for OS X 10.11 X-Git-Tag: submit/tizen/20180823.020014~149^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9029695ee358caa82116fc192cb4d505ea936274;p=platform%2Fupstream%2Fcaffeonacl.git [build] set default BLAS include for OS X 10.11 the latest hunt for the ever-elusive vecLib/Accelerate --- diff --git a/Makefile b/Makefile index 403e00a..2489406 100644 --- a/Makefile +++ b/Makefile @@ -382,8 +382,11 @@ else LIBRARIES += cblas # 10.10 has accelerate while 10.9 has veclib XCODE_CLT_VER := $(shell pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | grep 'version' | sed 's/[^0-9]*\([0-9]\).*/\1/') + XCODE_CLT_GEQ_7 := $(shell [ $(XCODE_CLT_VER) -gt 6 ] && echo 1) XCODE_CLT_GEQ_6 := $(shell [ $(XCODE_CLT_VER) -gt 5 ] && echo 1) - ifeq ($(XCODE_CLT_GEQ_6), 1) + ifeq ($(XCODE_CLT_GEQ_7), 1) + BLAS_INCLUDE ?= /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/Headers + else ifeq ($(XCODE_CLT_GEQ_6), 1) BLAS_INCLUDE ?= /System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Headers/ LDFLAGS += -framework Accelerate else