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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/dladm/Makefile
          +++ new/usr/src/cmd/dladm/Makefile
↓ open down ↓ 10 lines elided ↑ open up ↑
  11   11  # and limitations under the License.
  12   12  #
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21      -
  22      -#
  23   21  # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24   22  # Use is subject to license terms.
  25   23  #
       24 +# Copyright (c) 2018, Joyent, Inc.
  26   25  
  27   26  PROG=           dladm
  28   27  ROOTFS_PROG=    $(PROG)
  29   28  OBJS=           dladm.o
  30   29  
  31   30  CFGFILES=       secobj.conf
  32   31  ROOTCFGDIR=     $(ROOTETC)/dladm
  33   32  ROOTCFGFILES=   $(CFGFILES:%=$(ROOTCFGDIR)/%)
  34   33  
  35   34  include         $(SRC)/cmd/Makefile.cmd
↓ open down ↓ 2 lines elided ↑ open up ↑
  38   37  XGETFLAGS +=    -a -x $(PROG).xcl
  39   38  
  40   39  LDLIBS +=       -L$(ROOT)/lib -lsocket
  41   40  LDLIBS +=       -ldladm -ldlpi -lkstat -lsecdb -lbsm -lofmt -linetutil -ldevinfo
  42   41  LDLIBS +=       $(ZLAZYLOAD) -lrstp $(ZNOLAZYLOAD)
  43   42  
  44   43  CERRWARN +=     -_gcc=-Wno-switch
  45   44  CERRWARN +=     -_gcc=-Wno-unused-label
  46   45  CERRWARN +=     -_gcc=-Wno-uninitialized
  47   46  
       47 +SMOFF += snprintf_overflow
       48 +
  48   49  # For headers from librstp.
  49   50  LINTFLAGS +=    -erroff=E_TRAILING_COMMA_IN_ENUM
  50   51  lint :=         ZLAZYLOAD=
  51   52  lint :=         ZNOLAZYLOAD=
  52   53  
  53   54  $(ROOTCFGDIR)/secobj.conf := FILEMODE= 660
  54   55  
  55   56  .KEEP_STATE:
  56   57  
  57   58  all:            $(PROG)
↓ open down ↓ 21 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX