make/solaris/makefiles/sparcWorks.make

Print this page


   1 #
   2 # Copyright (c) 1998, 2009, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  


 128   ARCHFLAG/sparc   = $(ARCHFLAG_OLD/sparc)
 129   ARCHFLAG/sparcv9 = $(ARCHFLAG_OLD/sparcv9)
 130   ARCHFLAG/i486    = $(ARCHFLAG_OLD/i486)
 131   ARCHFLAG/amd64   = $(ARCHFLAG_OLD/amd64)
 132 endif
 133 
 134 # ARCHFLAGS for the current build arch
 135 ARCHFLAG    = $(ARCHFLAG/$(BUILDARCH))
 136 AS_ARCHFLAG = $(ARCHFLAG_OLD/$(BUILDARCH))
 137 
 138 # Optional sub-directory in /usr/lib where BUILDARCH libraries are kept.
 139 ISA_DIR=$(ISA_DIR/$(BUILDARCH))
 140 ISA_DIR/sparcv9=/sparcv9
 141 ISA_DIR/amd64=/amd64
 142 
 143 # Use these to work around compiler bugs:
 144 OPT_CFLAGS/SLOWER=-xO3
 145 OPT_CFLAGS/O2=-xO2
 146 OPT_CFLAGS/NOOPT=-xO1
 147 
 148 #################################################





 149 # Begin current (>=5.9) Forte compiler options #
 150 #################################################
 151 
 152 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
 153 ifeq ($(Platform_arch), x86)
 154 OPT_CFLAGS/NO_TAIL_CALL_OPT  = -Wu,-O~yz
 155 OPT_CCFLAGS/NO_TAIL_CALL_OPT = -Qoption ube -O~yz
 156 OPT_CFLAGS/stubGenerator_x86_32.o = $(OPT_CFLAGS) -xspace
 157 OPT_CFLAGS/stubGenerator_x86_64.o = $(OPT_CFLAGS) -xspace
 158 endif # Platform_arch == x86
 159 ifeq ("${Platform_arch}", "sparc")
 160 OPT_CFLAGS/stubGenerator_sparc.o = $(OPT_CFLAGS) -xspace
 161 endif
 162 endif # COMPILER_REV_NUMERIC >= 509
 163 
 164 #################################################
 165 # Begin current (>=5.6) Forte compiler options #
 166 #################################################
 167 
 168 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 506), 1)


   1 #
   2 # Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  


 128   ARCHFLAG/sparc   = $(ARCHFLAG_OLD/sparc)
 129   ARCHFLAG/sparcv9 = $(ARCHFLAG_OLD/sparcv9)
 130   ARCHFLAG/i486    = $(ARCHFLAG_OLD/i486)
 131   ARCHFLAG/amd64   = $(ARCHFLAG_OLD/amd64)
 132 endif
 133 
 134 # ARCHFLAGS for the current build arch
 135 ARCHFLAG    = $(ARCHFLAG/$(BUILDARCH))
 136 AS_ARCHFLAG = $(ARCHFLAG_OLD/$(BUILDARCH))
 137 
 138 # Optional sub-directory in /usr/lib where BUILDARCH libraries are kept.
 139 ISA_DIR=$(ISA_DIR/$(BUILDARCH))
 140 ISA_DIR/sparcv9=/sparcv9
 141 ISA_DIR/amd64=/amd64
 142 
 143 # Use these to work around compiler bugs:
 144 OPT_CFLAGS/SLOWER=-xO3
 145 OPT_CFLAGS/O2=-xO2
 146 OPT_CFLAGS/NOOPT=-xO1
 147 
 148 # Flags for creating the dependency files.
 149 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
 150 DEPFLAGS = -xMMD -xMF $(DEP_DIR)/$(@:%=%.d)
 151 endif
 152 
 153 ################################################
 154 # Begin current (>=5.9) Forte compiler options #
 155 #################################################
 156 
 157 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
 158 ifeq ($(Platform_arch), x86)
 159 OPT_CFLAGS/NO_TAIL_CALL_OPT  = -Wu,-O~yz
 160 OPT_CCFLAGS/NO_TAIL_CALL_OPT = -Qoption ube -O~yz
 161 OPT_CFLAGS/stubGenerator_x86_32.o = $(OPT_CFLAGS) -xspace
 162 OPT_CFLAGS/stubGenerator_x86_64.o = $(OPT_CFLAGS) -xspace
 163 endif # Platform_arch == x86
 164 ifeq ("${Platform_arch}", "sparc")
 165 OPT_CFLAGS/stubGenerator_sparc.o = $(OPT_CFLAGS) -xspace
 166 endif
 167 endif # COMPILER_REV_NUMERIC >= 509
 168 
 169 #################################################
 170 # Begin current (>=5.6) Forte compiler options #
 171 #################################################
 172 
 173 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 506), 1)