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 2010 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  26 #

  27 
  28 LIBRARY =       libshare_smb.a
  29 VERS =          .1
  30 SMBMLSVC_DIR    = $(SRC)/lib/smbsrv/libmlsvc/common
  31 SMBBASE_DIR     = $(SRC)/lib/smbsrv/libsmb/common
  32 SMBCOMMON_DIR   = $(SRC)/common/smbsrv
  33 
  34 LIBOBJS =       libshare_smb.o smb_share_doorclnt.o
  35 SMBCOMMON_OBJ = smb_door_legacy.o
  36 SMBBASE_OBJ =   smb_cfg.o smb_scfutil.o
  37 OBJECTS =       $(LIBOBJS) $(SMBCOMMON_OBJ) $(SMBBASE_OBJ)
  38 
  39 include ../../../Makefile.lib
  40 
  41 ROOTLIBDIR =    $(ROOT)/usr/lib/fs/smb
  42 ROOTLIBDIR64 =  $(ROOT)/usr/lib/fs/smb/$(MACH64)
  43 
  44 LIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c)
  45 lintcheck := SRCS = $(LIBSRCS)
  46 
  47 LIBS =          $(DYNLIB)
  48 LDLIBS +=       -lshare -lscf -luuid -ldlpi -lnsl -lnvpair -lxml2 -lumem -lc
  49 
  50 CFLAGS +=       $(CCVERBOSE)
  51 CERRWARN +=     -_gcc=-Wno-char-subscripts
  52 CERRWARN +=     -_gcc=-Wno-switch




  53 CPPFLAGS +=     -D_REENTRANT -I$(ADJUNCT_PROTO)/usr/include/libxml2 \
  54                 -I$(SRCDIR)/../common
  55 $(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS
  56 
  57 .KEEP_STATE:
  58 
  59 all: $(LIBS)
  60 
  61 install: all
  62 
  63 lint: lintcheck
  64 
  65 pics/smb_door_client.o:       $(SMBBASE_DIR)/smb_door_client.c
  66         $(COMPILE.c) -o $@ $(SMBBASE_DIR)/smb_door_client.c
  67         $(POST_PROCESS_O)
  68 
  69 pics/smb_door_legacy.o:       $(SMBCOMMON_DIR)/smb_door_legacy.c
  70         $(COMPILE.c) -o $@ $(SMBCOMMON_DIR)/smb_door_legacy.c
  71         $(POST_PROCESS_O)
  72 


   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 2010 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  26 #
  27 # Copyright (c) 2018, Joyent, Inc.
  28 
  29 LIBRARY =       libshare_smb.a
  30 VERS =          .1
  31 SMBMLSVC_DIR    = $(SRC)/lib/smbsrv/libmlsvc/common
  32 SMBBASE_DIR     = $(SRC)/lib/smbsrv/libsmb/common
  33 SMBCOMMON_DIR   = $(SRC)/common/smbsrv
  34 
  35 LIBOBJS =       libshare_smb.o smb_share_doorclnt.o
  36 SMBCOMMON_OBJ = smb_door_legacy.o
  37 SMBBASE_OBJ =   smb_cfg.o smb_scfutil.o
  38 OBJECTS =       $(LIBOBJS) $(SMBCOMMON_OBJ) $(SMBBASE_OBJ)
  39 
  40 include ../../../Makefile.lib
  41 
  42 ROOTLIBDIR =    $(ROOT)/usr/lib/fs/smb
  43 ROOTLIBDIR64 =  $(ROOT)/usr/lib/fs/smb/$(MACH64)
  44 
  45 LIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c)
  46 lintcheck := SRCS = $(LIBSRCS)
  47 
  48 LIBS =          $(DYNLIB)
  49 LDLIBS +=       -lshare -lscf -luuid -ldlpi -lnsl -lnvpair -lxml2 -lumem -lc
  50 
  51 CFLAGS +=       $(CCVERBOSE)
  52 CERRWARN +=     -_gcc=-Wno-char-subscripts
  53 CERRWARN +=     -_gcc=-Wno-switch
  54 
  55 # not linted
  56 SMATCH=off
  57 
  58 CPPFLAGS +=     -D_REENTRANT -I$(ADJUNCT_PROTO)/usr/include/libxml2 \
  59                 -I$(SRCDIR)/../common
  60 $(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS
  61 
  62 .KEEP_STATE:
  63 
  64 all: $(LIBS)
  65 
  66 install: all
  67 
  68 lint: lintcheck
  69 
  70 pics/smb_door_client.o:       $(SMBBASE_DIR)/smb_door_client.c
  71         $(COMPILE.c) -o $@ $(SMBBASE_DIR)/smb_door_client.c
  72         $(POST_PROCESS_O)
  73 
  74 pics/smb_door_legacy.o:       $(SMBCOMMON_DIR)/smb_door_legacy.c
  75         $(COMPILE.c) -o $@ $(SMBCOMMON_DIR)/smb_door_legacy.c
  76         $(POST_PROCESS_O)
  77