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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mailwrapper/Makefile
          +++ new/usr/src/cmd/mailwrapper/Makefile
↓ open down ↓ 4 lines elided ↑ open up ↑
   5    5  # 1.0 of the CDDL.
   6    6  #
   7    7  # A full copy of the text of the CDDL should have accompanied this
   8    8  # source.  A copy of the CDDL is also available via the Internet at
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13   13  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  14   14  # Copyright 2014 Alexander Pyhalov
       15 +# Copyright (c) 2018, Joyent, Inc.
  15   16  #
  16   17  
  17   18  
  18      -LIBPROG=        mailwrapper 
       19 +LIBPROG=        mailwrapper
  19   20  
  20   21  PROG=          $(LIBPROG)
  21   22  
  22   23  include ../Makefile.cmd
  23   24  
  24   25  MWOBJS=         fgetln.o fparseln.o mailwrapper.o
  25   26  
  26   27  CLOBBERFILES=   $(PROG)
  27   28  CLEANFILES=     $(MWOBJS)
  28   29  
↓ open down ↓ 13 lines elided ↑ open up ↑
  42   43  
  43   44  ROOTSYMLINKS=   $(ROOTBIN)/mailq \
  44   45                  $(ROOTLIB)/sendmail \
  45   46                  $(ROOTUSRSBIN)/newaliases \
  46   47                  $(ROOTUSRSBIN)/sendmail
  47   48  
  48   49  CPPFLAGS =      -I. $(CPPFLAGS.master)
  49   50  
  50   51  LINTFLAGS       += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
  51   52  
       53 +SMOFF += all_func_returns
       54 +
  52   55  # conditional assignments
  53   56  #
  54   57  all:=           TARGET= all
  55   58  install:=       TARGET= install
  56   59  clean:=         TARGET= clean
  57   60  clobber:=       TARGET= clobber
  58   61  lint:=          TARGET= lint
  59   62  
  60   63  # install rules
  61   64  $(ROOTINC)/% : %
  62   65          $(INS.file)
  63   66  
  64   67  .KEEP_STATE:
  65   68  
  66   69  .PARALLEL: $(MWOBJS) $(OBJS)
  67   70  
  68      -all:            $(PROG) 
       71 +all:            $(PROG)
  69   72  
  70   73  mailwrapper:    $(MWOBJS)
  71   74          $(LINK.c) -o $@ $(MWOBJS) $(LDLIBS)
  72   75          $(POST_PROCESS)
  73   76  
  74   77  install: all .WAIT $(ROOTLIBPROG) $(ROOTSYMLINKS) $(ROOTETCFILES)
  75   78  
  76   79  # ROOTSYMLINKS
  77   80  #
  78      -$(ROOTBIN)/mailq: 
       81 +$(ROOTBIN)/mailq:
  79   82          $(RM) $@; $(SYMLINK) ../lib/mailwrapper $@
  80   83  
  81   84  $(ROOTLIB)/sendmail:
  82   85          $(RM) $@; $(SYMLINK) mailwrapper $@
  83   86  
  84   87  $(ROOTUSRSBIN)/newaliases:
  85   88          $(RM) $@; $(SYMLINK) ../lib/mailwrapper $@
  86   89  
  87   90  $(ROOTUSRSBIN)/sendmail:
  88   91          $(RM) $@; $(SYMLINK) ../lib/mailwrapper $@
  89   92  
  90   93  $(ROOTETCMAIL)/%:  %
  91   94          $(INS.file)
  92   95  
  93      -lint: 
       96 +lint:
  94   97          $(LINT.c) $(SRCS)
  95   98  
  96   99  clean:
  97  100          $(RM) $(OBJS) $(MWOBJS) mailwrapper
  98  101  
  99  102  clobber: clean
 100  103          $(RM) $(ROOTSYMLINKS) $(ROOTLIBPROG) $(ROOTETCFILES)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX