# $NetBSD: Makefile.libldap,v 1.13.2.1 2023/08/11 13:42:57 martin Exp $ .include "../../openldap.mk" .PATH: ${LDAP_DISTDIR}/libraries/libldap CPPFLAGS+= -I${LDAP_DISTDIR}/libraries/libldap SRCS+= bind.c open.c result.c error.c compare.c search.c \ controls.c messages.c references.c extended.c cyrus.c \ modify.c add.c modrdn.c delete.c abandon.c \ sasl.c sbind.c unbind.c cancel.c msctrl.c \ filter.c free.c sort.c passwd.c whoami.c lbase64.c \ getdn.c getentry.c getattr.c getvalues.c addentry.c \ request.c os-ip.c url.c pagectrl.c sortctrl.c vlvctrl.c \ init.c options.c print.c string.c util-int.c schema.c \ charray.c os-local.c dnssrv.c utf-8.c utf-8-conv.c \ turn.c ppolicy.c dds.c txn.c ldap_sync.c stctrl.c \ assertion.c deref.c fetch.c ldif.c tavl.c \ account_usability.c avl.c psearchctrl.c ldifutil.c gssapi.c SRCS+= tls2.c tls_o.c tls_g.c CPPFLAGS+= -DLDAP_LIBRARY COPTS.tls_o.c+=-Wno-error=deprecated-declarations LIBDPLIBS+= lber ${.CURDIR}/../liblber .if ${USE_KERBEROS} != "no" CPPFLAGS+= -DHAVE_GSSAPI LIBDPLIBS+= gssapi ${NETBSDSRCDIR}/crypto/external/bsd/heimdal/lib/libgssapi .endif LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto LIBDPLIBS+= ssl ${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libssl COPTS.charray.c+= ${GCC_NO_STRINGOP_OVERFLOW}