1# @(#)Makefile 8.1 (Berkeley) 06/02/93 2 3LIBDB= libdb.a 4OBJ1= bt_close.o bt_conv.o bt_debug.o bt_delete.o bt_get.o bt_open.o \ 5 bt_overflow.o bt_page.o bt_put.o bt_search.o bt_seq.o bt_split.o \ 6 bt_stack.o bt_utils.o 7OBJ2= db.o 8OBJ3= hash.o hash_bigkey.o hash_buf.o hash_func.o hash_log2.o hash_page.o \ 9 hsearch.o ndbm.o 10OBJ4= mpool.o 11OBJ5= rec_close.o rec_delete.o rec_get.o rec_open.o rec_put.o rec_search.o \ 12 rec_seq.o rec_utils.o 13 14# If you don't have memmove(3), add memmove.o to the MISC line. 15# 16# If you don't have mktemp(3) or mkstemp(3), add mktemp.o to the MISC line. 17# 18# If realloc(3) of a NULL pointer on your system isn't the same as 19# a malloc(3) call, add realloc.o to the MISC line. 20# 21# If you don't have snprintf/vsnprintf(3), add snprintf.o to the MISC line. 22# Note, this depends you your having vsprintf(3) -- if you don't, there's 23# no workaround other than changing the source code to not use the snprintf 24# calls. If you have to make that change, check to see if your vsprintf 25# returns a length or a char *; if it's the latter, set VSPRINTF_CHARSTAR 26# in the include/compat.h file. 27MISC= 28 29${LIBDB}: ${OBJ1} ${OBJ2} ${OBJ3} ${OBJ4} ${OBJ5} ${MISC} 30 ar cq $@ \ 31 `lorder ${OBJ1} ${OBJ2} ${OBJ3} ${OBJ4} ${OBJ5} ${MISC} | tsort` 32 ranlib $@ 33 34${OBJ1}: 35 ${CC} -c -O -I. -Iinclude -I../btree ../btree/*.c 36${OBJ2}: 37 ${CC} -c -O -I. -Iinclude -I../db ../db/*.c 38${OBJ3}: 39 ${CC} -c -O -I. -Iinclude -I../hash ../hash/*.c 40${OBJ4}: 41 ${CC} -c -O -I. -Iinclude -I../mpool ../mpool/*.c 42${OBJ5}: 43 ${CC} -c -O -I. -Iinclude -I../recno ../recno/*.c 44 45memmove.o: 46 ${CC} -DMEMMOVE -c -O -I. -Iinclude clib/memmove.c 47mktemp.o: 48 ${CC} -c -O -I. -Iinclude clib/mktemp.c 49realloc.o: 50 ${CC} -c -O -I. -Iinclude clib/realloc.c 51snprintf.o: 52 ${CC} -c -O -I. -Iinclude clib/snprintf.c 53 54clean: 55 rm -f ${LIBDB} ${OBJ1} ${OBJ2} ${OBJ3} ${OBJ4} ${OBJ5} ${MISC} 56