Print this page
10080 smatch Makefile changes for usr/src/cmd


   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 (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.

  23 #
  24 # cmd/ldap/Makefile.com
  25 # Native LDAP II commands (makestyle clean).
  26 #
  27 include $(SRC)/cmd/Makefile.cmd
  28 
  29 LDAPMOD=        ldapmodify
  30 LDAPADD=        ldapadd
  31 LDAPPROG=       ldapmodrdn ldapsearch ldapdelete $(LDAPMOD)
  32 LDAPSRCS=       $(LDAPPROG:%=../common/%.c)
  33 LDAPOBJS=       $(LDAPPROG:%=%.o)
  34 
  35 #ldap common
  36 LDAPCOMMSRC=    common.c ldaptool-sasl.c fileurl.c convutf8.c
  37 LDAPCOMMOBJS=   $(LDAPCOMMSRC:%.c=%.o)
  38 
  39 # LDAP Naming service commands
  40 # idsconfig command
  41 IDSCONFIGPROG=  idsconfig
  42 IDSCONFIGSRC=   idsconfig.sh


  72 PROG=           $(LDAPPROG) $(LDAPLISTPROG)
  73 ROOTADD=        $(ROOTBIN)/$(LDAPADD)
  74 ROOTMOD=        $(ROOTBIN)/$(LDAPMOD)
  75 ALLPROG=        all $(ROOTADD)
  76 
  77 CLOBBERFILES += $(OBJS) $(PROG) $(LDAPCLIENTPROG) $(LDAPADDENTPROG) \
  78                 $(IDSCONFIGPROG) $(LINTOUT)
  79 
  80 # creating /var/ldap directory
  81 ROOTVAR_LDAP=   $(ROOT)/var/ldap
  82 
  83 LINTFLAGS += -erroff=E_INCONS_ARG_DECL2
  84 LINTFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
  85 
  86 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  87 CERRWARN +=     -_gcc=-Wno-parentheses
  88 CERRWARN +=     -_gcc=-Wno-unused-function
  89 CERRWARN +=     -_gcc=-Wno-unused-variable
  90 CERRWARN +=     -_gcc=-Wno-uninitialized
  91 



  92 all:=           TARGET= all
  93 install:=       TARGET= install
  94 clean:=         TARGET= clean
  95 clobber:=       TARGET= clobber
  96 lint:=          TARGET= lint
  97 
  98 # C Pre-Processor flags used by C, CC & lint
  99 CPPFLAGS +=     -DSUN -DSVR4 -DSOLARIS_LDAP_CMD \
 100                 -I $(SRC)/lib/libldap5/include/ldap \
 101                 -I $(SRC)/lib/libsldap/common \
 102                 -I $(SRC)/lib/libnsl/include/rpcsvc \
 103                 -DNO_LIBLCACHE -DLDAP_REFERRALS -DNET_SSL -DLDAPSSLIO \
 104                 -DHAVE_SASL_OPTIONS -DSOLARIS_LDAP_CMD
 105 LDLIBS +=       $(COMPLIB)
 106 
 107 ldapmodrdn :=   LDLIBS += -lldap
 108 ldapsearch :=   LDLIBS += -lldap
 109 ldapdelete :=   LDLIBS += -lldap
 110 ldapmodify :=   LDLIBS += -lldap
 111 ldaplist :=     LDLIBS += -lsldap




   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 (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright (c) 2018, Joyent, Inc.
  24 #
  25 # cmd/ldap/Makefile.com
  26 # Native LDAP II commands (makestyle clean).
  27 #
  28 include $(SRC)/cmd/Makefile.cmd
  29 
  30 LDAPMOD=        ldapmodify
  31 LDAPADD=        ldapadd
  32 LDAPPROG=       ldapmodrdn ldapsearch ldapdelete $(LDAPMOD)
  33 LDAPSRCS=       $(LDAPPROG:%=../common/%.c)
  34 LDAPOBJS=       $(LDAPPROG:%=%.o)
  35 
  36 #ldap common
  37 LDAPCOMMSRC=    common.c ldaptool-sasl.c fileurl.c convutf8.c
  38 LDAPCOMMOBJS=   $(LDAPCOMMSRC:%.c=%.o)
  39 
  40 # LDAP Naming service commands
  41 # idsconfig command
  42 IDSCONFIGPROG=  idsconfig
  43 IDSCONFIGSRC=   idsconfig.sh


  73 PROG=           $(LDAPPROG) $(LDAPLISTPROG)
  74 ROOTADD=        $(ROOTBIN)/$(LDAPADD)
  75 ROOTMOD=        $(ROOTBIN)/$(LDAPMOD)
  76 ALLPROG=        all $(ROOTADD)
  77 
  78 CLOBBERFILES += $(OBJS) $(PROG) $(LDAPCLIENTPROG) $(LDAPADDENTPROG) \
  79                 $(IDSCONFIGPROG) $(LINTOUT)
  80 
  81 # creating /var/ldap directory
  82 ROOTVAR_LDAP=   $(ROOT)/var/ldap
  83 
  84 LINTFLAGS += -erroff=E_INCONS_ARG_DECL2
  85 LINTFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
  86 
  87 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  88 CERRWARN +=     -_gcc=-Wno-parentheses
  89 CERRWARN +=     -_gcc=-Wno-unused-function
  90 CERRWARN +=     -_gcc=-Wno-unused-variable
  91 CERRWARN +=     -_gcc=-Wno-uninitialized
  92 
  93 # not linted
  94 SMATCH=off
  95 
  96 all:=           TARGET= all
  97 install:=       TARGET= install
  98 clean:=         TARGET= clean
  99 clobber:=       TARGET= clobber
 100 lint:=          TARGET= lint
 101 
 102 # C Pre-Processor flags used by C, CC & lint
 103 CPPFLAGS +=     -DSUN -DSVR4 -DSOLARIS_LDAP_CMD \
 104                 -I $(SRC)/lib/libldap5/include/ldap \
 105                 -I $(SRC)/lib/libsldap/common \
 106                 -I $(SRC)/lib/libnsl/include/rpcsvc \
 107                 -DNO_LIBLCACHE -DLDAP_REFERRALS -DNET_SSL -DLDAPSSLIO \
 108                 -DHAVE_SASL_OPTIONS -DSOLARIS_LDAP_CMD
 109 LDLIBS +=       $(COMPLIB)
 110 
 111 ldapmodrdn :=   LDLIBS += -lldap
 112 ldapsearch :=   LDLIBS += -lldap
 113 ldapdelete :=   LDLIBS += -lldap
 114 ldapmodify :=   LDLIBS += -lldap
 115 ldaplist :=     LDLIBS += -lsldap