Index: /trunk/psLib/src/Makefile
===================================================================
--- /trunk/psLib/src/Makefile	(revision 595)
+++ /trunk/psLib/src/Makefile	(revision 596)
@@ -3,6 +3,6 @@
 ##  Makefile:  psLib
 ##
-##  $Revision: 1.6 $  $Name: not supported by cvs2svn $
-##  $Date: 2004-05-05 20:46:25 $
+##  $Revision: 1.7 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-05-06 23:25:19 $
 ##
 ##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -34,4 +34,7 @@
 ALLTARGETS = sysUtils collections
 
+TARGET_DYNAMIC = libpslib.$(DLL)
+TARGET_STATIC = libpslib.a
+
 # Define the installation targets
 
@@ -48,5 +51,6 @@
 # Define PHONY target "all" which will make all necessary items
 
-all:	$(ALLTARGETS)  
+all:	$(ALLTARGETS)
+	$(BUILD_DYNAMIC1) $(TARGET_STATIC) $(BUILD_DYNAMIC2) $(TARGET_DYNAMIC)
 	@echo ""
 	@echo "    ---- All targets built successfully $(VERSION) ----"
@@ -126,4 +130,6 @@
 install: installdirs $(INSTALLTARGETS) docs
 	install *.h $(includedir)
+	install $(TARGET_STATIC) $(libexecdir)
+	install $(TARGET_DYNAMIC) $(libexecdir)
 
 # Define PHONY target "clean" to clean up the development areas for
@@ -131,4 +137,6 @@
 
 clean: $(CLEANTARGETS)
+	$(RM) -f $(TARGET_STATIC)
+	$(RM) -f $(TARGET_DYNAMIC)
 
 # Define PHONY target "distclean" to clean up the distribution area for
@@ -136,4 +144,6 @@
 
 distclean: $(DISTCLEANTARGETS)
+	$(RM) -f $(libexecdir)/$(TARGET_STATIC)
+	$(RM) -f $(libexecdir)/$(TARGET_DYNAMIC)
 
 # Define PHONY target "docs" to generate the Doxygen files for psLib
Index: /trunk/psLib/src/Makefile.Globals
===================================================================
--- /trunk/psLib/src/Makefile.Globals	(revision 595)
+++ /trunk/psLib/src/Makefile.Globals	(revision 596)
@@ -5,6 +5,6 @@
 ##  Assumptions:    Variable "prefix" already defined
 ##
-##  $Revision: 1.4 $  $Name: not supported by cvs2svn $
-##  $Date: 2004-04-23 23:40:52 $
+##  $Revision: 1.5 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-05-06 23:25:19 $
 ##
 ##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -53,4 +53,6 @@
     SO  = so
     DOCS = doxygen Doxyfile
+    BUILD_DYNAMIC1 = $(CC) $(LDFLAGS_DLL) -Wl,--whole-archive
+    BUILD_DYNAMIC2 = -Wl,--no-whole-archive -lm -o
 endif
 
@@ -63,4 +65,6 @@
     SO = bundle
     DOCS = 
+    BUILD_DYNAMIC1 = libtool -dynamic -lm
+    BUILD_DYNAMIC2 = -lm -o 
 endif
 
Index: /trunk/psLib/src/collections/Makefile
===================================================================
--- /trunk/psLib/src/collections/Makefile	(revision 595)
+++ /trunk/psLib/src/collections/Makefile	(revision 596)
@@ -3,6 +3,6 @@
 ##  Makefile:   collections
 ##
-##  $Revision: 1.7 $  $Name: not supported by cvs2svn $
-##  $Date: 2004-05-06 18:59:41 $
+##  $Revision: 1.8 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-05-06 23:24:38 $
 ##
 ##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -19,5 +19,4 @@
 
 TARGET_STATIC  = libpslib.a
-#TARGET_DYNAMIC = libpslib.$(DLL)
 
 # Include the make global definitions for the project
@@ -46,15 +45,8 @@
 	$(AR) rcs ../$@ $(SRC_OBJS)
 
-# Rule to make dynamic library
-
-libpslib.$(DLL): $(SRC_OBJS)
-	$(CC) $(LDFLAGS_DLL) $(SRC_OBJS) -o ../$@
-
 # Define PHONY target "install" which will install necessary files
 
 install: $(TARGET_STATIC)
 	install *.h $(includedir)
-	install ../$(TARGET_STATIC) $(libexecdir)
-#	install ../$(TARGET_DYNAMIC) $(libexecdir)
 
 # Define PHONY target "distclean" which will cleanup the distribution
@@ -62,7 +54,4 @@
 distclean:	clean
 	$(RM) ../$(TARGET_STATIC)
-#	$(RM) ../$(TARGET_DYNAMIC)
-	$(RM) $(libexecdir)/$(TARGET_STATIC)
-#	$(RM) $(libexecdir)/$(TARGET_DYNAMIC)
 
 # Define PHONY target "clean" which will cleanup the development area
Index: /trunk/psLib/src/sysUtils/Makefile
===================================================================
--- /trunk/psLib/src/sysUtils/Makefile	(revision 595)
+++ /trunk/psLib/src/sysUtils/Makefile	(revision 596)
@@ -3,6 +3,6 @@
 ##  Makefile:   sysUtils
 ##
-##  $Revision: 1.8 $  $Name: not supported by cvs2svn $
-##  $Date: 2004-05-06 19:00:10 $
+##  $Revision: 1.9 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-05-06 23:24:03 $
 ##
 ##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -19,5 +19,4 @@
 
 TARGET_STATIC  = libpslib.a
-#TARGET_DYNAMIC = libpslib.$(DLL)
 
 # Include the make global definitions for the project
@@ -42,5 +41,5 @@
 # Define PHONY target "all" which will make all the necessary items
 
-all: $(TARGET_STATIC)
+all: $(TARGET_STATIC) 
 
 # Rule to make static library
@@ -51,15 +50,8 @@
 	$(AR) rcs ../$@ $(SRC_OBJS)
 
-# Rule to make dynamic library
-
-libpslib.$(DLL): $(SRC_OBJS)
-	$(CC) $(LDFLAGS_DLL) $(SRC_OBJS) -o ../$@  
-
 # Define PHONY target "install" which will install necessary files
 
 install: $(TARGET_STATIC) 
 	install *.h $(includedir)
-	install ../$(TARGET_STATIC) $(libexecdir)
-#	install ../$(TARGET_DYNAMIC) $(libexecdir)
 
 # Define PHONY target "distclean" which will cleanup the distribution
@@ -67,7 +59,4 @@
 distclean:	clean
 	$(RM) ../$(TARGET_STATIC)
-#	$(RM) ../$(TARGET_DYNAMIC)
-	$(RM) $(libexecdir)/$(TARGET_STATIC)
-#	$(RM) $(libexecdir)/$(TARGET_DYNAMIC)
 
 # Define PHONY target "clean" which will cleanup the development area
