xref: /dflybsd-src/lib/libc/db/test/Makefile (revision abd448c3b2d3508465e48d9cfdb163ef88fc242e)
1984263bcSMatthew Dillon#	@(#)Makefile	8.15 (Berkeley) 7/28/94
2*abd448c3SPeter Avalos# $FreeBSD: head/lib/libc/db/test/Makefile 81118 2001-08-03 21:45:54Z bde $
3984263bcSMatthew Dillon
4984263bcSMatthew DillonPROG=	dbtest
5984263bcSMatthew DillonOBJS=	dbtest.o strerror.o
6984263bcSMatthew Dillon
7984263bcSMatthew Dillon# Uncomment the STAT line get hash and btree statistical use info.  This
8984263bcSMatthew Dillon# also forces ld to load the btree debug functions for use by gdb, which
9984263bcSMatthew Dillon# is useful.  The db library has to be compiled with -DSTATISTICS as well.
10984263bcSMatthew DillonINC=	-I${PORTDIR}/include -I${PORTDIR}
11984263bcSMatthew DillonOORG=	-g
12984263bcSMatthew Dillon#STAT=	-DSTATISTICS
13c53f86cfSPeter AvalosCFLAGS+=-D__DBINTERFACE_PRIVATE -DDEBUG ${STAT} ${OORG} ${INC}
14984263bcSMatthew Dillon
15984263bcSMatthew Dillondbtest: ${OBJS} ${PORTDIR}/libdb.a
16984263bcSMatthew Dillon	${CC} -o ${.TARGET} ${OBJS} ${PORTDIR}/libdb.a
17984263bcSMatthew Dillon
18984263bcSMatthew Dillonstrerror.o: ${PORTDIR}/clib/strerror.c
19984263bcSMatthew Dillon	${CC} -c ${PORTDIR}/clib/strerror.c
20984263bcSMatthew Dillon
21984263bcSMatthew Dillonclean:
22984263bcSMatthew Dillon	rm -f dbtest.core gmon.out ${OBJS} ${PROG} t1 t2 t3
23984263bcSMatthew Dillon
24984263bcSMatthew Dillon${OBJS}: Makefile
25