Print this page
10080 smatch Makefile changes for usr/src/cmd


   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 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #

  26 
  27 #
  28 # cmd/lp/Makefile.lp
  29 # Common makefile definitions (should be) used by all lp makefiles
  30 #
  31 
  32 include         $(SRC)/cmd/Makefile.cmd
  33 
  34 LPROOT=         $(SRC)/cmd/lp
  35 ROOTVAR=        $(ROOT)/var
  36 ROOTVARSP=      $(ROOT)/var/spool
  37 
  38 ROOTETCLP=      $(ROOTETC)/lp
  39 ROOTLIBLP=      $(ROOTLIB)/lp
  40 ROOTBINLP=      $(ROOTBIN)/lp
  41 ROOTLIBLPPOST = $(ROOTLIBLP)/postscript
  42 ROOTLIBLPLOCL = $(ROOTLIBLP)/local
  43 
  44 ROOTUSRUCB=     $(ROOT)/usr/ucb
  45 


  80 LINTMSG =       $(LPLIB)/msgs/llib-llpmsg.ln
  81 LINTOAM =       $(LPLIB)/oam/llib-llpoam.ln
  82 LINTPRT =       $(LPLIB)/printers/llib-llpprt.ln
  83 LINTREQ =       $(LPLIB)/requests/llib-llpreq.ln
  84 LINTSEC =       $(LPLIB)/secure/llib-llpsec.ln
  85 LINTUSR =       $(LPLIB)/users/llib-llpusr.ln
  86 
  87 CERRWARN +=     -_gcc=-Wno-sequence-point
  88 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  89 CERRWARN +=     -_gcc=-Wno-parentheses
  90 CERRWARN +=     -_gcc=-Wno-uninitialized
  91 CERRWARN +=     -_gcc=-Wno-unused-variable
  92 CERRWARN +=     -_gcc=-Wno-unused-value
  93 CERRWARN +=     -_gcc=-Wno-unused-label
  94 CERRWARN +=     -_gcc=-Wno-unused-function
  95 CERRWARN +=     -_gcc=-Wno-clobbered
  96 CERRWARN +=     -_gcc=-Wno-empty-body
  97 CERRWARN +=     -_gcc=-Wno-extra
  98 CERRWARN +=     -_gcc=-Wno-address
  99 



 100 all:=           TARGET= all
 101 install:=       TARGET= install
 102 clean:=         TARGET= clean
 103 clobber:=       TARGET= clobber
 104 lint:=          TARGET= lint
 105 strip:=         TARGET= strip
 106 catalog:=       TARGET= catalog
 107 _msg:=          TARGET= catalog
 108 
 109 ROOTLIBLPPROG=  $(PROG:%=$(ROOTLIBLP)/%)
 110 ROOTBINLPPROG=  $(PROG:%=$(ROOTBINLP)/%)
 111 ROOTETCLPPROG=  $(PROG:%=$(ROOTETCLP)/%)
 112 ROOTUSRUCBPROG= $(PROG:%=$(ROOTUSRUCB)/%)
 113 ROOTLIBLPPOSTPROG=      $(PROG:%=$(ROOTLIBLPPOST)/%)
 114 ROOTLIBLPLOCLPROG=      $(PROG:%=$(ROOTLIBLPLOCL)/%)
 115 
 116 $(ROOTLIBLP)/%  \
 117 $(ROOTBINLP)/%  \
 118 $(ROOTETCLP)/%  \
 119 $(ROOTUSRUCB)/% \


   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 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright (c) 2018, Joyent, Inc.
  27 
  28 #
  29 # cmd/lp/Makefile.lp
  30 # Common makefile definitions (should be) used by all lp makefiles
  31 #
  32 
  33 include         $(SRC)/cmd/Makefile.cmd
  34 
  35 LPROOT=         $(SRC)/cmd/lp
  36 ROOTVAR=        $(ROOT)/var
  37 ROOTVARSP=      $(ROOT)/var/spool
  38 
  39 ROOTETCLP=      $(ROOTETC)/lp
  40 ROOTLIBLP=      $(ROOTLIB)/lp
  41 ROOTBINLP=      $(ROOTBIN)/lp
  42 ROOTLIBLPPOST = $(ROOTLIBLP)/postscript
  43 ROOTLIBLPLOCL = $(ROOTLIBLP)/local
  44 
  45 ROOTUSRUCB=     $(ROOT)/usr/ucb
  46 


  81 LINTMSG =       $(LPLIB)/msgs/llib-llpmsg.ln
  82 LINTOAM =       $(LPLIB)/oam/llib-llpoam.ln
  83 LINTPRT =       $(LPLIB)/printers/llib-llpprt.ln
  84 LINTREQ =       $(LPLIB)/requests/llib-llpreq.ln
  85 LINTSEC =       $(LPLIB)/secure/llib-llpsec.ln
  86 LINTUSR =       $(LPLIB)/users/llib-llpusr.ln
  87 
  88 CERRWARN +=     -_gcc=-Wno-sequence-point
  89 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  90 CERRWARN +=     -_gcc=-Wno-parentheses
  91 CERRWARN +=     -_gcc=-Wno-uninitialized
  92 CERRWARN +=     -_gcc=-Wno-unused-variable
  93 CERRWARN +=     -_gcc=-Wno-unused-value
  94 CERRWARN +=     -_gcc=-Wno-unused-label
  95 CERRWARN +=     -_gcc=-Wno-unused-function
  96 CERRWARN +=     -_gcc=-Wno-clobbered
  97 CERRWARN +=     -_gcc=-Wno-empty-body
  98 CERRWARN +=     -_gcc=-Wno-extra
  99 CERRWARN +=     -_gcc=-Wno-address
 100 
 101 # not linted
 102 SMATCH=off
 103 
 104 all:=           TARGET= all
 105 install:=       TARGET= install
 106 clean:=         TARGET= clean
 107 clobber:=       TARGET= clobber
 108 lint:=          TARGET= lint
 109 strip:=         TARGET= strip
 110 catalog:=       TARGET= catalog
 111 _msg:=          TARGET= catalog
 112 
 113 ROOTLIBLPPROG=  $(PROG:%=$(ROOTLIBLP)/%)
 114 ROOTBINLPPROG=  $(PROG:%=$(ROOTBINLP)/%)
 115 ROOTETCLPPROG=  $(PROG:%=$(ROOTETCLP)/%)
 116 ROOTUSRUCBPROG= $(PROG:%=$(ROOTUSRUCB)/%)
 117 ROOTLIBLPPOSTPROG=      $(PROG:%=$(ROOTLIBLPPOST)/%)
 118 ROOTLIBLPLOCLPROG=      $(PROG:%=$(ROOTLIBLPLOCL)/%)
 119 
 120 $(ROOTLIBLP)/%  \
 121 $(ROOTBINLP)/%  \
 122 $(ROOTETCLP)/%  \
 123 $(ROOTUSRUCB)/% \