xref: /titanic_52/usr/src/lib/krb5/plugins/kdb/ldap/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
154925bf6Swillf#
254925bf6Swillf# CDDL HEADER START
354925bf6Swillf#
454925bf6Swillf# The contents of this file are subject to the terms of the
554925bf6Swillf# Common Development and Distribution License (the "License").
654925bf6Swillf# You may not use this file except in compliance with the License.
754925bf6Swillf#
854925bf6Swillf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
954925bf6Swillf# or http://www.opensolaris.org/os/licensing.
1054925bf6Swillf# See the License for the specific language governing permissions
1154925bf6Swillf# and limitations under the License.
1254925bf6Swillf#
1354925bf6Swillf# When distributing Covered Code, include this CDDL HEADER in each
1454925bf6Swillf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1554925bf6Swillf# If applicable, add the following below this CDDL HEADER, with the
1654925bf6Swillf# fields enclosed by brackets "[]" replaced with your own identifying
1754925bf6Swillf# information: Portions Copyright [yyyy] [name of copyright owner]
1854925bf6Swillf#
1954925bf6Swillf# CDDL HEADER END
2054925bf6Swillf#
2154925bf6Swillf#
2267e3a03eSrie# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2354925bf6Swillf# Use is subject to license terms.
2454925bf6Swillf#
2554925bf6Swillf#
2654925bf6Swillf
2754925bf6SwillfLIBRARY= kldap.a
2854925bf6SwillfVERS= .1
2954925bf6Swillf
3054925bf6Swillf# XXX need to set the install path to plugin dir
3154925bf6Swillf
3254925bf6Swillf# ldap plugin objects
3354925bf6SwillfLDAP_OBJS= \
3454925bf6Swillf	ldap_exp.o
3554925bf6Swillf
3654925bf6SwillfOBJECTS= $(LDAP_OBJS)
3754925bf6Swillf
3854925bf6Swillf# include library definitions
3954925bf6Swillfinclude $(SRC)/lib/krb5/Makefile.lib
4054925bf6Swillf
4154925bf6SwillfLIBS=		$(DYNLIB)
4254925bf6SwillfSRCS=	$(LDAP_OBJS:%.o=../%.c)
4354925bf6Swillf
4454925bf6Swillfinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
4554925bf6Swillf
4654925bf6Swillf#override liblink
4754925bf6SwillfINS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
4854925bf6Swillf
4954925bf6SwillfCPPFLAGS += 	-DHAVE_CONFIG_H \
5054925bf6Swillf		-I$(SRC)/cmd/krb5/iprop \
5154925bf6Swillf		-I$(SRC)/lib/krb5 \
5254925bf6Swillf		-I$(SRC)/lib/krb5/kdb \
5354925bf6Swillf		-I$(SRC)/lib/krb5/plugins/kdb/ldap/libkdb_ldap \
5454925bf6Swillf		-I$(SRC)/lib/gss_mechs/mech_krb5/include \
5554925bf6Swillf		-I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
5654925bf6Swillf		-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
5754925bf6Swillf		-I$(SRC)/uts/common/gssapi/include/ \
5854925bf6Swillf		-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
5954925bf6Swillf		-DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1 \
6054925bf6Swillf		-DUSE_KADM5_API_VERSION=2
6154925bf6Swillf
6254925bf6SwillfCFLAGS +=	$(CCVERBOSE)
63*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
64*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-function
6554925bf6Swillf
6667e3a03eSrieDYNFLAGS +=	$(KERBRUNPATH)
6754925bf6Swillf# setting -L $(ROOT)/usr/lib/gss because libkdb_ldap needs mech_krb5
68159d09a2SMark PhalanLDLIBS +=	-L $(ROOT)/usr/lib/gss -L $(ROOTLIBDIR) -lkdb_ldap \
69159d09a2SMark Phalan		-lc
7054925bf6Swillf
7154925bf6Swillf.KEEP_STATE:
7254925bf6Swillf
7354925bf6Swillfall:	$(LIBS)
7454925bf6Swillf
7554925bf6Swillflint:	lintcheck
7654925bf6Swillf
7754925bf6Swillf# include library targets
7854925bf6Swillfinclude $(SRC)/lib/krb5/Makefile.targ
7954925bf6Swillf
8054925bf6SwillfFRC:
81