Print this page
11506 smatch resync

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ls/Makefile.com
          +++ new/usr/src/cmd/ls/Makefile.com
↓ 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/ls/Makefile.com
       25 +# Copyright 2019 Joyent, Inc.
  26   26  #
  27   27  
  28   28  PROG=           ls
  29   29  XPG4PROG=       ls
  30   30  XPG6PROG=       ls
  31   31  OBJS=           $(PROG).o
  32   32  SRCS=           $(OBJS:%.o=../%.c)
  33   33  
  34   34  include ../../Makefile.cmd
  35   35  
  36   36  LDLIBS += -lsec -lnvpair -lcmdutils -lcurses
  37   37  CFLAGS  +=      $(CCVERBOSE)
  38   38  $(XPG4) := CFLAGS += -DXPG4
  39   39  
  40   40  # Include all XPG4 changes in the XPG6 version
  41   41  $(XPG6) := CFLAGS += -DXPG4 -DXPG6
  42   42  $(XPG6) := CFLAGS64 += -DXPG4 -DXPG6
  43   43  
  44   44  CFLAGS64 +=     $(CCVERBOSE)
  45   45  CPPFLAGS += -D_FILE_OFFSET_BITS=64
  46      -LINTFLAGS64 +=  -errchk=longptr64
  47   46  
       47 +# main() can be too hairy
       48 +SMATCH=off
       49 +
  48   50  .KEEP_STATE:
  49   51  
  50   52  all:    $(PROG) $(XPG4) $(XPG6)
  51   53  
  52      -lint:   lint_SRCS
  53      -
  54   54  clean:
  55   55          $(RM) $(CLEANFILES)
  56   56  
  57   57  include ../../Makefile.targ
  58   58  
  59   59  %.xpg4: ../%.c
  60   60          $(LINK.c) -o $@ $< $(LDLIBS)
  61   61          $(POST_PROCESS)
  62   62  
  63   63  %.xpg6: ../%.c
  64      -        $(LINK.c) -o $@ $< $(LDLIBS) 
       64 +        $(LINK.c) -o $@ $< $(LDLIBS)
  65   65          $(POST_PROCESS)
  66   66  
  67   67  %: ../%.c
  68   68          $(LINK.c) -o $@ $< $(LDLIBS)
  69   69          $(POST_PROCESS)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX