1 # Copyright (c) 2005-2019 Intel Corporation
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 ifeq ($(shell uname -m),i386)
19 ifeq ($(shell uname -m),ia64)
22 ifeq ($(shell uname -m),amd64)
28 clang_version:=$(shell clang --version | sed -n "1s/.*version \(.*[0-9]\) .*/\1/p")
29 os_version:=$(shell uname -r)
30 os_kernel_version:=$(shell uname -r | sed -e 's/-.*$$//')
31 export runtime:=cc$(clang_version)_kernel$(os_kernel_version)
34 native_compiler := clang
35 export compiler ?= clang
45 MAKE_VERSIONS=sh $(tbb_root)/build/version_info_linux.sh $(VERSION_FLAGS) >version_string.ver
46 MAKE_TBBVARS=sh $(tbb_root)/build/generate_tbbvars.sh
49 export LD_LIBRARY_PATH := .:$(LD_LIBRARY_PATH)
51 export LD_LIBRARY_PATH := .
54 ####### Build settings ########################################################
62 TBB.DLL = libtbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
64 LINK_TBB.LIB = $(TBB.LIB)
66 MALLOC.DLL = libtbbmalloc$(DEBUG_SUFFIX).$(DLL)
67 MALLOC.LIB = $(MALLOC.DLL)
68 LINK_MALLOC.LIB = $(MALLOC.LIB)
70 TEST_LAUNCHER=sh $(tbb_root)/build/test_launcher.sh $(largs)