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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/hal/libhal-storage/Makefile.com
          +++ new/usr/src/lib/hal/libhal-storage/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 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -#
  26      -# usr/src/lib/hal/libhal-storage/Makefile.com
  27      -#
       25 +# Copyright (c) 2018, Joyent, Inc.
  28   26  
  29   27  LIBRARY =       libhal-storage.a
  30   28  VERS =          .1.0.0
  31   29  VERS_MAJ =      .1
  32   30  OBJECTS =       libhal-storage.o
  33   31  LIBPCSRC =      hal-storage.pc
  34   32  
  35   33  include ../../Makefile.com
  36   34  
  37   35  LIBS =          $(DYNLIB) $(LINTLIB)
↓ open down ↓ 2 lines elided ↑ open up ↑
  40   38  
  41   39  SRCDIR =        ../common
  42   40  
  43   41  CFLAGS +=       $(CCVERBOSE)
  44   42  CFLAGS +=       -_gcc=-Wno-deprecated-declarations
  45   43  CFLAGS64 +=     -_gcc=-Wno-deprecated-declarations
  46   44  CPPFLAGS +=     -DGETTEXT_PACKAGE=\"$(HAL_GETTEXT_PACKAGE)\" -DENABLE_NLS
  47   45  CPPFLAGS +=     -DPACKAGE_LOCALE_DIR=\"/usr/lib/locale\"
  48   46  CPPFLAGS +=     -I$(ROOT)/usr/include/hal
  49   47  
       48 +SMOFF += all_func_returns
       49 +
  50   50  ROOTMAJLINK =   $(ROOTLIBDIR)/$(LIBRARY:.a=.so)$(VERS_MAJ)
  51   51  ROOTMAJLINK64 = $(ROOTLIBDIR64)/$(LIBRARY:.a=.so)$(VERS_MAJ)
  52   52  
  53   53  .KEEP_STATE:
  54   54  
  55   55  all:            $(LIBS)
  56   56  
  57   57  lint:           lintcheck
  58   58  
  59   59  $(ROOTMAJLINK):
  60   60          -$(RM) $@; $(SYMLINK) $(DYNLIB) $@
  61   61  
  62   62  $(ROOTMAJLINK64):
  63   63          -$(RM) $@; $(SYMLINK) $(DYNLIB) $@
  64   64  
  65   65  include $(SRC)/lib/Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX