# @(#)Makefile 8.1 (Berkeley) 6/2/93
OBJ1
= bt_close.o bt_conv.o bt_debug.o bt_delete.o bt_get.o bt_open.o \
bt_overflow.o bt_page.o bt_put.o bt_search.o bt_seq.o bt_split.o \
OBJ3
= hash.o hash_bigkey.o hash_buf.o hash_func.o hash_log2.o hash_page.o \
OBJ5
= rec_close.o rec_delete.o rec_get.o rec_open.o rec_put.o rec_search.o \
# If you don't have memmove(3), add memmove.o to the MISC line.
# If you don't have mktemp(3) or mkstemp(3), add mktemp.o to the MISC line.
# If realloc(3) of a NULL pointer on your system isn't the same as
# a malloc(3) call, add realloc.o to the MISC line.
# If you don't have snprintf/vsnprintf(3), add snprintf.o to the MISC line.
# Note, this depends you your having vsprintf(3) -- if you don't, there's
# no workaround other than changing the source code to not use the snprintf
# calls. If you have to make that change, check to see if your vsprintf
# returns a length or a char *; if it's the latter, set VSPRINTF_CHARSTAR
# in the include/compat.h file.
${LIBDB}: ${OBJ1} ${OBJ2} ${OBJ3} ${OBJ4} ${OBJ5} ${MISC}
`lorder ${OBJ1} ${OBJ2} ${OBJ3} ${OBJ4} ${OBJ5} ${MISC} | tsort`
${CC} -c
-O
-I.
-Iinclude
-I..
/btree ..
/btree
/*.c
${CC} -c
-O
-I.
-Iinclude
-I..
/db ..
/db
/*.c
${CC} -c
-O
-I.
-Iinclude
-I..
/hash ..
/hash
/*.c
${CC} -c
-O
-I.
-Iinclude
-I..
/mpool ..
/mpool
/*.c
${CC} -c
-O
-I.
-Iinclude
-I..
/recno ..
/recno
/*.c
${CC} -DMEMMOVE
-c
-O
-I.
-Iinclude clib
/memmove.c
${CC} -c
-O
-I.
-Iinclude clib
/mktemp.c
${CC} -c
-O
-I.
-Iinclude clib
/realloc.c
${CC} -c
-O
-I.
-Iinclude clib
/snprintf.c
rm -f
${LIBDB} ${OBJ1} ${OBJ2} ${OBJ3} ${OBJ4} ${OBJ5} ${MISC}