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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ed/Makefile
          +++ new/usr/src/cmd/ed/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 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
  26   27  PROG= ed
  27   28  XPG4PROG= ed
  28   29  XPG6PROG= ed
  29   30  
  30   31  EDOBJ= ed.o compile.o
  31   32  XPG4EDOBJ= edobjs.xpg4/ed.o edobjs.xpg4/compile.o  values-xpg4.o
  32   33  XPG6EDOBJ= edobjs.xpg6/ed.o edobjs.xpg6/compile.o  values-xpg6.o
  33   34  OBJS= $(EDOBJ) $(XPG4EDOBJ) $(XPG6EDOBJ)
  34   35  SRCS= ./ed.c ../expr/compile.c 
  35   36  
  36   37  POFILES= $(EDOBJ:%.o=%.po)
  37   38  
  38   39  include ../Makefile.cmd
  39   40  
  40   41  CFLAGS += $(CCVERBOSE)
  41   42  CERRWARN += -_gcc=-Wno-parentheses
  42   43  CERRWARN += -_gcc=-Wno-unused-variable
  43   44  CERRWARN += -_gcc=-Wno-unused-function
  44   45  CERRWARN += -_gcc=-Wno-uninitialized
       46 +
       47 +# not linted
       48 +SMATCH=off
       49 +
  45   50  $(XPG4) := CFLAGS += -DXPG4  
  46   51  $(XPG6) := CFLAGS += -DXPG6 -I$(SRC)/lib/libc/inc 
  47   52  lint := LDLIBS += -lgen -lcrypt
  48   53  LDLIBS += -lmapmalloc -lgen -lcrypt_i
  49   54  XGETFLAGS += -a -x ed.xcl
  50   55  
  51   56  MAPFILE.INT =   ../expr/mapfile-intf
  52   57  LDFLAGS +=      $(MAPFILE.INT:%=-M%)
  53   58  
  54   59  POFILE= ed_cmd.po
↓ open down ↓ 64 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX