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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fs.d/ufs/quota/Makefile
          +++ new/usr/src/cmd/fs.d/ufs/quota/Makefile
↓ open down ↓ 14 lines elided ↑ open up ↑
  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  #
  22   22  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -# cmd/fs.d/ufs/quota/Makefile
       25 +# Copyright (c) 2018, Joyent, Inc.
  26   26  
  27   27  FSTYPE=         ufs
  28   28  LIBPROG=        quota
  29   29  ATTMK=          $(LIBPROG)
  30   30  
  31   31  OTHERINSTALL=   $(ROOTUSRSBIN)/$(LIBPROG)
  32   32  LINKVALUE=      ../lib/fs/$(FSTYPE)/$(LIBPROG)
  33   33  
  34   34  include         ../../Makefile.fstype
  35   35  
  36   36  OBJS=           quota.o rquota_xdr.o replica.o
  37   37  SRCS=           $(OBJS:%.o=%.c)
  38   38  XFILE=          $(ROOT)/usr/include/rpcsvc/rquota.x
  39   39  CPPFLAGS +=     -I $(ROOT)/usr/include/sys -D_LARGEFILE64_SOURCE
  40   40  LDLIBS +=               -lnsl
  41   41  
  42   42  CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  43   43  CERRWARN +=     -_gcc=-Wno-unused-variable
  44   44  CERRWARN +=     -_gcc=-Wno-parentheses
  45   45  
       46 +# not linted
       47 +SMATCH=off
       48 +
  46   49  FILEMODE= 04555
  47   50  
  48   51  $(LIBPROG):     $(OBJS)
  49   52                  $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  50   53                  $(POST_PROCESS)
  51   54  
  52   55  lint:           lint_PROG
  53   56  
  54   57  clean:
  55   58                  $(RM) $(OBJS) rquota_xdr.c
  56   59  
  57   60  $(ROOTUSRSBIN)/$(LIBPROG):
  58   61                  -$(RM) $@; $(SYMLINK) $(LINKVALUE) $@
  59   62  
  60   63  rquota_xdr.c:   $(XFILE)
  61   64                  $(RPCGEN) -c $(XFILE) -o $@
  62   65  
  63   66  replica.o:      ../../nfs/lib/replica.c
  64   67                  $(COMPILE.c) ../../nfs/lib/replica.c
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX