1 # $NetBSD: Makefile,v 1.1 2008/05/22 13:57:46 lukem Exp $
16 # configure run configure and create various files for target build.
17 # update-include make configure, then update ./include/ appropriately
18 # update-man make configure, then update ./man/ appropriately
22 # Run configure to create various files.
23 # This should only be necessary after updating ./dist/
26 CONFIGURE_ARGS
+= --prefix=${LDAP_PREFIX}
27 CONFIGURE_ARGS
+= --sysconfdir
=${LDAP_ETCDIR}
28 CONFIGURE_ARGS
+= --localstatedir
=${LDAP_RUNDIR}
30 CONFIGURE_ARGS
+= --enable-dynamic
31 CONFIGURE_ARGS
+= --disable-slapd
32 CONFIGURE_ARGS
+= --with-tls
=openssl
33 CONFIGURE_ARGS
+= --with-threads
34 CONFIGURE_ARGS
+= --without-cyrus-sasl
36 configure
: work
/config.status .PHONY
38 work
/config.status
: ${LDAP_DISTDIR}/configure Makefile openldap.mk
41 && ${CONFIGURE_ENV} sh
${LDAP_DISTDIR}/configure
${CONFIGURE_ARGS} \
44 update-include
: work
/config.status .PHONY
46 && ${MAKE} ldap_config.h \
48 @for wf in
`find work/include -name '*.h'`; do \
49 tf
=${LDAP_SRCDIR}/include/$${wf
##*/}; \
51 cmp
-s
$${wf} $${tf} > /dev
/null
2>&1 ||
( \
54 echo
"Updated $${tf}" ; \
58 update-man
: work
/config.status .PHONY
62 @for wf in
`find work/doc/man -name '*.[0-9].tmp'` ; do \
63 tf
=${LDAP_SRCDIR}/man
/$${wf
##*/}; \
65 cmp
-s
$${wf} $${tf} > /dev
/null
2>&1 ||
( \
68 echo
"Updated $${tf}" ; \
80 .
include <bsd.hostprog.mk
>
81 .
include <bsd.subdir.mk
>