]> git.sur5r.net Git - openldap/blob - tests/Makefile.in
7b4e6331093cbb246ce3122310e63e40824b1a5f
[openldap] / tests / Makefile.in
1 ## Copyright 1998 The OpenLDAP Foundation, All Rights Reserved.
2 ## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
3 ##
4 ## tests Makefile.in for OpenLDAP
5 BUILD_BDB2 = @BUILD_BDB2@
6
7 SRC      = slapd-tester.c slapd-search.c
8 PROGRAMS = slapd-tester slapd-search slapd-read slapd-addel
9
10 LDAP_INCDIR= ../include
11 LDAP_LIBDIR= ../libraries
12
13 XLIBS    = -lldap_r -llber -llutil
14
15 build-tools: FORCE
16         $(MAKE) $(MFLAGS) load-tools
17
18 load-tools: $(PROGRAMS)
19
20 slapd-tester: slapd-tester.o 
21         $(LTLINK) -o $@ slapd-tester.o
22
23 slapd-search: slapd-search.o $(LDAP_LIBLBER_DEPEND) $(LDAP_LIBLDAP_DEPEND)
24         $(LTLINK) -o $@ slapd-search.o $(LIBS)
25
26 slapd-read: slapd-read.o $(LDAP_LIBLBER_DEPEND) $(LDAP_LIBLDAP_DEPEND)
27         $(LTLINK) -o $@ slapd-read.o $(LIBS)
28
29 slapd-addel: slapd-addel.o $(LDAP_LIBLBER_DEPEND) $(LDAP_LIBLDAP_DEPEND)
30         $(LTLINK) -o $@ slapd-addel.o $(LIBS)
31
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 ; \
38         else \
39                 echo "run configure with --enable-bdb2" ; \
40         fi
41
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
47
48 clean-local:    FORCE
49         $(RM) test-db/[!C]* test-repl/[!C]* *core
50         $(RM) $(PROGRAMS)
51         $(RM) *.o
52
53 veryclean-local: FORCE
54         @-$(RM) data
55         $(RM) -r test-db test-repl
56         $(RM) $(PROGRAMS)
57         $(RM) *.o
58