Print this page
10080 smatch Makefile changes for usr/src/cmd
   1 #
   2 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.

   3 #
   4 
   5 #
   6 # BSD 3 Clause License
   7 #
   8 # Copyright (c) 2007, The Storage Networking Industry Association.
   9 #
  10 # Redistribution and use in source and binary forms, with or without
  11 # modification, are permitted provided that the following conditions
  12 # are met:
  13 #       - Redistributions of source code must retain the above copyright
  14 #         notice, this list of conditions and the following disclaimer.
  15 #
  16 #       - Redistributions in binary form must reproduce the above copyright
  17 #         notice, this list of conditions and the following disclaimer in
  18 #         the documentation and/or other materials provided with the
  19 #         distribution.
  20 #
  21 #       - Neither the name of The Storage Networking Industry Association (SNIA)
  22 #         nor the names of its contributors may be used to endorse or promote


  34 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  35 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  36 # POSSIBILITY OF SUCH DAMAGE.
  37 #
  38 PROG = ndmpd
  39 
  40 include $(SRC)/cmd/Makefile.cmd
  41 
  42 NDMP_DIR = ndmp
  43 TLM_DIR = tlm
  44 
  45 include $(NDMP_DIR)/Makefile.rpcgen
  46 
  47 CFLAGS += $(CCVERBOSE)
  48 
  49 CPPFLAGS += $(LFLAGS64)
  50 
  51 CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DDEBUG
  52 CPPFLAGS += -I. -Iinclude
  53 



  54 CSTD = $(CSTD_GNU99)
  55 
  56 # lint does not like unused _umem_*_init
  57 LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 
  58 
  59 # function argument declared inconsistently
  60 LINTFLAGS += -xerroff=E_INCONS_ARG_DECL2
  61 # value type used inconsistently
  62 LINTFLAGS += -xerroff=E_INCONS_VAL_TYPE_USED2
  63 # value type declared inconsistently
  64 LINTFLAGS += -xerroff=E_INCONS_VAL_TYPE_DECL2
  65 # argument used inconsistently
  66 LINTFLAGS += -xerroff=E_INCONS_ARG_USED2 
  67 
  68 CERRWARN += -_gcc=-Wno-unused-variable
  69 CERRWARN += -_gcc=-Wno-switch
  70 CERRWARN += -_gcc=-Wno-uninitialized
  71 CERRWARN += -_gcc=-Wno-address
  72 
  73 LDLIBS   += -lsocket -lnsl -lzfs -lsec -lndmp -lmd5 -lnvpair -lumem -lbsm -lgen -lcmdutils -linetutil


   1 #
   2 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
   3 # Copyright (c) 2018, Joyent, Inc.
   4 #
   5 
   6 #
   7 # BSD 3 Clause License
   8 #
   9 # Copyright (c) 2007, The Storage Networking Industry Association.
  10 #
  11 # Redistribution and use in source and binary forms, with or without
  12 # modification, are permitted provided that the following conditions
  13 # are met:
  14 #       - Redistributions of source code must retain the above copyright
  15 #         notice, this list of conditions and the following disclaimer.
  16 #
  17 #       - Redistributions in binary form must reproduce the above copyright
  18 #         notice, this list of conditions and the following disclaimer in
  19 #         the documentation and/or other materials provided with the
  20 #         distribution.
  21 #
  22 #       - Neither the name of The Storage Networking Industry Association (SNIA)
  23 #         nor the names of its contributors may be used to endorse or promote


  35 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  36 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37 # POSSIBILITY OF SUCH DAMAGE.
  38 #
  39 PROG = ndmpd
  40 
  41 include $(SRC)/cmd/Makefile.cmd
  42 
  43 NDMP_DIR = ndmp
  44 TLM_DIR = tlm
  45 
  46 include $(NDMP_DIR)/Makefile.rpcgen
  47 
  48 CFLAGS += $(CCVERBOSE)
  49 
  50 CPPFLAGS += $(LFLAGS64)
  51 
  52 CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DDEBUG
  53 CPPFLAGS += -I. -Iinclude
  54 
  55 # not linted
  56 SMATCH=off
  57 
  58 CSTD = $(CSTD_GNU99)
  59 
  60 # lint does not like unused _umem_*_init
  61 LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 
  62 
  63 # function argument declared inconsistently
  64 LINTFLAGS += -xerroff=E_INCONS_ARG_DECL2
  65 # value type used inconsistently
  66 LINTFLAGS += -xerroff=E_INCONS_VAL_TYPE_USED2
  67 # value type declared inconsistently
  68 LINTFLAGS += -xerroff=E_INCONS_VAL_TYPE_DECL2
  69 # argument used inconsistently
  70 LINTFLAGS += -xerroff=E_INCONS_ARG_USED2 
  71 
  72 CERRWARN += -_gcc=-Wno-unused-variable
  73 CERRWARN += -_gcc=-Wno-switch
  74 CERRWARN += -_gcc=-Wno-uninitialized
  75 CERRWARN += -_gcc=-Wno-address
  76 
  77 LDLIBS   += -lsocket -lnsl -lzfs -lsec -lndmp -lmd5 -lnvpair -lumem -lbsm -lgen -lcmdutils -linetutil