1# Copyright (c) 2005-2020 Intel Corporation 2# 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 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 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. 14 15COMPILE_ONLY = -c -MMD 16PREPROC_ONLY = -E -x c++ 17INCLUDE_KEY = -I 18DEFINE_KEY = -D 19OUTPUT_KEY = -o # 20OUTPUTOBJ_KEY = -o # 21PIC_KEY = -fPIC 22WARNING_AS_ERROR_KEY = -Werror 23WARNING_KEY = -Wall 24DYLIB_KEY = -shared 25LIBDL = -ldl 26 27CPLUS = g++ 28CONLY = gcc 29LIB_LINK_FLAGS = -shared 30LIBS = -lpthread -ldl 31C_FLAGS = $(CPLUS_FLAGS) -x c 32 33ifeq ($(cfg), release) 34 CPLUS_FLAGS = -O2 -DUSE_PTHREAD -pthread 35endif 36ifeq ($(cfg), debug) 37 CPLUS_FLAGS = -DTBB_USE_DEBUG -g -O0 -DUSE_PTHREAD -pthread 38endif 39 40ASM= 41ASM_FLAGS= 42 43TBB_ASM.OBJ= 44 45ifeq (powerpc,$(arch)) 46 CPLUS_FLAGS += -maix64 -Wl,-G 47 LIB_LINK_FLAGS += -maix64 -Wl,-b64 -Wl,-brtl -Wl,-G 48endif 49 50#------------------------------------------------------------------------------ 51# Setting assembler data. 52#------------------------------------------------------------------------------ 53 54ASSEMBLY_SOURCE=ibm_aix51 55ifeq (powerpc,$(arch)) 56 TBB_ASM.OBJ = atomic_support.o 57endif 58 59#------------------------------------------------------------------------------ 60# End of setting assembler data. 61#------------------------------------------------------------------------------ 62 63#------------------------------------------------------------------------------ 64# Setting tbbmalloc data. 65#------------------------------------------------------------------------------ 66 67M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions 68 69#------------------------------------------------------------------------------ 70# End of setting tbbmalloc data. 71#------------------------------------------------------------------------------ 72