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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/devfsadm/Makefile.com
          +++ new/usr/src/cmd/devfsadm/Makefile.com
↓ open down ↓ 13 lines elided ↑ open up ↑
  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   21  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  22   22  # Use is subject to license terms.
  23   23  #
       24 +# Copyright (c) 2018, Joyent, Inc.
  24   25  
  25   26  # This target builds both a command (daemon) and various shared objects.  This
  26   27  # isn't a typical target, and the inclusion of both library and command
  27   28  # Makefiles were probably not in their original design.  However, there doesn't
  28   29  # presently seem to be a clash of any required definitions.
  29   30  include ../../../lib/Makefile.lib
  30   31  include ../../Makefile.cmd
  31   32  
  32   33  COMMON = ..
  33   34  UTSBASE = $(COMMON)/../../uts
↓ open down ↓ 58 lines elided ↑ open up ↑
  92   93  CFLAGS += $(CCVERBOSE) $(C_PICFLAGS)
  93   94  
  94   95  LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
  95   96  LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
  96   97  LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
  97   98  
  98   99  CERRWARN += -_gcc=-Wno-uninitialized
  99  100  CERRWARN += -_gcc=-Wno-char-subscripts
 100  101  CERRWARN += -_gcc=-Wno-parentheses
 101  102  
      103 +# not linted
      104 +SMATCH=off
      105 +
 102  106  # Define the dependencies required by devfsadm and all shared objects.
 103  107  LDLIBS +=               -ldevinfo
 104  108  devfsadm :=             LDLIBS += -lgen -lsysevent -lnvpair -lzonecfg -lbsm
 105  109  SUNW_md_link.so :=      LDLIBS += -lmeta
 106  110  SUNW_disk_link.so :=    LDLIBS += -ldevid
 107  111  SUNW_sgen_link.so :=    LDLIBS += -ldevid
 108  112  
 109  113  # All libraries are built from the same SUNW_%.so rule (see below), and define
 110  114  # their own SONAME using -h explicitly.  Null the generic -h macro that gets
 111  115  # inherited from Makefile.lib, otherwise we'll get two -h definitions.
↓ open down ↓ 111 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX