1 # $NetBSD: Makefile.libldap,v 1.4 2008/10/27 07:26:29 mrg Exp $
3 .include "../../openldap.mk"
5 .PATH: ${LDAP_DISTDIR}/libraries/libldap
6 CPPFLAGS+= -I${LDAP_DISTDIR}/libraries/libldap
8 SRCS+= 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 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 \
20 .if ${MKCRYPTO} != "no"
24 CPPFLAGS+= -DLDAP_LIBRARY
26 LIBDPLIBS+= lber ${.CURDIR}/../liblber
28 .if ${MKCRYPTO} != "no"
29 LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto
30 LIBDPLIBS+= ssl ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libssl