Print this page
10685 SMB code needs smatch fixes


   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


  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


   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 # Copyright 2019, Joyent, Inc.
  28 #
  29 
  30 LIBRARY =       libfknsmb.a
  31 VERS =          .1
  32 
  33 OBJS_LOCAL = \
  34         fksmb_sign_pkcs.o \
  35         fake_ddi.o \
  36         fake_fio.o \
  37         fake_kmem.o \
  38         fake_ktli.o \
  39         fake_pkey.o \
  40         fake_policy.o \
  41         fake_sdt.o \
  42         fake_softc.o \
  43         fake_stream.o \
  44         fake_strsubr.o
  45 
  46 # See also: $SRC/uts/common/Makefile.files
  47 # NB: Intentionally ommitted, compared w/ the above:
  48 #  smb_dev.o smb_pass.o smb_sign_kcf.o


  75 CSOURCEDEBUGFLAGS       = -g
  76 CCSOURCEDEBUGFLAGS      = -g
  77 STRIP_STABS     = :
  78 
  79 # Note: need our sys includes _before_ ENVCPPFLAGS, proto etc.
  80 # Also, like Makefile.uts, reset CPPFLAGS
  81 CPPFLAGS.first += -I../../../libfakekernel/common
  82 CPPFLAGS.first += -I../common
  83 CPPFLAGS= $(CPPFLAGS.first)
  84 
  85 INCS += -I$(SRC)/uts/common/fs/smbclnt
  86 INCS += -I$(SRC)/uts/common
  87 
  88 CPPFLAGS += $(INCS) -D_REENTRANT -D_FAKE_KERNEL
  89 CPPFLAGS += -D_FILE_OFFSET_BITS=64
  90 # Always want DEBUG here
  91 CPPFLAGS += -DDEBUG
  92 
  93 CERRWARN += -_gcc=-Wno-switch
  94 
  95 # needs work
  96 SMOFF += all_func_returns,deref_check,signed
  97 
  98 LDLIBS +=       $(MACH_LDLIBS)
  99 LDLIBS +=       -lfakekernel -lpkcs11 -lnsl -lc
 100 
 101 NSMB_DIR=$(SRC)/uts/common/fs/smbclnt/netsmb
 102 SRCS=   $(OBJS_LOCAL:%.o=$(SRCDIR)/%.c) \
 103         $(OBJS_NSMB:%.o=$(NSMB_DIR)/%.c)
 104 
 105 all:
 106 
 107 pics/%.o:       $(NSMB_DIR)/%.c
 108         $(COMPILE.c) -o $@ $<
 109         $(POST_PROCESS_O)
 110 
 111 .KEEP_STATE:
 112 
 113 include ../../Makefile.targ
 114 include ../../../Makefile.targ