xref: /freebsd/lib/libc/db/test/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
158f0484fSRodney W. GrimesPROG=	dbtest
258f0484fSRodney W. GrimesOBJS=	dbtest.o strerror.o
358f0484fSRodney W. Grimes
4ef5d438eSPaul Traina# Uncomment the STAT line get hash and btree statistical use info.  This
5ef5d438eSPaul Traina# also forces ld to load the btree debug functions for use by gdb, which
6ef5d438eSPaul Traina# is useful.  The db library has to be compiled with -DSTATISTICS as well.
7ef5d438eSPaul TrainaINC=	-I${PORTDIR}/include -I${PORTDIR}
8ef5d438eSPaul TrainaOORG=	-g
9ef5d438eSPaul Traina#STAT=	-DSTATISTICS
10a7dff00bSBruce EvansCFLAGS+=-D__DBINTERFACE_PRIVATE -DDEBUG ${STAT} ${OORG} ${INC}
1158f0484fSRodney W. Grimes
12ef5d438eSPaul Trainadbtest: ${OBJS} ${PORTDIR}/libdb.a
13df196cc8SWarner Losh	${CC} -o ${.TARGET} ${OBJS} ${PORTDIR}/libdb.a
1458f0484fSRodney W. Grimes
15ef5d438eSPaul Trainastrerror.o: ${PORTDIR}/clib/strerror.c
16ef5d438eSPaul Traina	${CC} -c ${PORTDIR}/clib/strerror.c
1758f0484fSRodney W. Grimes
1858f0484fSRodney W. Grimesclean:
19ef5d438eSPaul Traina	rm -f dbtest.core gmon.out ${OBJS} ${PROG} t1 t2 t3
20ef5d438eSPaul Traina
21ef5d438eSPaul Traina${OBJS}: Makefile
22