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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/nl/Makefile
          +++ new/usr/src/cmd/nl/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 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
       25 +# Copyright (c) 2018, Joyent, Inc.
       26 +#
  25   27  # Message catalog requires no special processing because messages
  26   28  # only occur in ./nl.c, not in ../expr/compile.c.
  27   29  
  28   30  PROG= nl
  29   31  XPG4PROG= nl
  30   32  
  31   33  NLOBJ= nlobjs/$(PROG).o nlobjs/compile.o
  32   34  XPG4NLOBJ= nlobjs.xpg4/$(PROG).o nlobjs.xpg4/compile.o
  33   35  
  34   36  OBJS = $(NLOBJ) $(XPG4NLOBJ)
  35   37  SRCS = nl.c ../expr/compile.c
  36   38  
  37   39  include ../Makefile.cmd
  38   40  
  39   41  LDLIBS += -lgen
  40   42  CFLAGS += $(CCVERBOSE)
  41   43  CERRWARN += -_gcc=-Wno-uninitialized
  42   44  CERRWARN += -_gcc=-Wno-unused-variable
       45 +
       46 +# not linted
       47 +SMATCH=off
       48 +
  43   49  $(XPG4):= CPPFLAGS += -DXPG4
  44   50  
  45   51  MAPFILE.INT =   ../expr/mapfile-intf
  46   52  LDFLAGS +=      $(MAPFILE.INT:%=-M%)
  47   53  
  48   54  .KEEP_STATE:
  49   55  
  50   56  all: $(PROG) $(XPG4)
  51   57  
  52   58  install: all $(ROOTPROG) $(ROOTXPG4PROG)
↓ open down ↓ 34 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX