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


   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 2014 Nexenta Systems, Inc.  All rights reserved.
  26 #

  27 
  28 LIBRARY =       libfksmbsrv.a
  29 VERS =          .1
  30 
  31 OBJS_LOCAL = \
  32                 fksmb_cred.o \
  33                 fksmb_dt.o \
  34                 fksmb_fem.o \
  35                 fksmb_idmap.o \
  36                 fksmb_init.o \
  37                 fksmb_kdoor.o \
  38                 fksmb_sign_pkcs.o \
  39                 fake_lookup.o \
  40                 fake_nblk.o \
  41                 fake_vfs.o \
  42                 fake_vnode.o \
  43                 fake_vop.o \
  44                 fake_xattr.o \
  45                 reparse.o \
  46                 vncache.o


 198 INCS += -I$(SRC)/uts/common
 199 INCS += -I$(SRC)/common/smbsrv
 200 INCS += -I$(SRC)/common
 201 
 202 LINTCHECKFLAGS += -erroff=E_INCONS_ARG_DECL2
 203 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
 204 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_USED2
 205 
 206 LDLIBS +=       $(MACH_LDLIBS)
 207 LDLIBS +=       -lfakekernel -lidmap -lcmdutils
 208 LDLIBS +=       -lavl -lnvpair -lnsl -lpkcs11 -lreparse -lc
 209 
 210 CPPFLAGS += $(INCS) -D_REENTRANT -D_FAKE_KERNEL
 211 CPPFLAGS += -D_FILE_OFFSET_BITS=64
 212 # Always want DEBUG here
 213 CPPFLAGS += -DDEBUG
 214 
 215 CERRWARN += -_gcc=-Wno-parentheses
 216 CERRWARN += -_gcc=-Wno-switch
 217 



 218 SRCS=   $(OBJS_LOCAL:%.o=$(SRCDIR)/%.c) \
 219         $(OBJS_FS_SMBSRV:%.o=$(SRC)/uts/common/fs/smbsrv/%.c) \
 220         $(OBJS_CMN_SMBSRV:%.o=$(SRC)/common/smbsrv/%.c)
 221 
 222 all:
 223 
 224 pics/%.o:       $(SRC)/uts/common/fs/smbsrv/%.c
 225         $(COMPILE.c) -o $@ $<
 226         $(POST_PROCESS_O)
 227 
 228 pics/acl_common.o:         $(SRC)/common/acl/acl_common.c
 229         $(COMPILE.c) -o $@ $(SRC)/common/acl/acl_common.c
 230         $(POST_PROCESS_O)
 231 
 232 pics/smb_status2winerr.o:  $(SRC)/common/smbclnt/smb_status2winerr.c
 233         $(COMPILE.c) -o $@ $(SRC)/common/smbclnt/smb_status2winerr.c
 234         $(POST_PROCESS_O)
 235 
 236 pics/pathname.o:           $(SRC)/uts/common/fs/pathname.c
 237         $(COMPILE.c) -o $@ $(SRC)/uts/common/fs/pathname.c


   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 2014 Nexenta Systems, Inc.  All rights reserved.
  26 #
  27 # Copyright (c) 2018, Joyent, Inc.
  28 
  29 LIBRARY =       libfksmbsrv.a
  30 VERS =          .1
  31 
  32 OBJS_LOCAL = \
  33                 fksmb_cred.o \
  34                 fksmb_dt.o \
  35                 fksmb_fem.o \
  36                 fksmb_idmap.o \
  37                 fksmb_init.o \
  38                 fksmb_kdoor.o \
  39                 fksmb_sign_pkcs.o \
  40                 fake_lookup.o \
  41                 fake_nblk.o \
  42                 fake_vfs.o \
  43                 fake_vnode.o \
  44                 fake_vop.o \
  45                 fake_xattr.o \
  46                 reparse.o \
  47                 vncache.o


 199 INCS += -I$(SRC)/uts/common
 200 INCS += -I$(SRC)/common/smbsrv
 201 INCS += -I$(SRC)/common
 202 
 203 LINTCHECKFLAGS += -erroff=E_INCONS_ARG_DECL2
 204 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
 205 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_USED2
 206 
 207 LDLIBS +=       $(MACH_LDLIBS)
 208 LDLIBS +=       -lfakekernel -lidmap -lcmdutils
 209 LDLIBS +=       -lavl -lnvpair -lnsl -lpkcs11 -lreparse -lc
 210 
 211 CPPFLAGS += $(INCS) -D_REENTRANT -D_FAKE_KERNEL
 212 CPPFLAGS += -D_FILE_OFFSET_BITS=64
 213 # Always want DEBUG here
 214 CPPFLAGS += -DDEBUG
 215 
 216 CERRWARN += -_gcc=-Wno-parentheses
 217 CERRWARN += -_gcc=-Wno-switch
 218 
 219 # not linted
 220 SMATCH=off
 221 
 222 SRCS=   $(OBJS_LOCAL:%.o=$(SRCDIR)/%.c) \
 223         $(OBJS_FS_SMBSRV:%.o=$(SRC)/uts/common/fs/smbsrv/%.c) \
 224         $(OBJS_CMN_SMBSRV:%.o=$(SRC)/common/smbsrv/%.c)
 225 
 226 all:
 227 
 228 pics/%.o:       $(SRC)/uts/common/fs/smbsrv/%.c
 229         $(COMPILE.c) -o $@ $<
 230         $(POST_PROCESS_O)
 231 
 232 pics/acl_common.o:         $(SRC)/common/acl/acl_common.c
 233         $(COMPILE.c) -o $@ $(SRC)/common/acl/acl_common.c
 234         $(POST_PROCESS_O)
 235 
 236 pics/smb_status2winerr.o:  $(SRC)/common/smbclnt/smb_status2winerr.c
 237         $(COMPILE.c) -o $@ $(SRC)/common/smbclnt/smb_status2winerr.c
 238         $(POST_PROCESS_O)
 239 
 240 pics/pathname.o:           $(SRC)/uts/common/fs/pathname.c
 241         $(COMPILE.c) -o $@ $(SRC)/uts/common/fs/pathname.c