10685 SMB code needs smatch fixes

   1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
  26 #


  27 
  28 LIBRARY =       libfknsmb.a
  29 VERS =          .1
  30 
  31 OBJS_LOCAL = \
  32         fksmb_sign_pkcs.o \
  33         fake_ddi.o \
  34         fake_fio.o \
  35         fake_kmem.o \
  36         fake_ktli.o \
  37         fake_pkey.o \
  38         fake_policy.o \
  39         fake_sdt.o \
  40         fake_softc.o \
  41         fake_stream.o \
  42         fake_strsubr.o
  43 
  44 # See also: $SRC/uts/common/Makefile.files
  45 # NB: Intentionally ommitted, compared w/ the above:
  46 #  smb_dev.o smb_pass.o smb_sign_kcf.o
  47 #
  48 OBJS_NSMB = \
  49         smb_dev.o \
  50         smb_conn.o \
  51         smb_iod.o \
  52         smb_rq.o \
  53         smb_sign.o \
  54         smb_smb.o \
  55         smb_subrs.o \
  56         smb_time.o \
  57         smb_tran.o \
  58         smb_trantcp.o \
  59         smb_usr.o \
  60         smb2_rq.o \
  61         smb2_sign.o \
  62         smb2_smb.o \
  63         subr_mchain.o
  64 
  65 OBJECTS = \
  66         $(OBJS_LOCAL) \
  67         $(OBJS_NSMB)
  68 
  69 include ../../../Makefile.lib
  70 include ../../Makefile.lib
  71 
  72 # Force SOURCEDEBUG
  73 CSOURCEDEBUGFLAGS       = -g
  74 CCSOURCEDEBUGFLAGS      = -g
  75 STRIP_STABS     = :
  76 
  77 # Note: need our sys includes _before_ ENVCPPFLAGS, proto etc.
  78 # Also, like Makefile.uts, reset CPPFLAGS
  79 CPPFLAGS.first += -I../../../libfakekernel/common
  80 CPPFLAGS.first += -I../common
  81 CPPFLAGS= $(CPPFLAGS.first)
  82 
  83 INCS += -I$(SRC)/uts/common/fs/smbclnt
  84 INCS += -I$(SRC)/uts/common
  85 
  86 CPPFLAGS += $(INCS) -D_REENTRANT -D_FAKE_KERNEL
  87 CPPFLAGS += -D_FILE_OFFSET_BITS=64
  88 # Always want DEBUG here
  89 CPPFLAGS += -DDEBUG
  90 
  91 CERRWARN += -_gcc=-Wno-switch
  92 



  93 LDLIBS +=       $(MACH_LDLIBS)
  94 LDLIBS +=       -lfakekernel -lpkcs11 -lnsl -lc
  95 
  96 NSMB_DIR=$(SRC)/uts/common/fs/smbclnt/netsmb
  97 SRCS=   $(OBJS_LOCAL:%.o=$(SRCDIR)/%.c) \
  98         $(OBJS_NSMB:%.o=$(NSMB_DIR)/%.c)
  99 
 100 all:
 101 
 102 pics/%.o:       $(NSMB_DIR)/%.c
 103         $(COMPILE.c) -o $@ $<
 104         $(POST_PROCESS_O)
 105 
 106 .KEEP_STATE:
 107 
 108 include ../../Makefile.targ
 109 include ../../../Makefile.targ
--- EOF ---