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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/bc/Makefile
          +++ new/usr/src/cmd/bc/Makefile
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16  # If applicable, add the following below this CDDL HEADER, with the
  17   17  # fields enclosed by brackets "[]" replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  #
  23   23  # Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
       26 +# Copyright (c) 2018, Joyent, Inc.
  26   27  
  27   28  PROG= bc
  28   29  XPG6PROG= bc
  29   30  XD= exobjs.xpg6
  30   31  EXOBJS= bc.o
  31   32  XPG6EXOBJS= exobjs.xpg6/bc.o
  32   33  
  33   34  LIBB= lib.b
  34   35  CLOBBERFILES= $(LIBB)
  35   36  
  36   37  include ../Makefile.cmd
  37   38  
  38   39  CERRWARN += -_gcc=-Wno-implicit-function-declaration
  39   40  CERRWARN += -_gcc=-Wno-parentheses
  40   41  CERRWARN += -_gcc=-Wno-unused-label
  41   42  
       43 +# nothing lintable
       44 +SMATCH=off
       45 +
  42   46  $(XPG6EXOBJS) := CFLAGS += -DXPG6
  43   47  ROOTLIBB= $(LIBB:%=$(ROOTLIB)/%)
  44   48  $(ROOTLIBB) :=  FILEMODE =      $(LIBFILEMODE)
  45   49  
  46   50  .KEEP_STATE:
  47   51  
  48   52  all: $(PROG) $(XPG6) $(LIBB) 
  49   53  
  50   54  $(PROG): $(EXOBJS)
  51   55          $(LINK.c) -o $@ $(EXOBJS) $(LDLIBS)
↓ open down ↓ 32 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX