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


   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 (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
  24 #

  25 
  26 LIBRARY =       libmlsvc.a
  27 VERS =          .1
  28 
  29 OBJS_COMMON =           \
  30         dfs.o           \
  31         dssetup_clnt.o  \
  32         dssetup_svc.o   \
  33         eventlog_svc.o  \
  34         eventlog_log.o  \
  35         lsalib.o        \
  36         lsar_clnt.o     \
  37         lsar_svc.o      \
  38         mlsvc_client.o  \
  39         mlsvc_domain.o  \
  40         mlsvc_init.o    \
  41         mlsvc_netr.o    \
  42         mlsvc_util.o    \
  43         msgsvc_svc.o    \
  44         netdfs.o        \


  76         winreg
  77 
  78 OBJECTS=        $(OBJS_COMMON) $(NDLLIST:%=%_ndr.o)
  79 
  80 include ../../../Makefile.lib
  81 include ../../Makefile.lib
  82 
  83 INCS += -I$(SRC)/common/smbsrv
  84 
  85 LDLIBS +=       $(MACH_LDLIBS)
  86 LDLIBS += -lmlrpc -lsmb -lsmbns -lshare -lsmbfs -lnsl -lpkcs11 \
  87         -lscf -lcmdutils -lsec -lavl -lnvpair -luutil -luuid -lgen -lzfs -lc
  88 
  89 CPPFLAGS += $(INCS) -D_REENTRANT
  90 CPPFLAGS += -Dsyslog=smb_syslog
  91 $(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS
  92 
  93 CERRWARN += -_gcc=-Wno-unused-function
  94 CERRWARN += -_gcc=-Wno-uninitialized
  95 




  96 SRCS=   $(OBJS_COMMON:%.o=$(SRCDIR)/%.c)
  97 
  98 include ../../Makefile.targ
  99 include ../../../Makefile.targ


   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 (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 LIBRARY =       libmlsvc.a
  28 VERS =          .1
  29 
  30 OBJS_COMMON =           \
  31         dfs.o           \
  32         dssetup_clnt.o  \
  33         dssetup_svc.o   \
  34         eventlog_svc.o  \
  35         eventlog_log.o  \
  36         lsalib.o        \
  37         lsar_clnt.o     \
  38         lsar_svc.o      \
  39         mlsvc_client.o  \
  40         mlsvc_domain.o  \
  41         mlsvc_init.o    \
  42         mlsvc_netr.o    \
  43         mlsvc_util.o    \
  44         msgsvc_svc.o    \
  45         netdfs.o        \


  77         winreg
  78 
  79 OBJECTS=        $(OBJS_COMMON) $(NDLLIST:%=%_ndr.o)
  80 
  81 include ../../../Makefile.lib
  82 include ../../Makefile.lib
  83 
  84 INCS += -I$(SRC)/common/smbsrv
  85 
  86 LDLIBS +=       $(MACH_LDLIBS)
  87 LDLIBS += -lmlrpc -lsmb -lsmbns -lshare -lsmbfs -lnsl -lpkcs11 \
  88         -lscf -lcmdutils -lsec -lavl -lnvpair -luutil -luuid -lgen -lzfs -lc
  89 
  90 CPPFLAGS += $(INCS) -D_REENTRANT
  91 CPPFLAGS += -Dsyslog=smb_syslog
  92 $(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS
  93 
  94 CERRWARN += -_gcc=-Wno-unused-function
  95 CERRWARN += -_gcc=-Wno-uninitialized
  96 
  97 # not linted
  98 SMATCH=off
  99 
 100 
 101 SRCS=   $(OBJS_COMMON:%.o=$(SRCDIR)/%.c)
 102 
 103 include ../../Makefile.targ
 104 include ../../../Makefile.targ