aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/kdb/db2/libdb2/test/Makefile.in
blob: efffae5526e9815326fe7a1ab0008a7365c811e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
thisconfigdir=../../../../..
myfulldir=plugins/kdb/db2/libdb2/test
mydir=plugins/kdb/db2/libdb2/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)
PROG_RPATH=$(KRB5_LIBDIR)

KRB5_RUN_ENV= @KRB5_RUN_ENV@

DB_LIB		= -ldb
DB_DEPLIB	= ../libdb$(DEPLIBEXT)

all::

dbtest: dbtest.o $(DB_DEPLIB)
	$(CC_LINK) -o $@ dbtest.o $(STRERROR_OBJ) $(DB_LIB)

check:: dbtest
	$(KRB5_RUN_ENV) 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