BSD 4_4_Lite1 release
[unix-history] / usr / src / lib / libc / db / test / Makefile
index b1c2566..c816432 100644 (file)
@@ -1,16 +1,17 @@
-#      @(#)Makefile    5.2 (Berkeley) %G%
+#      @(#)Makefile    8.9 (Berkeley) 2/21/94
 
 PROG=  dbtest
 
 PROG=  dbtest
-SRCS=  dbtest.c
-#SRCS+=        rec_close.c rec_delete.c rec_get.c rec_open.c rec_put.c \
-#      rec_search.c rec_seq.c rec_utils.c
-#.PATH:        ${.CURDIR}/../recno
-#SRCS+=        bt_close.c bt_conv.c bt_debug.c bt_delete.c bt_get.c bt_open.c \
-#      bt_overflow.c bt_put.c bt_search.c bt_seq.c bt_split.c bt_stack.c \
-#      bt_utils.c
-#.PATH:        ${.CURDIR}/../btree
-CFLAGS=        -g -DDEBUG
-NOMAN= noman
+OBJS=  dbtest.o strerror.o
 
 
-NOINCLUDE=1
-.include <bsd.prog.mk>
+# 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}
+
+dbtest: ${OBJS} ${LIB}
+       ${CC} -o $@ ${OBJS} ${LIB}
+
+strerror.o: ../PORT/clib/strerror.c
+       ${CC} -c ../PORT/clib/strerror.c
+
+clean:
+       rm -f gmon.out ${OBJS} ${PROG} t1 t2 t3