tle.cpp-vars.mk revision 5d0ab6ce
1# Copyright (c) 2016 Intel Corporation.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at:
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14ifeq ($(RTE_TOOLCHAIN), clang)
15CXX = $(CROSS)clang++
16ifeq ("$(origin CXX)", "command line")
17HOSTCXX = $(CXX)
18else
19HOSTCXX = clang++
20endif
21endif
22
23ifeq ($(RTE_TOOLCHAIN), icc)
24CXX = icc
25ifeq ("$(origin CXX)", "command line")
26HOSTCXX = $(CXX)
27else
28HOSTCXX = icc
29endif
30endif
31
32ifeq ($(RTE_TOOLCHAIN), gcc)
33CXX = $(CROSS)g++
34ifeq ("$(origin CXX)", "command line")
35HOSTCXX = $(CXX)
36else
37HOSTCXX = g++
38endif
39endif
40
41TOOLCHAIN_CXXFLAGS =
42
43CXXFLAGS := $(CFLAGS)
44
45export CXX CXXFLAGS TOOLCHAIN_CXXFLAGS
46