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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fs.d/nfs/nfsd/Makefile
          +++ new/usr/src/cmd/fs.d/nfs/nfsd/Makefile
↓ 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  #
  22   22  # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  #
  24      -#
       24 +# Copyright (c) 2018, Joyent, Inc.
  25   25  
  26   26  FSTYPE=         nfs
  27   27  TYPEPROG=       nfsd
  28   28  ATTMK=          $(TYPEPROG)
  29   29  
  30   30  include         ../../Makefile.fstype
  31   31  
  32   32  LDLIBS +=       -lnsl -lnvpair  -lscf
  33   33  
  34   34  LOCAL=          nfsd.o
  35   35  OBJS=           $(LOCAL) nfs_tbind.o thrpool.o daemon.o smfcfg.o
  36   36  SRCS=           $(LOCAL:%.o=%.c) ../lib/nfs_tbind.c ../lib/thrpool.c ../lib/daemon.c \
  37   37                  ../lib/smfcfg.c
  38   38  
  39   39  CPPFLAGS +=     -I../lib
  40   40  CERRWARN +=     -_gcc=-Wno-parentheses
  41   41  CERRWARN +=     -_gcc=-Wno-unused-variable
  42   42  CERRWARN +=     -_gcc=-Wno-switch
  43   43  CERRWARN +=     -_gcc=-Wno-extra
  44   44  
       45 +# not linted
       46 +SMATCH=off
       47 +
  45   48  $(TYPEPROG):    $(OBJS)
  46   49                  $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
  47   50                  $(POST_PROCESS)
  48   51  
  49   52  nfs_tbind.o:    ../lib/nfs_tbind.c
  50   53                  $(COMPILE.c) ../lib/nfs_tbind.c
  51   54  
  52   55  thrpool.o:      ../lib/thrpool.c
  53   56                  $(COMPILE.c) ../lib/thrpool.c
  54   57  
  55   58  daemon.o:       ../lib/daemon.c
  56   59                  $(COMPILE.c) ../lib/daemon.c
  57   60  
  58   61  smfcfg.o:       ../lib/smfcfg.c
  59   62                  $(COMPILE.c) ../lib/smfcfg.c
  60   63  
  61   64  clean:
  62   65                  $(RM) $(OBJS)
  63   66  
  64   67  lint:           $(SRCS) lint_SRCS
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX