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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/tail/Makefile
          +++ new/usr/src/cmd/tail/Makefile
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4  # You may only use this file in accordance with the terms version
   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 is of the CDDL is also available via the Internet
   9    9  # at http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13   13  # Copyright 2010 Chris Love.  All rights reserved.
       14 +# Copyright (c) 2018, Joyent, Inc.
  14   15  #
  15   16  
  16   17  
  17   18  PROG=           tail
  18   19  XPG4PROG=       $(PROG)
  19   20  
  20   21  OBJS=           forward.o misc.o read.o reverse.o tail.o
  21   22  SRCS=           $(OBJS:%.o=%.c)
  22   23  
  23   24  include ../Makefile.cmd
  24   25  
  25   26  CLOBBERFILES=   $(PROG)
  26   27  CPPFLAGS +=        -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
  27   28  
  28   29  CSTD=   $(CSTD_GNU99)
  29   30  C99LMODE=       -Xc99=%all
  30   31  LINTFLAGS +=    -I. -erroff=E_CONSTANT_CONDITION
  31   32  
       33 +SMOFF += leaks
       34 +
  32   35  # install rules
  33   36  $(ROOTINC)/% : %
  34   37          $(INS.file)
  35   38  
  36   39  .KEEP_STATE:
  37   40  
  38   41  .PARALLEL: $(OBJS)
  39   42  
  40      -all:            $(PROG) 
       43 +all:            $(PROG)
  41   44  
  42   45  $(PROG):        $(OBJS)
  43   46          $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  44   47          $(POST_PROCESS)
  45   48  
  46   49  install: all .WAIT $(ROOTPROG) $(ROOTXPG4PROG)
  47   50  
  48   51  $(ROOTXPG4PROG):
  49   52          -$(RM) $@
  50   53          -$(LN) -s ../../bin/$(PROG) $@
  51   54  
  52   55  lint:   lint_SRCS
  53   56  
  54   57  clean:
  55   58          $(RM) $(OBJS)
  56   59  
  57   60  include ../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX