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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/powertop/Makefile.com
          +++ new/usr/src/cmd/powertop/Makefile.com
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  22   22  # Use is subject to license terms.
  23   23  #
       24 +# Copyright (c) 2018, Joyent, Inc.
  24   25  
  25   26  PROG = powertop
  26   27  
  27   28  COMMON_OBJS = $(PROG).o \
  28   29          display.o \
  29   30          battery.o \
  30   31          cpufreq.o \
  31   32          cpuidle.o \
  32   33          events.o \
  33   34          util.o \
↓ open down ↓ 2 lines elided ↑ open up ↑
  36   37  
  37   38  SRCS            = $(COMMON_OBJS:%.o=../common/%.c)
  38   39  
  39   40  include ../../Makefile.cmd
  40   41  .KEEP_STATE:
  41   42  
  42   43  CFLAGS          += $(CCVERBOSE)
  43   44  CFLAGS64        += $(CCVERBOSE)
  44   45  CERRWARN        += -_gcc=-Wno-parentheses
  45   46  CERRWARN        += -_gcc=-Wno-uninitialized
       47 +
       48 +SMOFF += free
       49 +
  46   50  LDLIBS          += -lcurses -ldtrace -lkstat
  47   51  
  48   52  FILEMODE        = 0555
  49   53  
  50   54  CLEANFILES      += $(COMMON_OBJS)
  51   55  
  52   56  all:    $(PROG)
  53   57  
  54   58  clean:
  55   59          $(RM) $(CLEANFILES)
  56   60  
  57   61  lint:   lint_SRCS
  58   62  
  59   63  include ../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX