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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-inet/usr.sbin/snoop/Makefile
          +++ new/usr/src/cmd/cmd-inet/usr.sbin/snoop/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  #
  23   23  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  #
  26   27  
  27   28  PROG=   snoop
  28   29  OBJS=   nfs4_xdr.o snoop.o snoop_aarp.o snoop_adsp.o snoop_aecho.o \
  29   30          snoop_apple.o snoop_arp.o snoop_atp.o snoop_bparam.o \
  30   31          snoop_bpdu.o \
  31   32          snoop_capture.o snoop_dhcp.o snoop_dhcpv6.o snoop_display.o \
  32   33          snoop_dns.o snoop_ether.o \
  33   34          snoop_filter.o snoop_http.o snoop_icmp.o snoop_igmp.o snoop_ip.o \
  34   35          snoop_ipaddr.o snoop_ipsec.o snoop_isis.o \
↓ open down ↓ 18 lines elided ↑ open up ↑
  53   54  CERRWARN += -_gcc=-Wno-switch
  54   55  CERRWARN += -_gcc=-Wno-implicit-function-declaration
  55   56  CERRWARN += -_gcc=-Wno-uninitialized
  56   57  CERRWARN += -_gcc=-Wno-clobbered
  57   58  CERRWARN += -_gcc=-Wno-unused-value
  58   59  CERRWARN += -_gcc=-Wno-parentheses
  59   60  CERRWARN += -_gcc=-Wno-unused-variable
  60   61  CERRWARN += -_gcc=-Wno-unused-label
  61   62  CERRWARN += -_gcc=-Wno-unused-function
  62   63  
       64 +# we really should have smatch running on this code but...
       65 +SMATCH=off
       66 +
  63   67  .KEEP_STATE:
  64   68  
  65   69  .PARALLEL: $(OBJS)
  66   70  
  67   71  all:    $(PROG)
  68   72  
  69   73  $(PROG): $(OBJS) $(MAPFILE.NGB)
  70   74          $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  71   75          $(POST_PROCESS)
  72   76  
  73   77  install:        all $(ROOTUSRSBINPROG)
  74   78  
  75   79  clean:
  76   80          $(RM) $(OBJS)
  77   81  
  78   82  lint:   lint_SRCS
  79   83  
  80   84  include ../../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX