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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libresolv2/Makefile.com
          +++ new/usr/src/lib/libresolv2/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 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -#
       25 +# Copyright (c) 2018, Joyent, Inc.
  26   26  
  27   27  LIBRARY= libresolv.a
  28   28  VERS= .2
  29   29  
  30   30  BSDOBJS=        putenv.o        strcasecmp.o    strsep.o \
  31   31                  ftruncate.o     readv.o         strdup.o        strtoul.o \
  32   32                  gettimeofday.o  setenv.o        strerror.o      utimes.o \
  33   33                  mktemp.o        setitimer.o     strpbrk.o       writev.o
  34   34  
  35      -DSTOBJS=        dst_api.o       support.o       hmac_link.o 
       35 +DSTOBJS=        dst_api.o       support.o       hmac_link.o
  36   36  
  37      -# inet_addr, inet_pton, inet_ntop, and inet_ntoa removed due to overlap with 
       37 +# inet_addr, inet_pton, inet_ntop, and inet_ntoa removed due to overlap with
  38   38  # libnsl
  39   39  INETOBJS=       inet_net_pton.o inet_neta.o     inet_lnaof.o \
  40   40                  inet_netof.o    nsap_addr.o     inet_makeaddr.o \
  41   41                  inet_network.o  inet_net_ntop.o inet_cidr_ntop.o \
  42   42                  inet_cidr_pton.o                inet_data.o
  43   43  
  44      -# build only the IRS objects that the ISC libbind's make would 
       44 +# build only the IRS objects that the ISC libbind's make would
  45   45  IRSTHROBJS=     gethostent_r.o  getnetent_r.o   getnetgrent_r.o \
  46   46                  getprotoent_r.o getservent_r.o
  47   47  IRSOBJS=        ${IRSTHROBJS} \
  48   48                  dns.o           dns_ho.o        dns_nw.o        dns_pr.o \
  49   49                  dns_sv.o        gai_strerror.o  gen.o           gen_ho.o \
  50   50                  gen_ng.o        gen_nw.o        gen_pr.o        gen_sv.o \
  51   51                  getaddrinfo.o   gethostent.o    getnameinfo.o   getnetent.o \
  52   52                  getnetgrent.o   getprotoent.o   getservent.o    hesiod.o \
  53   53                  irp.o           irp_ho.o        irp_ng.o        irp_nw.o \
  54   54                  irp_pr.o        irp_sv.o        irpmarshall.o   irs_data.o \
↓ open down ↓ 46 lines elided ↑ open up ↑
 101  101  
 102  102  # Local Libresolv definitions
 103  103  
 104  104  SOLCOMPAT =     -Dsocket=_socket
 105  105  CRYPTFLAGS=     -DHMAC_MD5 -DUSE_MD5
 106  106  
 107  107  LOCFLAGS +=     $(CRYPTFLAGS)
 108  108  LOCFLAGS +=     -D_SYS_STREAM_H -D_REENTRANT -DSVR4 -DSUNW_OPTIONS \
 109  109                  $(SOLCOMPAT) -I../include -I../../common/inc
 110  110  
 111      -CPPFLAGS +=     $(LOCFLAGS) 
      111 +CPPFLAGS +=     $(LOCFLAGS)
 112  112  
 113  113  CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
 114  114  
      115 +# not linted
      116 +SMATCH=off
      117 +
 115  118  DYNFLAGS +=     $(ZNODELETE)
 116  119  
 117  120  LDLIBS +=       -lsocket -lnsl -lc -lmd
 118  121  
 119  122  .KEEP_STATE:
 120  123  
 121  124  all:    $(LIBS)
 122  125  
 123  126  lint:   lintcheck
 124  127  
↓ open down ↓ 38 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX