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