1# @(#)Makefile 8.16 (Berkeley) 11/20/95 2 3ALL = driver2 tcreat3 tdel thash4 tread2 tseq tverify 4OBJ = driver2.o tcreat3.o tdel.o thash4.o tread2.o tseq.o tverify.o 5CC = gcc 6 7all: ${ALL} 8 9# Uncomment the STAT line get hash and btree statistical use info. This 10# also forces ld to load the btree debug functions for use by gdb, which 11# is useful. The db library has to be compiled with -DSTATISTICS as well. 12INC= -I${PORTDIR}/include -I${PORTDIR} 13OORG= -g 14#STAT= -DSTATISTICS 15CFLAGS= -D__DBINTERFACE_PRIVATE -DDEBUG ${STAT} ${OORG} ${INC} 16 17tcreat3: tcreat3.o ${PORTDIR}/libdb.a 18 ${CC} -o $@ tcreat3.o ${PORTDIR}/libdb.a 19 20tdel: tdel.o ${PORTDIR}/libdb.a 21 ${CC} -o $@ tdel.o ${PORTDIR}/libdb.a 22 23thash4: thash4.o ${PORTDIR}/libdb.a 24 ${CC} -o $@ thash4.o ${PORTDIR}/libdb.a 25 26tread2: tread2.o ${PORTDIR}/libdb.a 27 ${CC} -o $@ tread2.o ${PORTDIR}/libdb.a 28 29tseq: tseq.o ${PORTDIR}/libdb.a 30 ${CC} -o $@ tseq.o ${PORTDIR}/libdb.a 31 32tverify: tverify.o ${PORTDIR}/libdb.a 33 ${CC} -o $@ tverify.o ${PORTDIR}/libdb.a 34 35driver2: driver2.o ${PORTDIR}/libdb.a 36 ${CC} -o $@ driver2.o ${PORTDIR}/libdb.a 37 38strerror.o: ${PORTDIR}/clib/strerror.c 39 ${CC} -c ${PORTDIR}/clib/strerror.c 40 41clean: 42 rm -f *.core gmon.out ${ALL} ${OBJ} t1 t2 t3 43 44