blob: eab4c7288d04355d55ebc4e9856b8b561d6e50d2 [file] [log] [blame]
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -08001#
2# Copyright (C) 2006 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
The Android Open Source Project88b60792009-03-03 19:28:42 -080017# Select a combo based on the compiler being used.
18#
19# Inputs:
20# combo_target -- prefix for final variables (HOST_ or TARGET_)
Ying Wang6feb6d52014-04-17 10:03:35 -070021# combo_2nd_arch_prefix -- it's defined if this is loaded for the 2nd arch.
The Android Open Source Project88b60792009-03-03 19:28:42 -080022#
The Android Open Source Project88b60792009-03-03 19:28:42 -080023
24# Build a target string like "linux-arm" or "darwin-x86".
Ying Wang6feb6d52014-04-17 10:03:35 -070025combo_os_arch := $($(combo_target)OS)-$($(combo_target)$(combo_2nd_arch_prefix)ARCH)
Ying Wang1d274d22013-12-27 11:09:36 -080026
27combo_var_prefix := $(combo_2nd_arch_prefix)$(combo_target)
The Android Open Source Project88b60792009-03-03 19:28:42 -080028
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -080029# Set reasonable defaults for the various variables
The Android Open Source Project88b60792009-03-03 19:28:42 -080030
Stephen Hinesd612b832018-01-09 23:28:30 -080031$(combo_var_prefix)GLOBAL_ARFLAGS := cqsD -format=gnu
The Android Open Source Project88b60792009-03-03 19:28:42 -080032
Ying Wang1d274d22013-12-27 11:09:36 -080033$(combo_var_prefix)STATIC_LIB_SUFFIX := .a
The Android Open Source Project88b60792009-03-03 19:28:42 -080034
The Android Open Source Project88b60792009-03-03 19:28:42 -080035# Now include the combo for this specific target.
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -080036include $(BUILD_COMBOS)/$(combo_target)$(combo_os_arch).mk