Blame Makerules/Defs.GNU

Packit Service 3470d1
# BEGIN_ICS_COPYRIGHT8 ****************************************
Packit Service 3470d1
# 
Packit Service 3470d1
# Copyright (c) 2015, Intel Corporation
Packit Service 3470d1
# 
Packit Service 3470d1
# Redistribution and use in source and binary forms, with or without
Packit Service 3470d1
# modification, are permitted provided that the following conditions are met:
Packit Service 3470d1
# 
Packit Service 3470d1
#     * Redistributions of source code must retain the above copyright notice,
Packit Service 3470d1
#       this list of conditions and the following disclaimer.
Packit Service 3470d1
#     * Redistributions in binary form must reproduce the above copyright
Packit Service 3470d1
#       notice, this list of conditions and the following disclaimer in the
Packit Service 3470d1
#       documentation and/or other materials provided with the distribution.
Packit Service 3470d1
#     * Neither the name of Intel Corporation nor the names of its contributors
Packit Service 3470d1
#       may be used to endorse or promote products derived from this software
Packit Service 3470d1
#       without specific prior written permission.
Packit Service 3470d1
# 
Packit Service 3470d1
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Packit Service 3470d1
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Packit Service 3470d1
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Packit Service 3470d1
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
Packit Service 3470d1
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Packit Service 3470d1
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Packit Service 3470d1
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Packit Service 3470d1
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Packit Service 3470d1
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Packit Service 3470d1
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit Service 3470d1
# 
Packit Service 3470d1
# END_ICS_COPYRIGHT8   ****************************************
Packit Service 3470d1
# included by Target.* files, typically only used by those for
Packit Service 3470d1
# BUILD_TARGET_TOOLCHAIN=GNU
Packit Service 3470d1
# flags for building with GNU compilers
Packit Service 3470d1
Packit Service 3470d1
# C/C++ compilation
Packit Service 3470d1
# ----------------------------
Packit Service 3470d1
CANSI		= -ansi
Packit Service 3470d1
CPIC		= -fPIC
Packit Service 3470d1
CPIE		= 
Packit Service 3470d1
CCPIC		= $(CPIC)
Packit Service 3470d1
CCEXH		= -fexceptions
Packit Service 3470d1
CCNOEXH		= -fno-exceptions
Packit Service 3470d1
CCRTTI		= -frtti
Packit Service 3470d1
CCNORTTI	= -fno-rtti
Packit Service 3470d1
CSHARED		= 
Packit Service 3470d1
CCSHARED	= 
Packit Service 3470d1
CINCSRCH	= $(foreach inc,$(CINCLUDE_DIRS),-I$(inc))
Packit Service 3470d1
Packit Service 3470d1
# linking
Packit Service 3470d1
# ----------------------------
Packit Service 3470d1
LDSTRIP		=
Packit Service 3470d1
LDOUTPUT	= -o$(space)
Packit Service 3470d1
LDLIBSRCH	= $(foreach lib,$(LD_LIB_DIRS),-L$(lib))
Packit Service 3470d1
LDSTATIC	= -Xlinker -non_shared
Packit Service 3470d1
Packit Service 3470d1
LEX_LIB		= fl
Packit Service 3470d1
Packit Service 3470d1
# to assist module makefiles, create ARLIBS listing libraries to include
Packit Service 3470d1
# in build and be combined into one module level library
Packit Service 3470d1
ifeq "$(strip $(LIBFILES))" ""
Packit Service 3470d1
ARLIBS=
Packit Service 3470d1
else
Packit Service 3470d1
ARLIBS=$(foreach lib, $(notdir $(LIBFILES)), $(MOD_LIB_DIR)/$(notdir $(LIB_PREFIX)$(lib)$(ARLIB_SUFFIX)))
Packit Service 3470d1
endif
Packit Service 3470d1
Packit Service 3470d1
__GNUC__		= $(shell touch tmp_dME.c;gcc -dM -E tmp_dME.c|grep -w __GNUC__|cut -d" " -f3;rm -f tmp_dME.c)
Packit Service 3470d1
__GNUC_MINOR__		= $(shell touch tmp_dME.c;gcc -dM -E tmp_dME.c|grep -w __GNUC_MINOR__|cut -d" " -f3;rm -f tmp_dME.c)
Packit Service 3470d1
__GNUC_PATCHLEVEL__	= $(shell touch tmp_dME.c;gcc -dM -E tmp_dME.c|grep -w __GNUC_PATCHLEVEL__|cut -d" " -f3;rm -f tmp_dME.c)
Packit Service 3470d1
Packit Service 3470d1
# for now keep these distinct
Packit Service 3470d1
GCC_MAJOR_VERSION ?= $(shell $(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.')
Packit Service 3470d1
GCC_MINOR_VERSION ?= $(shell $(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f2 -d'.')