1 ## Copyright 1998 The OpenLDAP Foundation, All Rights Reserved.
2 ## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4 ## tests Makefile.in for OpenLDAP
5 BUILD_BDB2 = @BUILD_BDB2@
7 SRC = slapd-tester.c slapd-search.c
8 PROGRAMS = slapd-tester slapd-search slapd-read slapd-addel
10 LDAP_INCDIR= ../include
11 LDAP_LIBDIR= ../libraries
13 XLIBS = -lldap_r -llber -llutil
16 $(MAKE) $(MFLAGS) load-tools
18 load-tools: $(PROGRAMS)
20 slapd-tester: slapd-tester.o
21 $(LTLINK) -o $@ slapd-tester.o
23 slapd-search: slapd-search.o $(LDAP_LIBLBER_DEPEND) $(LDAP_LIBLDAP_DEPEND)
24 $(LTLINK) -o $@ slapd-search.o $(LIBS)
26 slapd-read: slapd-read.o $(LDAP_LIBLBER_DEPEND) $(LDAP_LIBLDAP_DEPEND)
27 $(LTLINK) -o $@ slapd-read.o $(LIBS)
29 slapd-addel: slapd-addel.o $(LDAP_LIBLBER_DEPEND) $(LDAP_LIBLDAP_DEPEND)
30 $(LTLINK) -o $@ slapd-addel.o $(LIBS)
32 bdb2-local: build-tools FORCE
33 @if test "$(BUILD_BDB2)" = "yes" ; then \
34 $(LN_S) $(srcdir)/data . ; \
35 echo "Initiating LDAP tests..." ; \
36 $(MKDIR) test-db test-repl ; \
37 $(srcdir)/scripts/all $(srcdir) bdb2 ; \
39 echo "run configure with --enable-bdb2" ; \
42 all-local: build-tools FORCE
43 @-$(LN_S) $(srcdir)/data .
44 @echo "Initiating LDAP tests..."; \
45 $(MKDIR) test-db test-repl ; \
46 $(srcdir)/scripts/all $(srcdir) ldbm
49 $(RM) test-db/[!C]* test-repl/[!C]* *core
53 veryclean-local: FORCE
55 $(RM) -r test-db test-repl