Print this page
10079 smatch Makefile changes for usr/src/lib

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdtrace/Makefile.com
          +++ new/usr/src/lib/libdtrace/Makefile.com
↓ 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 (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  # Copyright (c) 2011, 2016 by Delphix. All rights reserved.
  24   24  #
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
  26   27  LIBRARY = libdtrace.a
  27   28  VERS = .1
  28   29  
  29   30  LIBSRCS = \
  30   31          dt_aggregate.c \
  31   32          dt_as.c \
  32   33          dt_buf.c \
  33   34          dt_cc.c \
  34   35          dt_cg.c \
↓ open down ↓ 61 lines elided ↑ open up ↑
  96   97          signal.d \
  97   98          scsi.d \
  98   99          srp.d \
  99  100          sysevent.d \
 100  101          tcp.d \
 101  102          udp.d \
 102  103          unistd.d
 103  104  
 104  105  include ../../Makefile.lib
 105  106  
 106      -SRCS = $(LIBSRCS:%.c=../common/%.c) $(LIBISASRCS:%.c=../$(MACH)/%.c) 
      107 +SRCS = $(LIBSRCS:%.c=../common/%.c) $(LIBISASRCS:%.c=../$(MACH)/%.c)
 107  108  LIBS = $(DYNLIB) $(LINTLIB)
 108  109  
 109  110  SRCDIR = ../common
 110  111  
 111  112  CLEANFILES += dt_lex.c dt_grammar.c dt_grammar.h y.output
 112  113  CLEANFILES += ../common/procfs.sed ../common/procfs.d
 113  114  CLEANFILES += ../common/io.sed ../common/io.d
 114  115  CLEANFILES += ../common/ip.sed ../common/ip.d
 115  116  CLEANFILES += ../common/net.sed ../common/net.d
 116  117  CLEANFILES += ../common/errno.d ../common/signal.d
↓ open down ↓ 8 lines elided ↑ open up ↑
 125  126  CPPFLAGS += -I../common -I.
 126  127  CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
 127  128  CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
 128  129  
 129  130  CERRWARN += -_gcc=-Wno-unused-label
 130  131  CERRWARN += -_gcc=-Wno-unused-variable
 131  132  CERRWARN += -_gcc=-Wno-parentheses
 132  133  CERRWARN += -_gcc=-Wno-uninitialized
 133  134  CERRWARN += -_gcc=-Wno-switch
 134  135  
      136 +# not linted
      137 +SMATCH=off
      138 +
 135  139  YYCFLAGS =
 136  140  LDLIBS += -lgen -lproc -lrtld_db -lnsl -lsocket -lctf -lelf -lc
 137  141  DRTILDLIBS = $(LDLIBS.lib) -lc
 138  142  LIBDAUDITLIBS = $(LDLIBS.lib) -lmapmalloc -lc -lproc
 139  143  
 140  144  yydebug := YYCFLAGS += -DYYDEBUG
 141  145  
 142  146  $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
 143  147  
 144  148  LFLAGS = -t -v
↓ open down ↓ 127 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX