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 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #

  25 
  26 LIBRARY= libkadm5clnt.a
  27 VERS= .1
  28 
  29 CLNT_OBJS = clnt_policy.o \
  30         client_rpc.o \
  31         client_principal.o \
  32         client_init.o \
  33         clnt_privs.o \
  34         clnt_chpass_util.o \
  35         logger.o \
  36         changepw.o \
  37         chpw.o
  38 
  39 SHARED_OBJS = \
  40         alt_prof.o \
  41         chpass_util.o \
  42         kadm_rpc_xdr.o \
  43         misc_free.o \
  44         kadm_host_srv_names.o \


  69         -I$(SRC)/lib/krb5 \
  70         -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
  71         -I$(SRC)/uts/common/gssapi/ \
  72         -I$(SRC)/uts/common/gssapi/include/ \
  73         -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
  74         -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
  75         -I$(KRB5IPROPDIR) \
  76         -DHAVE_STDLIB_H -DUSE_SOLARIS_SHARED_LIBRARIES \
  77         -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSETRPCENT_TYPE=void \
  78         -DENDRPCENT_TYPE=void -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1 \
  79         -DHAVE_SYSLOG_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 \
  80         -DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1 -DUSE_KADM5_API_VERSION=2
  81 
  82 CFLAGS +=       $(CCVERBOSE) -I..
  83 
  84 CERRWARN +=     -_gcc=-Wno-unused-function
  85 CERRWARN +=     -_gcc=-Wno-unused-variable
  86 CERRWARN +=     -_gcc=-Wno-parentheses
  87 CERRWARN +=     -_gcc=-Wno-uninitialized
  88 


  89 LDLIBS +=       -lc
  90 
  91 .KEEP_STATE:
  92 
  93 all:    $(LIBS)
  94 
  95 # Rpcgen-erate iprop.h from the iprop.x spec file
  96 $(ISRCHDR):     $(KRB5IPROPDIR)/iprop.x
  97         $(RM)   $@
  98         $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
  99 
 100 # Explicitly state the dependancy on iprop.h
 101 $(LIBS): $(ISRCHDR)
 102 
 103 CLEANFILES +=   $(ISRCHDR)
 104 
 105 lint:   lintcheck
 106 
 107 # include library targets
 108 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 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 LIBRARY= libkadm5clnt.a
  28 VERS= .1
  29 
  30 CLNT_OBJS = clnt_policy.o \
  31         client_rpc.o \
  32         client_principal.o \
  33         client_init.o \
  34         clnt_privs.o \
  35         clnt_chpass_util.o \
  36         logger.o \
  37         changepw.o \
  38         chpw.o
  39 
  40 SHARED_OBJS = \
  41         alt_prof.o \
  42         chpass_util.o \
  43         kadm_rpc_xdr.o \
  44         misc_free.o \
  45         kadm_host_srv_names.o \


  70         -I$(SRC)/lib/krb5 \
  71         -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
  72         -I$(SRC)/uts/common/gssapi/ \
  73         -I$(SRC)/uts/common/gssapi/include/ \
  74         -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
  75         -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
  76         -I$(KRB5IPROPDIR) \
  77         -DHAVE_STDLIB_H -DUSE_SOLARIS_SHARED_LIBRARIES \
  78         -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSETRPCENT_TYPE=void \
  79         -DENDRPCENT_TYPE=void -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1 \
  80         -DHAVE_SYSLOG_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 \
  81         -DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1 -DUSE_KADM5_API_VERSION=2
  82 
  83 CFLAGS +=       $(CCVERBOSE) -I..
  84 
  85 CERRWARN +=     -_gcc=-Wno-unused-function
  86 CERRWARN +=     -_gcc=-Wno-unused-variable
  87 CERRWARN +=     -_gcc=-Wno-parentheses
  88 CERRWARN +=     -_gcc=-Wno-uninitialized
  89 
  90 SMOFF += all_func_returns,indenting,no_if_block
  91 
  92 LDLIBS +=       -lc
  93 
  94 .KEEP_STATE:
  95 
  96 all:    $(LIBS)
  97 
  98 # Rpcgen-erate iprop.h from the iprop.x spec file
  99 $(ISRCHDR):     $(KRB5IPROPDIR)/iprop.x
 100         $(RM)   $@
 101         $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
 102 
 103 # Explicitly state the dependancy on iprop.h
 104 $(LIBS): $(ISRCHDR)
 105 
 106 CLEANFILES +=   $(ISRCHDR)
 107 
 108 lint:   lintcheck
 109 
 110 # include library targets
 111 include ../../../Makefile.targ