Print this page
5196 The cw wrapper restricts gcc to -O2


   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 # Copyright (c) 2013 Andrew Stormont.  All rights reserved.

  26 #
  27 #       This makefile contains the common definitions for the sun4v unix
  28 #       and all sun4v implementation architecture dependent modules.
  29 #
  30 
  31 #
  32 #       Machine type (implementation architecture):
  33 #
  34 PLATFORM         = sun4v
  35 LINKED_PLATFORMS += SUNW,Sun-Fire-T1000
  36 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T5120
  37 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T5220
  38 LINKED_PLATFORMS += SUNW,T5140
  39 LINKED_PLATFORMS += SUNW,T5240
  40 LINKED_PLATFORMS += SUNW,T5440
  41 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T1000
  42 LINKED_PLATFORMS += SUNW,Sun-Blade-T6300
  43 LINKED_PLATFORMS += SUNW,Sun-Blade-T6320
  44 LINKED_PLATFORMS += SUNW,Netra-CP3260
  45 LINKED_PLATFORMS += SUNW,Netra-T5220


 151 include $(UTSBASE)/sparc/Makefile.files
 152 include $(UTSBASE)/sun/Makefile.files
 153 include $(SRC)/psm/promif/$(PROMIF)/common/Makefile.files
 154 include $(SRC)/psm/promif/$(PROMIF)/$(PLATFORM)/Makefile.files
 155 include $(UTSBASE)/common/Makefile.files
 156 
 157 #
 158 #       Include machine independent rules. Note that this does not imply
 159 #       that the resulting module from rules in Makefile.uts is machine
 160 #       independent. Only that the build rules are machine independent.
 161 #
 162 include $(UTSBASE)/Makefile.uts
 163 
 164 CTFMERGE_GUDIR  = sun4v
 165 
 166 #
 167 #       machine specific optimization, override default in Makefile.master
 168 #
 169 CC_XARCH        = -m64 -xarch=sparcvis
 170 AS_XARCH        = -xarch=v9v
 171 COPTIMIZE       = -xO3
 172 CCMODE          = -Xa
 173 
 174 CFLAGS          = -xchip=ultra $(CCABS32) $(CCREGSYM)
 175 CFLAGS          += $(CC_XARCH)
 176 CFLAGS          += $(COPTIMIZE)
 177 CFLAGS          += $(EXTRA_CFLAGS)
 178 CFLAGS          += $(XAOPT)
 179 CFLAGS          += $(INLINES) -D_ASM_INLINES
 180 CFLAGS          += $(CCMODE)
 181 CFLAGS          += $(SPACEFLAG)
 182 CFLAGS          += $(CERRWARN)
 183 CFLAGS          += $(CTF_FLAGS_$(CLASS))
 184 CFLAGS          += $(C99MODE)
 185 CFLAGS          += $(CCUNBOUND)
 186 CFLAGS          += $(CCNOAUTOINLINE)
 187 CFLAGS          += $(CCSTATICSYM)
 188 CFLAGS          += $(CC32BITCALLERS)
 189 CFLAGS          += $(IROPTFLAG)
 190 CFLAGS          += $(CGLOBALSTATIC)
 191 CFLAGS          += -xregs=no%float




   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 # Copyright (c) 2013 Andrew Stormont.  All rights reserved.
  26 # Copyright 2014 Gary Mills
  27 #
  28 #       This makefile contains the common definitions for the sun4v unix
  29 #       and all sun4v implementation architecture dependent modules.
  30 #
  31 
  32 #
  33 #       Machine type (implementation architecture):
  34 #
  35 PLATFORM         = sun4v
  36 LINKED_PLATFORMS += SUNW,Sun-Fire-T1000
  37 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T5120
  38 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T5220
  39 LINKED_PLATFORMS += SUNW,T5140
  40 LINKED_PLATFORMS += SUNW,T5240
  41 LINKED_PLATFORMS += SUNW,T5440
  42 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T1000
  43 LINKED_PLATFORMS += SUNW,Sun-Blade-T6300
  44 LINKED_PLATFORMS += SUNW,Sun-Blade-T6320
  45 LINKED_PLATFORMS += SUNW,Netra-CP3260
  46 LINKED_PLATFORMS += SUNW,Netra-T5220


 152 include $(UTSBASE)/sparc/Makefile.files
 153 include $(UTSBASE)/sun/Makefile.files
 154 include $(SRC)/psm/promif/$(PROMIF)/common/Makefile.files
 155 include $(SRC)/psm/promif/$(PROMIF)/$(PLATFORM)/Makefile.files
 156 include $(UTSBASE)/common/Makefile.files
 157 
 158 #
 159 #       Include machine independent rules. Note that this does not imply
 160 #       that the resulting module from rules in Makefile.uts is machine
 161 #       independent. Only that the build rules are machine independent.
 162 #
 163 include $(UTSBASE)/Makefile.uts
 164 
 165 CTFMERGE_GUDIR  = sun4v
 166 
 167 #
 168 #       machine specific optimization, override default in Makefile.master
 169 #
 170 CC_XARCH        = -m64 -xarch=sparcvis
 171 AS_XARCH        = -xarch=v9v
 172 COPTIMIZE       = -_cc=-xO3 -_gcc=-O2
 173 CCMODE          = -Xa
 174 
 175 CFLAGS          = -xchip=ultra $(CCABS32) $(CCREGSYM)
 176 CFLAGS          += $(CC_XARCH)
 177 CFLAGS          += $(COPTIMIZE)
 178 CFLAGS          += $(EXTRA_CFLAGS)
 179 CFLAGS          += $(XAOPT)
 180 CFLAGS          += $(INLINES) -D_ASM_INLINES
 181 CFLAGS          += $(CCMODE)
 182 CFLAGS          += $(SPACEFLAG)
 183 CFLAGS          += $(CERRWARN)
 184 CFLAGS          += $(CTF_FLAGS_$(CLASS))
 185 CFLAGS          += $(C99MODE)
 186 CFLAGS          += $(CCUNBOUND)
 187 CFLAGS          += $(CCNOAUTOINLINE)
 188 CFLAGS          += $(CCSTATICSYM)
 189 CFLAGS          += $(CC32BITCALLERS)
 190 CFLAGS          += $(IROPTFLAG)
 191 CFLAGS          += $(CGLOBALSTATIC)
 192 CFLAGS          += -xregs=no%float