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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/yacc/Makefile.com
          +++ new/usr/src/cmd/sgs/yacc/Makefile.com
↓ 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  # Copyright 2015 Gary Mills
  23   23  # Copyright 2008 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=           yacc
  28   29  
  29   30  COMOBJS=        y1.o y2.o y3.o y4.o
  30   31  POBJECTS=       $(COMOBJS)
  31   32  POBJS=          $(POBJECTS:%=objs/%)
  32   33  
  33   34  OBJECTS=        libmai.o libzer.o
  34   35  
  35   36  LIBRARY=        liby.a
↓ open down ↓ 31 lines elided ↑ open up ↑
  67   68  BUILD.AR=       $(AR) $(ARFLAGS) $@ `$(LORDER) $(OBJS) | $(TSORT)`
  68   69  
  69   70  LINTPOUT=       lint.out
  70   71  
  71   72  CSTD= $(CSTD_GNU99)
  72   73  CFLAGS += $(CCVERBOSE)
  73   74  CFLAGS64 += $(CCVERBOSE)
  74   75  CERRWARN += -_gcc=-Wno-parentheses
  75   76  CERRWARN += -_gcc=-Wno-uninitialized
  76   77  
       78 +# not linted
       79 +SMATCH=off
       80 +
  77   81  $(ROOTPROG):= FILEMODE = 0555
  78   82  
  79   83  ROOTYACCPAR=    $(YACCPAR:%=$(ROOTSHLIBCCS)/%)
  80   84  
  81   85  ROOTLINTDIR=    $(ROOTLIBDIR)
  82   86  ROOTLINT=       $(LINTSRCS:../common/%=$(ROOTLINTDIR)/%)
  83   87  
  84   88  DYNLINKLIBDIR=  $(ROOTLIBDIR)
  85   89  DYNLINKLIB=     $(LIBLINKS:%=$(DYNLINKLIBDIR)/%)
  86   90  
  87   91  LDLIBS += -lc
  88   92  
  89   93  CLEANFILES +=   $(LINTPOUT)
  90   94  CLOBBERFILES += $(LIBS) $(LIBRARY)
  91   95  
  92   96  lint: lintcheck
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX