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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fs.d/nfs/nfsmapid/Makefile
          +++ new/usr/src/cmd/fs.d/nfs/nfsmapid/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 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
       27 +
  26   28  FSTYPE    =     nfs
  27   29  TYPEPROG  =     nfsmapid
  28   30  TESTPROG  =     nfsmapid_test
  29   31  ATTMK     =     $(TYPEPROG)
  30   32  
  31   33  include         ../../Makefile.fstype
  32   34  
  33   35  LDLIBS   +=     -L$(ROOT)/usr/lib/nfs -R/usr/lib/nfs
  34   36  LDLIBS   +=     -lnsl -lmapid -ldtrace -lidmap
  35   37  COMMON    =     nfs_resolve.o
↓ open down ↓ 1 lines elided ↑ open up ↑
  37   39  DSRC      =     nfsmapid_dt.d
  38   40  DOBJ      =     $(DSRC:%.d=%.o)
  39   41  OBJS      =     nfsmapid.o nfsmapid_server.o $(COMMON)
  40   42  CPPFLAGS +=     -I../lib -D_POSIX_PTHREAD_SEMANTICS
  41   43  
  42   44  CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  43   45  CERRWARN +=     -_gcc=-Wno-unused-variable
  44   46  CERRWARN +=     -_gcc=-Wno-parentheses
  45   47  CERRWARN +=     -_gcc=-Wno-uninitialized
  46   48  
       49 +# not linted
       50 +SMATCH=off
       51 +
  47   52  all:            $(TYPEPROG) $(TESTPROG)
  48   53  
  49   54  $(TYPEPROG):    $(OBJS) $(DSRC)
  50   55                  $(COMPILE.d) -s $(DSRC) -o $(DOBJ) $(OBJS)
  51   56                  $(LINK.c) $(ZIGNORE) -o $@ $(DOBJ) $(OBJS) $(LDLIBS)
  52   57                  $(POST_PROCESS)
  53   58  
  54   59  nfs_resolve.o:  ../lib/nfs_resolve.c
  55   60                  $(COMPILE.c) ../lib/nfs_resolve.c
  56   61  
↓ open down ↓ 22 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX