diff options
Diffstat (limited to 'lib/libc/db/test/Makefile')
-rw-r--r-- | lib/libc/db/test/Makefile | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/lib/libc/db/test/Makefile b/lib/libc/db/test/Makefile index c816432..a5dd08a 100644 --- a/lib/libc/db/test/Makefile +++ b/lib/libc/db/test/Makefile @@ -1,17 +1,23 @@ -# @(#)Makefile 8.9 (Berkeley) 2/21/94 +# @(#)Makefile 8.15 (Berkeley) 7/28/94 PROG= dbtest OBJS= dbtest.o strerror.o -# Add -DSTATISTICS to CFLAGS to get btree statistical use info. -# Note, the db library has to be compiled for statistics as well. -CFLAGS= -D__DBINTERFACE_PRIVATE -DDEBUG -O ${INC} +# Uncomment the STAT line get hash and btree statistical use info. This +# also forces ld to load the btree debug functions for use by gdb, which +# is useful. The db library has to be compiled with -DSTATISTICS as well. +INC= -I${PORTDIR}/include -I${PORTDIR} +OORG= -g +#STAT= -DSTATISTICS +CFLAGS= -D__DBINTERFACE_PRIVATE -DDEBUG ${STAT} ${OORG} ${INC} -dbtest: ${OBJS} ${LIB} - ${CC} -o $@ ${OBJS} ${LIB} +dbtest: ${OBJS} ${PORTDIR}/libdb.a + ${CC} -o $@ ${OBJS} ${PORTDIR}/libdb.a -strerror.o: ../PORT/clib/strerror.c - ${CC} -c ../PORT/clib/strerror.c +strerror.o: ${PORTDIR}/clib/strerror.c + ${CC} -c ${PORTDIR}/clib/strerror.c clean: - rm -f gmon.out ${OBJS} ${PROG} t1 t2 t3 + rm -f dbtest.core gmon.out ${OBJS} ${PROG} t1 t2 t3 + +${OBJS}: Makefile |