# $NetBSD: openldap.mk,v 1.3 2008/08/31 10:29:51 mrg Exp $ .include LDAP_VERSION= 2.4.11 LDAP_SRCDIR= ${NETBSDSRCDIR}/external/bsd/openldap LDAP_DISTDIR= ${NETBSDSRCDIR}/external/bsd/openldap/dist LDAP_PREFIX= /usr LDAP_DATADIR= ${LDAP_PREFIX}/share/openldap LDAP_ETCDIR= /etc LDAP_RUNDIR= /var/openldap CPPFLAGS+= -I${LDAP_SRCDIR}/include CPPFLAGS+= -I${LDAP_DISTDIR}/include .for _LIB in lutil # XXX lber ldap ldap_r lunicode rewrite .if !defined(LDAPOBJDIR.${_LIB}) LDAPOBJDIR.${_LIB}!= cd ${LDAP_SRCDIR}/lib/lib${_LIB} && ${PRINTOBJDIR} .MAKEOVERRIDES+= LDAPOBJDIR.${_LIB} .endif LDAPLIB.${_LIB}= ${LDAPOBJDIR.${_LIB}}/lib${_LIB}.a .endfor LDAP_MKVERSION= ${HOST_SH} ${LDAP_DISTDIR}/build/mkversion -v "${LDAP_VERSION}" .if ${MKCRYPTO} != "no" CPPFLAGS+= -DHAVE_TLS .endif