-LDAP_INCDIR= ../include
-LDAP_LIBDIR= ../libraries
-
-XLIBS = -lldap_r -llber -llutil
-
-build-tools: FORCE
- $(MAKE) $(MFLAGS) load-tools
-
-load-tools: $(PROGRAMS)
-
-slapd-tester: slapd-tester.o
- $(LTLINK) -o $@ slapd-tester.o
-
-slapd-search: slapd-search.o $(LDAP_LIBLBER_DEPEND) $(LDAP_LIBLDAP_DEPEND)
- $(LTLINK) -o $@ slapd-search.o $(LDAP_LIBPATH) $(XLIBS)
-
-slapd-read: slapd-read.o $(LDAP_LIBLBER_DEPEND) $(LDAP_LIBLDAP_DEPEND)
- $(LTLINK) -o $@ slapd-read.o $(LDAP_LIBPATH) $(XLIBS)
-
-slapd-addel: slapd-addel.o $(LDAP_LIBLBER_DEPEND) $(LDAP_LIBLDAP_DEPEND)
- $(LTLINK) -o $@ slapd-addel.o $(LDAP_LIBPATH) $(XLIBS)
+bdb: test-bdb
+test-bdb: FORCE
+ @-$(LN_S) $(srcdir)/data .
+ @-$(LN_S) $(top_srcdir)/servers/slapd/schema .
+ @-$(LN_S) ../libraries/liblunicode ucdata
+ @if test "$(BUILD_BDB)" = "yes" ; then \
+ echo "Initiating LDAP tests for BDB..." ; \
+ $(MKDIR) test-db test-repl || true; \
+ $(srcdir)/scripts/all $(srcdir) bdb $(BUILD_MONITOR) ; \
+ else \
+ echo "run configure with --enable-bdb" ; \
+ fi