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

  25 
  26 LIBRARY= libkdb_ldap.a
  27 VERS= .1
  28 
  29 LIBKLDAP_OBJS= \
  30         kdb_ldap.o \
  31         kdb_ldap_conn.o \
  32         kdb_xdr.o \
  33         ldap_create.o \
  34         ldap_err.o \
  35         ldap_fetch_mkey.o \
  36         ldap_handle.o \
  37         ldap_krbcontainer.o \
  38         ldap_misc.o \
  39         ldap_principal.o \
  40         ldap_principal2.o \
  41         ldap_pwd_policy.o \
  42         ldap_realm.o \
  43         ldap_service_rights.o \
  44         ldap_service_stash.o \


  59 
  60 POFILE = $(LIBRARY:%.a=%.po)
  61 POFILES = generic.po
  62 
  63 #override liblink
  64 INS.liblink=    -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
  65 
  66 CPPFLAGS +=     -DHAVE_CONFIG_H \
  67                 -I$(SRC)/lib/krb5 \
  68                 -I$(SRC)/lib/krb5/kdb \
  69                 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
  70                 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
  71                 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
  72                 -I$(SRC)/uts/common/gssapi/include/ \
  73                 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
  74                 -DUSE_KADM5_API_VERSION=2
  75 
  76 CFLAGS +=       $(CCVERBOSE) -I..
  77 CERRWARN +=     -_gcc=-Wno-parentheses
  78 CERRWARN +=     -_gcc=-Wno-unused-function




  79 DYNFLAGS +=     $(KRUNPATH) $(KERBRUNPATH) $(KMECHLIB)
  80 LDLIBS +=       -L $(ROOTLIBDIR) -lkadm5srv -lc -lnsl -lldap
  81 
  82 .KEEP_STATE:
  83 
  84 all:    $(LIBS)
  85 
  86 lint:   lintcheck
  87 
  88 # include library targets
  89 include $(SRC)/lib/krb5/Makefile.targ
  90 
  91 FRC:
  92 
  93 generic.po: FRC
  94         $(RM) messages.po
  95         $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch]`
  96         $(SED) "/^domain/d" messages.po > $@
  97         $(RM) messages.po


   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 2008 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 LIBRARY= libkdb_ldap.a
  28 VERS= .1
  29 
  30 LIBKLDAP_OBJS= \
  31         kdb_ldap.o \
  32         kdb_ldap_conn.o \
  33         kdb_xdr.o \
  34         ldap_create.o \
  35         ldap_err.o \
  36         ldap_fetch_mkey.o \
  37         ldap_handle.o \
  38         ldap_krbcontainer.o \
  39         ldap_misc.o \
  40         ldap_principal.o \
  41         ldap_principal2.o \
  42         ldap_pwd_policy.o \
  43         ldap_realm.o \
  44         ldap_service_rights.o \
  45         ldap_service_stash.o \


  60 
  61 POFILE = $(LIBRARY:%.a=%.po)
  62 POFILES = generic.po
  63 
  64 #override liblink
  65 INS.liblink=    -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
  66 
  67 CPPFLAGS +=     -DHAVE_CONFIG_H \
  68                 -I$(SRC)/lib/krb5 \
  69                 -I$(SRC)/lib/krb5/kdb \
  70                 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
  71                 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
  72                 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
  73                 -I$(SRC)/uts/common/gssapi/include/ \
  74                 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
  75                 -DUSE_KADM5_API_VERSION=2
  76 
  77 CFLAGS +=       $(CCVERBOSE) -I..
  78 CERRWARN +=     -_gcc=-Wno-parentheses
  79 CERRWARN +=     -_gcc=-Wno-unused-function
  80 
  81 # not linted
  82 SMATCH=off
  83 
  84 DYNFLAGS +=     $(KRUNPATH) $(KERBRUNPATH) $(KMECHLIB)
  85 LDLIBS +=       -L $(ROOTLIBDIR) -lkadm5srv -lc -lnsl -lldap
  86 
  87 .KEEP_STATE:
  88 
  89 all:    $(LIBS)
  90 
  91 lint:   lintcheck
  92 
  93 # include library targets
  94 include $(SRC)/lib/krb5/Makefile.targ
  95 
  96 FRC:
  97 
  98 generic.po: FRC
  99         $(RM) messages.po
 100         $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch]`
 101         $(SED) "/^domain/d" messages.po > $@
 102         $(RM) messages.po