* Makefile.in: Rework to use krb5 build system.
* btree/Makefile.in: New file.
* clib/Makefile.in: New file.
* db/Makefile.in: New file.
* mpool/Makefile.in: New file.
* recno/Makefile.in: New file.
* test/Makefile.in: New file.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12487
dc483132-0cff-0310-8789-
dd5450dbe970
+2000-06-30 Tom Yu <tlyu@mit.edu>
+
+ * configure.in: Rework to use krb5 build system.
+
+ * Makefile.in: Rework to use krb5 build system.
+
+ * btree/Makefile.in: New file.
+
+ * clib/Makefile.in: New file.
+
+ * db/Makefile.in: New file.
+
+ * mpool/Makefile.in: New file.
+
+ * recno/Makefile.in: New file.
+
+ * test/Makefile.in: New file.
+
2000-06-26 Ken Raeburn <raeburn@mit.edu>
* btree/bt_put.c (__bt_put): Initialize "e".
-SHELL = /bin/sh
+thisconfigdir=.
+myfulldir=util/db2
+mydir=.
+BUILDTOP=$(REL)$(U)$(S)$(U)
+LOCAL_SUBDIRS=hash btree db mpool recno clib test
-SUBDIRS = obj
+LIB=db
+LIBMAJOR=1
+LIBMINOR=0
+STOBJLISTS=hash/OBJS.ST btree/OBJS.ST db/OBJS.ST mpool/OBJS.ST \
+ recno/OBJS.ST
+RELDIR=../util/db2
-all clean distclean realclean check::
- for i in ${SUBDIRS}; do (cd $$i; ${MAKE} $@) || exit 1; done
-
-distclean::
- rm -rf config.status config.log config.cache db-config.h
-
-install::
-
-Makefiles::
-
-realclean::
- rm -rf configure db-config.h.in
+all-unix:: all-liblinks
+clean-unix:: clean-liblinks clean-libs
+install-unix:: install-libs
--- /dev/null
+thisconfigdir=./..
+myfulldir=util/db2/btree
+mydir=btree
+BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
+STLIBOBJS= 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 bt_utils.o
+
+LOCALINCLUDES= -I. -I$(srcdir)/../include -I../include -I$(srcdir)/../mpool \
+ -I$(srcdir)/../db
+
+all-unix:: all-libobjs
+clean-unix:: clean-libobjs
--- /dev/null
+thisconfigdir=./..
+myfulldir=util/db2/clib
+mydir=clib
+BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
+STLIBOBJS=@MEMMOVE_OBJ@ @MKSTEMP_OBJ@ @STRERROR_OBJ@
+
+all-unix:: all-libobjs
+clean-unix:: clean-libobjs
dnl Process this file with autoconf to produce a configure script.
AC_INIT(db/db.c)
-AC_CONFIG_HEADER(obj/db-config.h)
-dnl checks for programs
-AC_PROG_CC
-AC_PROG_RANLIB
+AC_CONFIG_HEADER(include/db-config.h)
+CONFIG_RULES
AC_PATH_PROG(FALSE,false,:)
AC_PATH_PROG(SH,sh,$FALSE)
AC_C_BIGENDIAN
AC_C_CONST
AC_CHECK_SIZEOF(int)
+
dnl checks for library functions
-AC_CHECK_FUNC(memmove,,MEMMOVE_OBJ=memmove.o)
-AC_CHECK_FUNC(mkstemp,,MKSTEMP_OBJ=mkstemp.o)
-AC_CHECK_FUNC(strerror,,STRERROR_OBJ=strerror.o)
+AC_CHECK_FUNC(memmove,,
+[MEMMOVE_OBJ=memmove.o
+ADD_DEF(-Dmemmove=kdb2__memmove)
+ADD_DEF(-DMEMMOVE)])
+
+AC_CHECK_FUNC(mkstemp,,
+[MKSTEMP_OBJ=mkstemp.o
+ADD_DEF(-Dmkstemp=kdb2__mkstemp)])
+AC_CHECK_FUNC(strerror,,
+[STRERROR_OBJ=strerror.o
+ADD_DEF(-Dstrerror=kdb2__strerror)])
+
AC_SUBST(MEMMOVE_OBJ)
AC_SUBST(MKSTEMP_OBJ)
AC_SUBST(STRERROR_OBJ)
AC_CHECK_FUNCS(memmove mkstemp strerror)
-dnl checks for system services
-AC_OUTPUT(Makefile obj/Makefile)
+
+KRB5_BUILD_LIBRARY
+KRB5_BUILD_LIBOBJS
+KRB5_BUILD_PROGRAM
+KRB5_RUN_FLAGS
+K5_GEN_MAKEFILE(., lib)
+K5_GEN_MAKEFILE(hash, libobj)
+K5_GEN_MAKEFILE(btree, libobj)
+K5_GEN_MAKEFILE(db, libobj)
+K5_GEN_MAKEFILE(mpool, libobj)
+K5_GEN_MAKEFILE(recno, libobj)
+K5_GEN_MAKEFILE(clib, libobj)
+K5_GEN_MAKEFILE(test)
+K5_AC_OUTPUT
--- /dev/null
+thisconfigdir=./..
+myfulldir=util/db2/db
+mydir=db
+BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
+STLIBOBJS=db.o
+
+LOCALINCLUDES= -I. -I$(srcdir)/../include -I../include -I$(srcdir)/../mpool
+
+all-unix:: all-libobjs
+clean-unix:: clean-libobjs
--- /dev/null
+thisconfigdir=./..
+myfulldir=util/db2/hash
+mydir=hash
+BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
+STLIBOBJS= hash.o hash_bigkey.o hash_debug.o hash_func.o hash_log2.o \
+ hash_page.o hsearch.o dbm.o
+
+LOCALINCLUDES= -I. -I$(srcdir)/../include -I../include -I$(srcdir)/../mpool \
+ -I$(srcdir)/../db
+
+all-unix:: all-libobjs
+clean-unix:: clean-libobjs
--- /dev/null
+thisconfigdir=./..
+myfulldir=util/db2/mpool
+mydir=mpool
+BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
+STLIBOBJS=mpool.o
+
+LOCALINCLUDES= -I. -I$(srcdir)/../include -I../include -I$(srcdir)/../db
+
+all-unix:: all-libobjs
+clean-unix:: clean-libobjs
--- /dev/null
+thisconfigdir=./..
+myfulldir=util/db2/recno
+mydir=recno
+BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
+STLIBOBJS= rec_close.o rec_delete.o rec_get.o rec_open.o rec_put.o \
+ rec_search.o rec_seq.o rec_utils.o
+
+LOCALINCLUDES= -I. -I$(srcdir)/../include -I../include -I$(srcdir)/../mpool \
+ -I$(srcdir)/../db
+
+all-unix:: all-libobjs
+clean-unix:: clean-libobjs
--- /dev/null
+thisconfigdir=./..
+myfulldir=util/db2/test
+mydir=test
+BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
+
+FCTSH = @FCTSH@
+TMPDIR=.
+
+LOCALINCLUDES= -I. -I$(srcdir)/../include -I../include -I$(srcdir)/../mpool \
+ -I$(srcdir)/../db
+
+PROG_LIBPATH=-L$(TOPLIBD)
+PROG_RPATH=$(KRB5_LIBDIR)
+
+KRB5_RUN_ENV= @KRB5_RUN_ENV@
+
+all::
+
+dbtest: dbtest.o $(DB_DEPLIB)
+ $(CC_LINK) -o $@ dbtest.o $(STRERROR_OBJ) $(DB_LIB)
+
+check:: dbtest
+ $(KRB5_RUN_ENV) srcdir=$(srcdir) TMPDIR=$(TMPDIR) $(FCTSH) $(srcdir)/run.test