xref: /freebsd/lib/libc/db/test/Makefile (revision 61e21613)
1
2PROG=	dbtest
3OBJS=	dbtest.o strerror.o
4
5# Uncomment the STAT line get hash and btree statistical use info.  This
6# also forces ld to load the btree debug functions for use by gdb, which
7# is useful.  The db library has to be compiled with -DSTATISTICS as well.
8INC=	-I${PORTDIR}/include -I${PORTDIR}
9OORG=	-g
10#STAT=	-DSTATISTICS
11CFLAGS+=-D__DBINTERFACE_PRIVATE -DDEBUG ${STAT} ${OORG} ${INC}
12
13dbtest: ${OBJS} ${PORTDIR}/libdb.a
14	${CC} -o ${.TARGET} ${OBJS} ${PORTDIR}/libdb.a
15
16strerror.o: ${PORTDIR}/clib/strerror.c
17	${CC} -c ${PORTDIR}/clib/strerror.c
18
19clean:
20	rm -f dbtest.core gmon.out ${OBJS} ${PROG} t1 t2 t3
21
22${OBJS}: Makefile
23