--- cygnus/src/util/Makefile.in	Tue Jul  1 14:15:05 1997
+++ kerbnet-1.2/util/Makefile.in	Tue May 27 22:04:09 1997
@@ -1,6 +1,6 @@
 CFLAGS = $(CCOPTS)
 
-MAC_SUBDIRS = profile et
+MAC_SUBDIRS = misc profile et
 
 editsh = sed -e 's,@''ARADD''@,$(ARADD),g' -e 's,@''ARCHIVE''@,$(ARCHIVE),g'
 HOST_TYPE=@HOST_TYPE@
@@ -11,6 +11,22 @@
 all-mac::
 all-windows: libupdate
 
+# this is necessary because the db2 build, which is intended to be
+# standalone, of course does not know to make symlinks in the right
+# magic places in the krb5 build tree so other parts of the tree can
+# find db2.  So we make those links here.  this can't use CopyHeader,
+# because there's no way in this make setup to do stuff after the
+# subdirectory recursion.  fortunately, one does not need a
+# destination to make a link...
+
+all-unix::
+	$(RM) ../include/db.h ../include/db-config.h ../include/db-ndbm.h \
+		../lib/libdb.a
+	ln -s ../util/db2/obj/db.h ../include
+	ln -s ../util/db2/obj/db-config.h ../include
+	ln -s ../util/db2/obj/libdb.a ../lib
+	ln -s $(srcdir)/db2/include/db-ndbm.h ../include
+
 unixmac: libupdate
 
 libupdate: $(srcdir)/libupdate.sh
@@ -21,8 +37,6 @@
 	 $(RM) $@ $@.tmp
 	 $(SLIBSH) $(srcdir)/makeshlib.sh >$@.tmp&&chmod a+x $@.tmp&&mv $@.tmp $@
 
-aix.bincmds: Makefile
-	 echo libpath $(KRB5_SHLIBDIR):`pwd`/$(TOPLIBD):/usr/lib:/lib >aix.bincmds
 clean::
 	$(RM) libupdate makeshlib
 
