xref: /onnv-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/Makefile.com (revision 6543:465433824d87)
14960Swillf#
24960Swillf# CDDL HEADER START
34960Swillf#
44960Swillf# The contents of this file are subject to the terms of the
54960Swillf# Common Development and Distribution License (the "License").
64960Swillf# You may not use this file except in compliance with the License.
74960Swillf#
84960Swillf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94960Swillf# or http://www.opensolaris.org/os/licensing.
104960Swillf# See the License for the specific language governing permissions
114960Swillf# and limitations under the License.
124960Swillf#
134960Swillf# When distributing Covered Code, include this CDDL HEADER in each
144960Swillf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154960Swillf# If applicable, add the following below this CDDL HEADER, with the
164960Swillf# fields enclosed by brackets "[]" replaced with your own identifying
174960Swillf# information: Portions Copyright [yyyy] [name of copyright owner]
184960Swillf#
194960Swillf# CDDL HEADER END
204960Swillf#
214960Swillf#
22*6543Srie# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
234960Swillf# Use is subject to license terms.
244960Swillf#
254960Swillf# ident	"%Z%%M%	%I%	%E% SMI"
264960Swillf#
274960Swillf
284960SwillfLIBRARY= libkdb_ldap.a
294960SwillfVERS= .1
304960Swillf
314960SwillfLIBKLDAP_OBJS= \
324960Swillf	kdb_ldap.o \
334960Swillf	kdb_ldap_conn.o \
344960Swillf	kdb_xdr.o \
354960Swillf	ldap_create.o \
364960Swillf	ldap_err.o \
374960Swillf	ldap_fetch_mkey.o \
384960Swillf	ldap_handle.o \
394960Swillf	ldap_krbcontainer.o \
404960Swillf	ldap_misc.o \
414960Swillf	ldap_principal.o \
424960Swillf	ldap_principal2.o \
434960Swillf	ldap_pwd_policy.o \
444960Swillf	ldap_realm.o \
454960Swillf	ldap_service_rights.o \
464960Swillf	ldap_service_stash.o \
474960Swillf	ldap_services.o \
484960Swillf	ldap_tkt_policy.o \
494960Swillf	princ_xdr.o
504960Swillf
514960SwillfOBJECTS= $(LIBKLDAP_OBJS)
524960Swillf
534960Swillf# include library definitions
544960Swillfinclude $(SRC)/lib/krb5/Makefile.lib
554960Swillf
564960SwillfSRCS= $(LIBKLDAP_OBJS:%.o=../%.c)
574960Swillf
584960SwillfLIBS=		$(DYNLIB)
594960Swillf
604960Swillfinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
614960Swillf
624960SwillfPOFILE = $(LIBRARY:%.a=%.po)
634960SwillfPOFILES = generic.po
644960Swillf
654960Swillf#override liblink
664960SwillfINS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
674960Swillf
684960SwillfCPPFLAGS += 	-DHAVE_CONFIG_H \
694960Swillf		-I$(SRC)/lib/krb5 \
704960Swillf		-I$(SRC)/lib/krb5/kdb \
714960Swillf		-I$(SRC)/lib/gss_mechs/mech_krb5/include \
724960Swillf		-I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
734960Swillf		-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
744960Swillf		-I$(SRC)/uts/common/gssapi/include/ \
754960Swillf		-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
764960Swillf		-DUSE_KADM5_API_VERSION=2
774960Swillf
784960SwillfCFLAGS +=	$(CCVERBOSE) -I..
79*6543SrieDYNFLAGS +=	$(KRUNPATH) $(KERBRUNPATH) $(KMECHLIB)
804960SwillfLDLIBS +=	-L $(ROOTLIBDIR) -lkadm5srv -lc -lnsl -lldap
814960Swillf
824960Swillf.KEEP_STATE:
834960Swillf
844960Swillfall:	$(LIBS)
854960Swillf
864960Swillflint:	lintcheck
874960Swillf
884960Swillf# include library targets
894960Swillfinclude $(SRC)/lib/krb5/Makefile.targ
904960Swillf
914960SwillfFRC:
924960Swillf
934960Swillfgeneric.po: FRC
944960Swillf	$(RM) messages.po
954960Swillf	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch]`
964960Swillf	$(SED) "/^domain/d" messages.po > $@
974960Swillf	$(RM) messages.po
98