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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/krb5/kproplog/Makefile
          +++ new/usr/src/cmd/krb5/kproplog/Makefile
   1    1  #
   2    2  # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
   3    3  # Use is subject to license terms.
   4    4  #
        5 +# Copyright (c) 2018, Joyent, Inc.
   5    6  
   6    7  PROG            =       kproplog
   7    8  
   8    9  OBJS            =       kproplog.o
   9   10  DERIVED_OBJS    =       iprop_xdr.o
  10   11  
  11   12  SRCS=   $(OBJS:.o=.c)
  12   13  SRCS+=  $(DERIVED_OBJS:.o=.c)
  13   14  
  14   15  RSRC=   kproplog.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  30   31  
  31   32  CPPFLAGS        +=      -I. -I$(SRC)/lib/krb5 \
  32   33                          -I$(KRB5IPROPDIR) \
  33   34                          -I$(SRC)/lib/gss_mechs/mech_krb5/include \
  34   35                          -I$(SRC)/uts/common/gssapi/mechs/krb5/include
  35   36  
  36   37  CERRWARN        +=      -_gcc=-Wno-unused-variable
  37   38  CERRWARN        +=      -_gcc=-Wno-unused-function
  38   39  CERRWARN        +=      -_gcc=-Wno-implicit-function-declaration
  39   40  
       41 +# not linted
       42 +SMATCH=off
       43 +
  40   44  all:            $(PROG)
  41   45  
  42   46  $(PROG):        $(OBJS) $(DERIVED_OBJS)
  43   47          $(LINK.c) $(OBJS) $(DERIVED_OBJS) -o $@ $(LDLIBS)
  44   48          $(POST_PROCESS)
  45   49  
  46   50  # Rules to rpcgen-erate derived files from the iprop.x spec file
  47   51  iprop.h:        $(KRB5IPROPDIR)/iprop.x
  48   52          $(RM) $@
  49   53          $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
↓ open down ↓ 26 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX