xref: /freebsd-14.2/lib/libc/db/test/Makefile (revision d0b2dbfa)
1ef5d438eSPaul Traina#	@(#)Makefile	8.15 (Berkeley) 7/28/94
258f0484fSRodney W. Grimes
358f0484fSRodney W. GrimesPROG=	dbtest
458f0484fSRodney W. GrimesOBJS=	dbtest.o strerror.o
558f0484fSRodney W. Grimes
6ef5d438eSPaul Traina# Uncomment the STAT line get hash and btree statistical use info.  This
7ef5d438eSPaul Traina# also forces ld to load the btree debug functions for use by gdb, which
8ef5d438eSPaul Traina# is useful.  The db library has to be compiled with -DSTATISTICS as well.
9ef5d438eSPaul TrainaINC=	-I${PORTDIR}/include -I${PORTDIR}
10ef5d438eSPaul TrainaOORG=	-g
11ef5d438eSPaul Traina#STAT=	-DSTATISTICS
12*a7dff00bSBruce EvansCFLAGS+=-D__DBINTERFACE_PRIVATE -DDEBUG ${STAT} ${OORG} ${INC}
1358f0484fSRodney W. Grimes
14ef5d438eSPaul Trainadbtest: ${OBJS} ${PORTDIR}/libdb.a
15df196cc8SWarner Losh	${CC} -o ${.TARGET} ${OBJS} ${PORTDIR}/libdb.a
1658f0484fSRodney W. Grimes
17ef5d438eSPaul Trainastrerror.o: ${PORTDIR}/clib/strerror.c
18ef5d438eSPaul Traina	${CC} -c ${PORTDIR}/clib/strerror.c
1958f0484fSRodney W. Grimes
2058f0484fSRodney W. Grimesclean:
21ef5d438eSPaul Traina	rm -f dbtest.core gmon.out ${OBJS} ${PROG} t1 t2 t3
22ef5d438eSPaul Traina
23ef5d438eSPaul Traina${OBJS}: Makefile
24