##DOSBUILDTOP = ..\..
##DOS!include $(BUILDTOP)\config\windows.in

TST=if test -n "`cat DONE`" ; then

LIB_SUBDIRS= hash

LIBUPDATE= $(BUILDTOP)/util/libupdate
DEPLIBS=
SHLIB_LIBS=
SHLIB_LDFLAGS= $(LDFLAGS) @SHLIB_RPATH_DIRS@	
SHLIB_LIBDIRS= @SHLIB_LIBDIRS@
STEXT=a

all:: all-$(WHAT)

all-unix::

all-windows::


libdb.$(STEXT): hash/DONE
	@if test -f $@ ; then \
		for i in $(LIB_SUBDIRS) ; \
		do \
			(set -x; $(LIBUPDATE) $@ $$i/DONE $$i) \
		done ; \
	else \
		for i in $(LIB_SUBDIRS) ; \
		do \
			(set -x; $(LIBUPDATE) --force $@ $$i/DONE $$i) \
		done ; \
	fi
	$(RANLIB) $@
	touch libdb.stamp

clean:: clean-$(WHAT)

clean-unix::
	$(RM) libdb.$(LIBEXT) libdb_ranlib libdb.stamp

clean-windows::
	$(RM) db.lib db.bak

all-windows::
	cd BERK_DB
	@echo Making in berk_db
	-$(MAKE) -$(MFLAGS) LIBCMD=$(LIBCMD)
	cd ..

clean-windows::
	cd BERK_DB
	@echo Making clean in berk_db
	-$(MAKE) -$(MFLAGS) clean
	cd ..
	@echo Making clean locally


check:: libdb.$(STEXT)
