make/aix/makefiles/xlc.make

Print this page
rev 8019 : 8075858: AIX: clean-up HotSpot make files
   1 #
   2 # Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
   3 # Copyright (c) 2012, 2013 SAP. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #  
  24 #
  25 
  26 #------------------------------------------------------------------------
  27 # CC, CXX & AS
  28 
  29 # Set compiler explicitly
  30 CXX = $(COMPILER_PATH)xlC_r
  31 CC  = $(COMPILER_PATH)xlc_r
  32 HOSTCXX = $(CXX)
  33 HOSTCC  = $(CC)
  34 
  35 AS  = $(CC) -c
  36 
  37 # get xlc version
  38 CXX_VERSION   := $(shell $(CXX) -qversion 2>&1 | sed -n 's/.*Version: \([0-9.]*\)/\1/p')




  39 
  40 # xlc 08.00.0000.0023 and higher supports -qtune=balanced
  41 CXX_SUPPORTS_BALANCED_TUNING=$(shell if [ $(subst .,,$(CXX_VERSION)) -ge 080000000023 ] ; then echo "true" ; fi)
  42 # xlc 10.01 is used with aggressive optimizations to boost performance
  43 CXX_IS_V10=$(shell if [ $(subst .,,$(CXX_VERSION)) -ge 100100000000 ] ; then echo "true" ; fi)
  44 
  45 # check for precompiled headers support
  46 
  47 # Switch off the precompiled header support. Neither xlC 8.0 nor xlC 10.0
  48 # support precompiled headers. Both "understand" the command line switches "-qusepcomp" and 
  49 # "-qgenpcomp" but when we specify them the following message is printed:
  50 # "1506-755 (W) The -qusepcomp option is not supported in this release."
  51 USE_PRECOMPILED_HEADER = 0
  52 ifneq ($(USE_PRECOMPILED_HEADER),0)
  53 PRECOMPILED_HEADER_DIR=.
  54 PRECOMPILED_HEADER_SRC=$(GAMMADIR)/src/share/vm/precompiled/precompiled.hpp
  55 PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/precompiled.hpp.gch
  56 endif
  57 
  58 
  59 #------------------------------------------------------------------------
  60 # Compiler flags
  61 
  62 # position-independent code
  63 PICFLAG = -qpic=large


   1 #
   2 # Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
   3 # Copyright (c) 2012, 2015 SAP. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #  
  24 #
  25 
  26 #------------------------------------------------------------------------
  27 # CC, CXX & AS
  28 
  29 # Set compiler explicitly
  30 CXX = $(COMPILER_PATH)xlC_r
  31 CC  = $(COMPILER_PATH)xlc_r
  32 HOSTCXX = $(CXX)
  33 HOSTCC  = $(CC)
  34 
  35 AS  = $(CC) -c
  36 
  37 # get xlc version which comes as VV.RR.MMMM.LLLL where 'VV' is the version,
  38 # 'RR' is the release, 'MMMM' is the modification and 'LLLL' is the level.
  39 # We only use 'VV.RR.LLLL' to avoid integer overflows in bash when comparing
  40 # the version numbers (some shells only support 32-bit integer compares!).
  41 CXX_VERSION := $(shell $(CXX) -qversion 2>&1 | \
  42                    sed -n 's/.*Version: \([0-9]\{2\}\).\([0-9]\{2\}\).[0-9]\{4\}.\([0-9]\{4\}\)/\1\2\3/p')
  43 
  44 # xlc 08.00.0000.0023 and higher supports -qtune=balanced
  45 CXX_SUPPORTS_BALANCED_TUNING := $(shell if [ $(CXX_VERSION) -ge 08000023 ] ; then echo "true" ; fi)
  46 # xlc 10.01 is used with aggressive optimizations to boost performance
  47 CXX_IS_V10 := $(shell if [ $(CXX_VERSION) -ge 10010000 ] ; then echo "true" ; fi)
  48 
  49 # check for precompiled headers support
  50 
  51 # Switch off the precompiled header support. Neither xlC 8.0 nor xlC 10.0
  52 # support precompiled headers. Both "understand" the command line switches "-qusepcomp" and 
  53 # "-qgenpcomp" but when we specify them the following message is printed:
  54 # "1506-755 (W) The -qusepcomp option is not supported in this release."
  55 USE_PRECOMPILED_HEADER = 0
  56 ifneq ($(USE_PRECOMPILED_HEADER),0)
  57 PRECOMPILED_HEADER_DIR=.
  58 PRECOMPILED_HEADER_SRC=$(GAMMADIR)/src/share/vm/precompiled/precompiled.hpp
  59 PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/precompiled.hpp.gch
  60 endif
  61 
  62 
  63 #------------------------------------------------------------------------
  64 # Compiler flags
  65 
  66 # position-independent code
  67 PICFLAG = -qpic=large