144746Smarkm#	@(#)Makefile	8.15 (Berkeley) 7/28/94
250476Speter# $FreeBSD$
344746Smarkm
444746SmarkmPROG=	dbtest
544746SmarkmOBJS=	dbtest.o strerror.o
644746Smarkm
744746Smarkm# Uncomment the STAT line get hash and btree statistical use info.  This
857171Sshin# also forces ld to load the btree debug functions for use by gdb, which
957171Sshin# is useful.  The db library has to be compiled with -DSTATISTICS as well.
1096462SruINC=	-I${PORTDIR}/include -I${PORTDIR}
1174870SruOORG=	-g
1274870Sru#STAT=	-DSTATISTICS
1344746SmarkmCFLAGS+=-D__DBINTERFACE_PRIVATE -DDEBUG ${STAT} ${OORG} ${INC}
1444746Smarkm
1544746Smarkmdbtest: ${OBJS} ${PORTDIR}/libdb.a
1644746Smarkm	${CC} -o ${.TARGET} ${OBJS} ${PORTDIR}/libdb.a
1744746Smarkm
1844746Smarkmstrerror.o: ${PORTDIR}/clib/strerror.c
1944746Smarkm	${CC} -c ${PORTDIR}/clib/strerror.c
2065240Sache
2159266Ssteveclean:
2259266Ssteve	rm -f dbtest.core gmon.out ${OBJS} ${PROG} t1 t2 t3
2359266Ssteve
2444746Smarkm${OBJS}: Makefile
2544746Smarkm