Print this page
8411 Build should warn when linking against libraries outside proto area


   3 #
   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 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.

  23 #
  24 # Definitions common to command source.
  25 #
  26 # include global definitions; SRC should be defined in the shell.
  27 # SRC is needed until RFE 1026993 is implemented.
  28 
  29 include $(SRC)/Makefile.master
  30 
  31 LN=             ln
  32 SH=             sh
  33 ECHO=           echo
  34 MKDIR=          mkdir
  35 TOUCH=          touch
  36 
  37 FILEMODE=       0555
  38 LIBFILEMODE=    0444
  39 XPG4=           $(XPG4PROG:%=%.xpg4)
  40 XPG6=           $(XPG6PROG:%=%.xpg6)
  41 
  42 KRB5DIR=        $(ROOT)/usr


 106 #
 107 # Like ROOTLIBDIR in $(SRC)/Makefile.lib, any lower-level Makefiles that
 108 # put their binaries in a non-standard location should reset this and use
 109 # $(ROOTCMD) in their `install' target. By default we set this to a bogus
 110 # value so that it will not conflict with any of the other values already
 111 # defined in this Makefile.
 112 #
 113 ROOTCMDDIR=     $(ROOT)/__nonexistent_directory__
 114 
 115 ROOTSHAUDIO=    $(ROOT)/usr/share/audio
 116 ROOTAUDIOSAMP=  $(ROOTSHAUDIO)/samples
 117 ROOTAUDIOSAMPAU=$(ROOTAUDIOSAMP)/au
 118 
 119 ISAEXEC=        $(ROOT)/usr/lib/isaexec
 120 PLATEXEC=       $(ROOT)/usr/lib/platexec
 121 
 122 LDLIBS =        $(LDLIBS.cmd)
 123 
 124 LDFLAGS.cmd = \
 125         $(BDIRECT) $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
 126         $(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)

 127 
 128 LDFLAGS =       $(LDFLAGS.cmd)
 129 
 130 LINTFLAGS=      -axsm
 131 LINTFLAGS64=    -axsm -m64
 132 LINTOUT=        lint.out
 133 
 134 KRB5PROG=       $(PROG:%=$(KRB5BIN)/%)
 135 KRB5SBINPROG=   $(PROG:%=$(KRB5SBIN)/%)
 136 KRB5LIBPROG=    $(PROG:%=$(KRB5LIB)/%)
 137 
 138 ROOTPROG=       $(PROG:%=$(ROOTBIN)/%)
 139 ROOTCMD=        $(PROG:%=$(ROOTCMDDIR)/%)
 140 ROOTSHFILES=    $(SHFILES:%=$(ROOTBIN)/%)
 141 ROOTLIBPROG=    $(PROG:%=$(ROOTLIB)/%)
 142 ROOTLIBSHFILES= $(SHFILES:%=$(ROOTLIB)/%)
 143 ROOTSHLIBPROG=  $(PROG:%=$(ROOTSHLIB)/%)
 144 ROOTSBINPROG=   $(PROG:%=$(ROOTSBIN)/%)
 145 ROOTPKGBINPROG= $(PROG:%=$(ROOTPKGBIN)/%)
 146 ROOTCLASS_SCR_FILES= $(SCRIPTS:%=$(ROOTCLASS_SCR_DIR)/%)




   3 #
   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 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright 2017 RackTop Systems.
  24 #
  25 # Definitions common to command source.
  26 #
  27 # include global definitions; SRC should be defined in the shell.
  28 # SRC is needed until RFE 1026993 is implemented.
  29 
  30 include $(SRC)/Makefile.master
  31 
  32 LN=             ln
  33 SH=             sh
  34 ECHO=           echo
  35 MKDIR=          mkdir
  36 TOUCH=          touch
  37 
  38 FILEMODE=       0555
  39 LIBFILEMODE=    0444
  40 XPG4=           $(XPG4PROG:%=%.xpg4)
  41 XPG6=           $(XPG6PROG:%=%.xpg6)
  42 
  43 KRB5DIR=        $(ROOT)/usr


 107 #
 108 # Like ROOTLIBDIR in $(SRC)/Makefile.lib, any lower-level Makefiles that
 109 # put their binaries in a non-standard location should reset this and use
 110 # $(ROOTCMD) in their `install' target. By default we set this to a bogus
 111 # value so that it will not conflict with any of the other values already
 112 # defined in this Makefile.
 113 #
 114 ROOTCMDDIR=     $(ROOT)/__nonexistent_directory__
 115 
 116 ROOTSHAUDIO=    $(ROOT)/usr/share/audio
 117 ROOTAUDIOSAMP=  $(ROOTSHAUDIO)/samples
 118 ROOTAUDIOSAMPAU=$(ROOTAUDIOSAMP)/au
 119 
 120 ISAEXEC=        $(ROOT)/usr/lib/isaexec
 121 PLATEXEC=       $(ROOT)/usr/lib/platexec
 122 
 123 LDLIBS =        $(LDLIBS.cmd)
 124 
 125 LDFLAGS.cmd = \
 126         $(BDIRECT) $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
 127         $(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) \
 128         $(ZASSERTDEFLIB)
 129 
 130 LDFLAGS =       $(LDFLAGS.cmd)
 131 
 132 LINTFLAGS=      -axsm
 133 LINTFLAGS64=    -axsm -m64
 134 LINTOUT=        lint.out
 135 
 136 KRB5PROG=       $(PROG:%=$(KRB5BIN)/%)
 137 KRB5SBINPROG=   $(PROG:%=$(KRB5SBIN)/%)
 138 KRB5LIBPROG=    $(PROG:%=$(KRB5LIB)/%)
 139 
 140 ROOTPROG=       $(PROG:%=$(ROOTBIN)/%)
 141 ROOTCMD=        $(PROG:%=$(ROOTCMDDIR)/%)
 142 ROOTSHFILES=    $(SHFILES:%=$(ROOTBIN)/%)
 143 ROOTLIBPROG=    $(PROG:%=$(ROOTLIB)/%)
 144 ROOTLIBSHFILES= $(SHFILES:%=$(ROOTLIB)/%)
 145 ROOTSHLIBPROG=  $(PROG:%=$(ROOTSHLIB)/%)
 146 ROOTSBINPROG=   $(PROG:%=$(ROOTSBIN)/%)
 147 ROOTPKGBINPROG= $(PROG:%=$(ROOTPKGBIN)/%)
 148 ROOTCLASS_SCR_FILES= $(SCRIPTS:%=$(ROOTCLASS_SCR_DIR)/%)