Add the libdb2 type-existence tests to the top-level configure script.
[krb5.git] / src / plugins / kdb / db2 / libdb2 / test / Makefile.in
1 thisconfigdir=./..
2 myfulldir=plugins/kdb/db2/libdb2/test
3 mydir=test
4 BUILDTOP=$(REL)..$(S)..$(S)..$(S)..$(S)..
5
6 FCTSH = @FCTSH@
7 TMPDIR=.
8
9 LOCALINCLUDES=  -I. -I$(srcdir)/../include -I../include -I$(srcdir)/../mpool \
10                 -I$(srcdir)/../btree -I$(srcdir)/../hash -I$(srcdir)/../db
11
12 PROG_LIBPATH=-L..
13 PROG_RPATH=$(KRB5_LIBDIR)
14
15 KRB5_RUN_ENV= @KRB5_RUN_ENV@
16
17 DB_LIB          = -ldb
18 DB_DEPLIB       = ../libdb$(DEPLIBEXT)
19
20 all::
21
22 dbtest: dbtest.o $(DB_DEPLIB)
23         $(CC_LINK) -o $@ dbtest.o $(STRERROR_OBJ) $(DB_LIB)
24
25 check:: dbtest
26         $(KRB5_RUN_ENV) srcdir=$(srcdir) TMPDIR=$(TMPDIR) $(VALGRIND) $(FCTSH) $(srcdir)/run.test
27
28 bttest.o: $(srcdir)/btree.tests/main.c
29         $(CC) $(ALL_CFLAGS) -c $(srcdir)/btree.tests/main.c -o $@
30
31 bttest: bttest.o $(DB_DEPLIB)
32         $(CC_LINK) -o $@ bttest.o $(STRERROR_OBJ) $(DB_LIB)
33
34 clean-unix::
35         $(RM) dbtest.o dbtest __dbtest
36         $(RM) bttest.o bttest