Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / openldap / openldap.mk
blobbd1ad6a1c7195c565809591c2990cfec05685995
1 # $NetBSD: openldap.mk,v 1.2 2008/08/13 04:42:47 lukem Exp $
3 .include <bsd.own.mk>
5 LDAP_VERSION= 2.4.11
7 LDAP_SRCDIR= ${NETBSDSRCDIR}/external/bsd/openldap
8 LDAP_DISTDIR= ${NETBSDSRCDIR}/external/bsd/openldap/dist
10 LDAP_PREFIX= /usr
12 LDAP_DATADIR= ${LDAP_PREFIX}/share/openldap
13 LDAP_ETCDIR= /etc
14 LDAP_RUNDIR= /var/openldap
16 CPPFLAGS+= -I${LDAP_SRCDIR}/include
17 CPPFLAGS+= -I${LDAP_DISTDIR}/include
19 .for _LIB in lutil # XXX lber ldap ldap_r lunicode rewrite
20 .if !defined(LDAPOBJDIR.${_LIB})
21 LDAPOBJDIR.${_LIB}!= cd ${LDAP_SRCDIR}/lib/lib${_LIB} && ${PRINTOBJDIR}
22 .MAKEOVERRIDES+= LDAPOBJDIR.${_LIB}
23 .endif
24 LDAPLIB.${_LIB}= ${LDAPOBJDIR.${_LIB}}/lib${_LIB}.a
25 .endfor
27 LDAP_MKVERSION= ${HOST_SH} ${LDAP_DISTDIR}/build/mkversion -v "${LDAP_VERSION}"
29 .if ${MKCRYPTO} != "no"
30 CPPFLAGS+= -DHAVE_TLS
31 .endif