1# $NetBSD: Makefile.libldap,v 1.6 2010/03/08 05:18:17 lukem Exp $ 2 3.include "../../openldap.mk" 4 5.PATH: ${LDAP_DISTDIR}/libraries/libldap 6CPPFLAGS+= -I${LDAP_DISTDIR}/libraries/libldap 7 8SRCS+= bind.c open.c result.c error.c compare.c search.c \ 9 controls.c messages.c references.c extended.c cyrus.c \ 10 modify.c add.c modrdn.c delete.c abandon.c \ 11 sasl.c gssapi.c sbind.c unbind.c cancel.c \ 12 filter.c free.c sort.c passwd.c whoami.c \ 13 getdn.c getentry.c getattr.c getvalues.c addentry.c \ 14 request.c os-ip.c url.c pagectrl.c sortctrl.c vlvctrl.c \ 15 init.c options.c print.c string.c util-int.c schema.c \ 16 charray.c os-local.c dnssrv.c utf-8.c utf-8-conv.c \ 17 turn.c ppolicy.c dds.c txn.c ldap_sync.c stctrl.c \ 18 assertion.c deref.c 19 20.if ${MKCRYPTO} != "no" 21SRCS+= tls2.c tls_o.c tls_g.c tls_m.c 22.endif 23 24CPPFLAGS+= -DLDAP_LIBRARY 25 26LIBDPLIBS+= lber ${.CURDIR}/../liblber 27 28.if ${MKCRYPTO} != "no" 29LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto 30LIBDPLIBS+= ssl ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libssl 31.endif 32