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