xref: /onnv-gate/usr/src/lib/krb5/plugins/kdb/ldap/Makefile.com (revision 7934:6aeeafc994de)
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#
226543Srie# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
234960Swillf# Use is subject to license terms.
244960Swillf#
254960Swillf#
264960Swillf
274960SwillfLIBRARY= kldap.a
284960SwillfVERS= .1
294960Swillf
304960Swillf# XXX need to set the install path to plugin dir
314960Swillf
324960Swillf# ldap plugin objects
334960SwillfLDAP_OBJS= \
344960Swillf	ldap_exp.o
354960Swillf
364960SwillfOBJECTS= $(LDAP_OBJS)
374960Swillf
384960Swillf# include library definitions
394960Swillfinclude $(SRC)/lib/krb5/Makefile.lib
404960Swillf
414960SwillfLIBS=		$(DYNLIB)
424960SwillfSRCS=	$(LDAP_OBJS:%.o=../%.c)
434960Swillf
444960Swillfinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
454960Swillf
464960Swillf#override liblink
474960SwillfINS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
484960Swillf
494960SwillfCPPFLAGS += 	-DHAVE_CONFIG_H \
504960Swillf		-I$(SRC)/cmd/krb5/iprop \
514960Swillf		-I$(SRC)/lib/krb5 \
524960Swillf		-I$(SRC)/lib/krb5/kdb \
534960Swillf		-I$(SRC)/lib/krb5/plugins/kdb/ldap/libkdb_ldap \
544960Swillf		-I$(SRC)/lib/gss_mechs/mech_krb5/include \
554960Swillf		-I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
564960Swillf		-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
574960Swillf		-I$(SRC)/uts/common/gssapi/include/ \
584960Swillf		-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
594960Swillf		-DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1 \
604960Swillf		-DUSE_KADM5_API_VERSION=2
614960Swillf
624960SwillfCFLAGS +=	$(CCVERBOSE)
634960Swillf
646543SrieDYNFLAGS +=	$(KERBRUNPATH)
654960Swillf# setting -L $(ROOT)/usr/lib/gss because libkdb_ldap needs mech_krb5
66*7934SMark.Phalan@Sun.COMLDLIBS +=	-L $(ROOT)/usr/lib/gss -L $(ROOTLIBDIR) -lkdb_ldap \
67*7934SMark.Phalan@Sun.COM		-lc
684960Swillf
694960Swillf.KEEP_STATE:
704960Swillf
714960Swillfall:	$(LIBS)
724960Swillf
734960Swillflint:	lintcheck
744960Swillf
754960Swillf# include library targets
764960Swillfinclude $(SRC)/lib/krb5/Makefile.targ
774960Swillf
784960SwillfFRC:
79