Makefile.libldap revision 1.13
11573Srgrimes#	$NetBSD: Makefile.libldap,v 1.13 2021/09/13 01:12:36 dholland Exp $
21573Srgrimes
31573Srgrimes.include "../../openldap.mk"
41573Srgrimes
51573Srgrimes.PATH:		${LDAP_DISTDIR}/libraries/libldap
61573SrgrimesCPPFLAGS+=	-I${LDAP_DISTDIR}/libraries/libldap
71573Srgrimes
81573SrgrimesSRCS+=		bind.c open.c result.c error.c compare.c search.c \
91573Srgrimes		controls.c messages.c references.c extended.c cyrus.c \
101573Srgrimes		modify.c add.c modrdn.c delete.c abandon.c \
111573Srgrimes		sasl.c sbind.c unbind.c cancel.c msctrl.c \
121573Srgrimes		filter.c free.c sort.c passwd.c whoami.c lbase64.c \
131573Srgrimes		getdn.c getentry.c getattr.c getvalues.c addentry.c \
141573Srgrimes		request.c os-ip.c url.c pagectrl.c sortctrl.c vlvctrl.c \
151573Srgrimes		init.c options.c print.c string.c util-int.c schema.c \
16249808Semaste		charray.c os-local.c dnssrv.c utf-8.c utf-8-conv.c \
171573Srgrimes		turn.c ppolicy.c dds.c txn.c ldap_sync.c stctrl.c \
181573Srgrimes		assertion.c deref.c fetch.c ldif.c tavl.c \
191573Srgrimes		account_usability.c avl.c psearchctrl.c ldifutil.c gssapi.c
201573Srgrimes
211573SrgrimesSRCS+=		tls2.c tls_o.c tls_g.c
221573Srgrimes
231573SrgrimesCPPFLAGS+=	-DLDAP_LIBRARY
241573Srgrimes
251573SrgrimesLIBDPLIBS+=	lber	${.CURDIR}/../liblber
261573Srgrimes
271573Srgrimes.if ${USE_KERBEROS} != "no"
281573SrgrimesCPPFLAGS+=	-DHAVE_GSSAPI
291573SrgrimesLIBDPLIBS+=	gssapi	${NETBSDSRCDIR}/crypto/external/bsd/heimdal/lib/libgssapi
301573Srgrimes.endif
311573Srgrimes
321573SrgrimesLIBDPLIBS+=	crypto	${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto
331573SrgrimesLIBDPLIBS+=	ssl	${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libssl
341573Srgrimes
351573SrgrimesCOPTS.charray.c+=	${GCC_NO_STRINGOP_OVERFLOW}
3692986Sobrien