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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/shcomp/Makefile
          +++ new/usr/src/cmd/shcomp/Makefile
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  #
  23   23  # Copyright 2009 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  SHELL=/usr/bin/ksh93
  28   29  
  29   30  include ../Makefile.cmd
  30   31  $(SPARC_BLD)include ../Makefile.cmd.64
  31   32  
  32   33  .KEEP_STATE:
  33   34  
  34   35  # Set common AST build flags (e.g., needed to support the math stuff).
  35   36  include ../../Makefile.ast
↓ open down ↓ 20 lines elided ↑ open up ↑
  56   57          $(DTEXTDOM) $(DTS_ERRNO) \
  57   58          $(LIBSHELLCPPFLAGS)
  58   59  
  59   60  CFLAGS += \
  60   61          $(ASTCFLAGS)
  61   62  CFLAGS64 += \
  62   63          $(ASTCFLAGS64)
  63   64  
  64   65  CERRWARN +=     -_gcc=-Wno-parentheses
  65   66  
       67 +SMOFF +=        all_func_returns
       68 +
  66   69  ROOTCMDDIR=$(ROOT)/usr/bin
  67   70  
  68   71  PROG= shcomp
  69   72  
  70   73  %.o:    $(LIBSHELLSRC)/%.c
  71   74          $(COMPILE.c) -c -o $@ $<
  72   75          $(POST_PROCESS_O)
  73   76  
  74   77  all: $(PROG)
  75   78  
↓ open down ↓ 21 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX