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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libkvm/Makefile.com
          +++ new/usr/src/lib/libkvm/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 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
  26   27  LIBRARY=        libkvm.a
  27   28  VERS=           .1
  28   29  
  29   30  OBJECTS=        kvm.o kvm_getcmd.o
  30   31  
  31   32  # include library definitions
  32   33  include ../../Makefile.lib
  33   34  
  34   35  SRCDIR =        ../common
↓ open down ↓ 6 lines elided ↑ open up ↑
  41   42  
  42   43  CFLAGS  +=      $(CCVERBOSE)
  43   44  DYNFLAGS32 +=   -Wl,-f,/usr/platform/\$$PLATFORM/lib/$(DYNLIBPSR)
  44   45  DYNFLAGS64 +=   -Wl,-f,/usr/platform/\$$PLATFORM/lib/$(MACH64)/$(DYNLIBPSR)
  45   46  LDLIBS +=       -lelf -lc
  46   47  
  47   48  CPPFLAGS = -D_KMEMUSER -D_LARGEFILE64_SOURCE=1 -I.. $(CPPFLAGS.master)
  48   49  
  49   50  CERRWARN +=     -_gcc=-Wno-uninitialized
  50   51  
       52 +SMOFF += signed
       53 +
  51   54  CLOBBERFILES += test test.o
  52   55  
  53   56  .KEEP_STATE:
  54   57  
  55   58  lint: lintcheck
  56   59  
  57   60  test: ../common/test.c
  58   61          $(COMPILE.c) ../common/test.c
  59   62          $(LINK.c) -o $@ test.o -lkvm -lelf
  60   63  
  61   64  # include library targets
  62   65  include ../../Makefile.targ
  63   66  
  64   67  objs/%.o pics/%.o: ../common/%.c ../kvm.h
  65   68          $(COMPILE.c) -o $@ $<
  66   69          $(POST_PROCESS_O)
  67   70  
  68   71  # install rule for lint library target
  69   72  $(ROOTLINTDIR)/%:       ../common/%
  70   73          $(INS.file)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX