summaryrefslogtreecommitdiff
path: root/src/plugins/kdb/db2/libdb2/test/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/kdb/db2/libdb2/test/Makefile.in')
-rw-r--r--src/plugins/kdb/db2/libdb2/test/Makefile.in37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/plugins/kdb/db2/libdb2/test/Makefile.in b/src/plugins/kdb/db2/libdb2/test/Makefile.in
new file mode 100644
index 000000000000..58eaf6f5b7d2
--- /dev/null
+++ b/src/plugins/kdb/db2/libdb2/test/Makefile.in
@@ -0,0 +1,37 @@
+mydir=plugins$(S)kdb$(S)db2$(S)libdb2$(S)test
+BUILDTOP=$(REL)..$(S)..$(S)..$(S)..$(S)..
+
+FCTSH = @FCTSH@
+TMPDIR=.
+
+LOCALINCLUDES= -I. -I$(srcdir)/../include -I../include -I$(srcdir)/../mpool \
+ -I$(srcdir)/../btree -I$(srcdir)/../hash -I$(srcdir)/../db
+
+PROG_LIBPATH=-L.. -L$(TOPLIBD)
+
+DB_LIB = -ldb $(SUPPORT_LIB)
+DB_DEPLIB = ../libdb$(DEPLIBEXT) $(SUPPORT_DEPLIB)
+
+all:
+
+dbtest: dbtest.o $(DB_DEPLIB)
+ $(CC_LINK) -o $@ dbtest.o $(STRERROR_OBJ) $(DB_LIB)
+
+t.be.db: $(srcdir)/t.be.txt
+t.le.db: $(srcdir)/t.le.txt
+t.be.db t.le.db:
+ $(PERL) -ne 'chomp; print pack("H*", $$_);' $? > $@
+
+check: dbtest t.be.db t.le.db
+ $(RUN_SETUP) srcdir=$(srcdir) TMPDIR=$(TMPDIR) $(VALGRIND) $(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
+ $(RM) t.be.db t.le.db