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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mpathadm/Makefile
          +++ new/usr/src/cmd/mpathadm/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 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -# cmd/mpathadm/Makefile
       25 +# Copyright (c) 2018, Joyent, Inc.
  26   26  
  27   27  include ../Makefile.cmd
  28   28  
  29   29  PROG= mpathadm
  30   30  
  31   31  OBJS= cmdparse.o mpathadm.o mpathadm_text.o
  32   32  SRCS= $(OBJS:%.o=%.c)
  33   33  POFILE= mpathadm_all.po
  34   34  POFILES=$(OBJS:%.o=%.po)
  35   35  
  36   36  LDLIBS += -lMPAPI -ldevid
  37   37  
  38   38  LINTFLAGS += -xerroff=E_BAD_FORMAT_STR2
  39   39  
       40 +# not linted
       41 +SMATCH=off
       42 +
  40   43  .KEEP_STATE:
  41   44  
  42      -all: $(PROG) 
       45 +all: $(PROG)
  43   46  
  44   47  $(PROG): $(OBJS)
  45   48          $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  46   49          $(POST_PROCESS)
  47   50  
  48   51  install: all $(ROOTUSRSBINPROG)
  49   52  
  50   53  
  51   54  clean:
  52   55          $(RM) $(OBJS) $(POFILES) $(POFILE)
  53   56  
  54   57  $(POFILE): $(POFILES)
  55   58          $(RM) $@
  56   59          $(CAT) $(POFILES) > $@
  57   60  
  58   61  lint:   lint_SRCS
  59   62  
  60   63  include ../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX