--- Makefile.in	Thu May 23 15:17:39 2002
+++ ../../../Makefile.in	Tue Mar 15 00:54:19 2005
@@ -25,13 +25,14 @@
 
 all: headers
 	$(recurse)
+	if [ ! -f libpub.dylib ]; then $(CC) -dynamiclib -install_name ${libdir}/libpub.dylib -current_version 0.35 -o libpub.dylib `ls *.o | grep -v "^test"`; fi
 	$(ARADD) $(libname) `ls *.o | grep -v "^test"`
 	$(RANLIB) $(libname)
 
 tests:
 	$(recurse)
 
-install: 
+install: all
 	target=pre-install; $(recurse)
 	$(INSTALL) -d $(incdir)
 	$(INSTALL) -d $(libdir)
@@ -42,6 +43,7 @@
 	for i in include/$(incnamebase)/*.h; do \
 		$(INSTALL_DATA) $$i $(incdir)/$(incnamebase); done
 	target=post-install; $(recurse)
+	$(INSTALL) -m 755 libpub.dylib $(libdir)
 
 clean:
 	rm -rf core *.o include $(libnamebase) *.3 test*
