Print this page
7610 SGSPROTO bits are built without SONAME for some reason
Reviewed by: Robert Mustacchi <rm@joyent.com>


   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   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 (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.

  24 #
  25 
  26 .KEEP_STATE:
  27 .KEEP_STATE_FILE: .make.state.$(MACH)
  28 
  29 
  30 include         $(SRC)/cmd/sgs/Makefile.var
  31 
  32 SRCBASE =       ../../../..
  33 
  34 i386_ARCH =     intel
  35 sparc_ARCH =    sparc
  36 
  37 ARCH =          $($(MACH)_ARCH)
  38 
  39 # Establish any global flags.
  40 
  41 # Setting DEBUG = -DDEBUG (or "make DEBUG=-DDEBUG ...") enables ASSERT()
  42 # checking.  This is automatically enabled for DEBUG builds, not for non-debug
  43 # builds.  Unset the global C99_DISABLE flag to insure we uncover all compiler


 103 
 104 # The cmd/Makefile.com and lib/Makefile.com define TEXT_DOMAIN.  We don't need
 105 # this definition as the sgs utilities obtain their domain via sgsmsg(1l).
 106 
 107 DTEXTDOM =
 108 
 109 # Define any generic sgsmsg(1l) flags.  The default message generation system
 110 # is to use gettext(3i), add the -C flag to switch to catgets(3c).
 111 
 112 SGSMSG =                $(SGSTOOLS)/$(MACH)/sgsmsg
 113 SGSMSG_PIGLATIN_NL =    perl $(SGSTOOLS)/common/sgsmsg_piglatin_nl.pl
 114 CHKMSG =                $(SGSTOOLS)/chkmsg.sh
 115 
 116 SGSMSGVFLAG =
 117 SGSMSGFLAGS =   $(SGSMSGVFLAG) -i $(SGSMSGID)/sgs.ident
 118 CHKMSGFLAGS =   $(SGSMSGTARG:%=-m %) $(SGSMSGCHK:%=-m %)
 119 
 120 # Native targets should use the minimum of ld(1) flags to allow building on
 121 # previous releases.  We use mapfiles to scope, but don't bother versioning.
 122 
 123 native :=       DYNFLAGS = -R$(SGSPROTO) -L$(SGSPROTO) $(ZNOVERSION)
 124 
 125 # Comment out the following two lines to have the sgs built from the system
 126 # link-editor, rather than the local proto link-editor.
 127 CC_USE_PROTO =  -Yl,$(SGSPROTO)
 128 LD_USE_PROTO =  $(SGSPROTO)/
 129 
 130 #
 131 # lint-related stuff
 132 #
 133 LIBNAME32 =     $(LIBNAME:%=%32)
 134 LIBNAME64 =     $(LIBNAME:%=%64)
 135 LIBNAMES =      $(LIBNAME32) $(LIBNAME64)
 136 
 137 SGSLINTOUT =    lint.out
 138 LINTOUT1 =      lint.out.1
 139 LINTOUT32 =     lint.out.32
 140 LINTOUT64 =     lint.out.64
 141 LINTOUTS =      $(SGSLINTOUT) $(LINTOUT1) $(LINTOUT32) $(LINTOUT64)
 142 
 143 LINTLIBSRC =    $(LINTLIB:%.ln=%)




   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   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 (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2016 RackTop Systems.
  25 #
  26 
  27 .KEEP_STATE:
  28 .KEEP_STATE_FILE: .make.state.$(MACH)
  29 
  30 
  31 include         $(SRC)/cmd/sgs/Makefile.var
  32 
  33 SRCBASE =       ../../../..
  34 
  35 i386_ARCH =     intel
  36 sparc_ARCH =    sparc
  37 
  38 ARCH =          $($(MACH)_ARCH)
  39 
  40 # Establish any global flags.
  41 
  42 # Setting DEBUG = -DDEBUG (or "make DEBUG=-DDEBUG ...") enables ASSERT()
  43 # checking.  This is automatically enabled for DEBUG builds, not for non-debug
  44 # builds.  Unset the global C99_DISABLE flag to insure we uncover all compiler


 104 
 105 # The cmd/Makefile.com and lib/Makefile.com define TEXT_DOMAIN.  We don't need
 106 # this definition as the sgs utilities obtain their domain via sgsmsg(1l).
 107 
 108 DTEXTDOM =
 109 
 110 # Define any generic sgsmsg(1l) flags.  The default message generation system
 111 # is to use gettext(3i), add the -C flag to switch to catgets(3c).
 112 
 113 SGSMSG =                $(SGSTOOLS)/$(MACH)/sgsmsg
 114 SGSMSG_PIGLATIN_NL =    perl $(SGSTOOLS)/common/sgsmsg_piglatin_nl.pl
 115 CHKMSG =                $(SGSTOOLS)/chkmsg.sh
 116 
 117 SGSMSGVFLAG =
 118 SGSMSGFLAGS =   $(SGSMSGVFLAG) -i $(SGSMSGID)/sgs.ident
 119 CHKMSGFLAGS =   $(SGSMSGTARG:%=-m %) $(SGSMSGCHK:%=-m %)
 120 
 121 # Native targets should use the minimum of ld(1) flags to allow building on
 122 # previous releases.  We use mapfiles to scope, but don't bother versioning.
 123 
 124 native :=       DYNFLAGS = -R$(SGSPROTO) -L$(SGSPROTO) $(ZNOVERSION) $(HSONAME)
 125 
 126 # Comment out the following two lines to have the sgs built from the system
 127 # link-editor, rather than the local proto link-editor.
 128 CC_USE_PROTO =  -Yl,$(SGSPROTO)
 129 LD_USE_PROTO =  $(SGSPROTO)/
 130 
 131 #
 132 # lint-related stuff
 133 #
 134 LIBNAME32 =     $(LIBNAME:%=%32)
 135 LIBNAME64 =     $(LIBNAME:%=%64)
 136 LIBNAMES =      $(LIBNAME32) $(LIBNAME64)
 137 
 138 SGSLINTOUT =    lint.out
 139 LINTOUT1 =      lint.out.1
 140 LINTOUT32 =     lint.out.32
 141 LINTOUT64 =     lint.out.64
 142 LINTOUTS =      $(SGSLINTOUT) $(LINTOUT1) $(LINTOUT32) $(LINTOUT64)
 143 
 144 LINTLIBSRC =    $(LINTLIB:%.ln=%)