+2002-08-23 Tom Yu <tlyu@mit.edu>
+ * dbtest.c: Include btree.h if we're compiled with -DSTATISTICS.
+
+ * Makefile.in: Add rules for bttest; also add a clean rule.
+
+2002-05-08 Ken Raeburn <raeburn@mit.edu>
+
* dbtest.c: Test for __STDC__ defined, not nonzero, to decide
whether to use stdarg.h or varargs.h.
(err): Similarly for function signature.
TMPDIR=.
LOCALINCLUDES= -I. -I$(srcdir)/../include -I../include -I$(srcdir)/../mpool \
- -I$(srcdir)/../db
+ -I$(srcdir)/../btree -I$(srcdir)/../hash -I$(srcdir)/../db
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
check:: dbtest
$(KRB5_RUN_ENV) srcdir=$(srcdir) TMPDIR=$(TMPDIR) $(FCTSH) $(srcdir)/run.test
+
+bttest.o: $(srcdir)/btree.tests/main.c
+ $(CC) $(ALL_CFLAGS) -c $(srcdir)/btree.tests/main.c -o $@
+
+bttest: bttest.o $(DB_DEPLIB)
+ $(CC_LINK) -o $@ bttest.o $(STRERROR_OBJ) $(DB_LIB)
+
+clean-unix::
+ $(RM) dbtest.o dbtest __dbtest
+ $(RM) bttest.o bttest
#include <unistd.h>
#include "db-int.h"
+#ifdef STATISTICS
+#include "btree.h"
+#endif
enum S { COMMAND, COMPARE, GET, PUT, REMOVE, SEQ, SEQFLAG, KEY, DATA };