Index: trunk/psLib/src/sysUtils/Makefile
===================================================================
--- trunk/psLib/src/sysUtils/Makefile	(revision 672)
+++ trunk/psLib/src/sysUtils/Makefile	(revision 675)
@@ -3,6 +3,6 @@
 ##  Makefile:   sysUtils
 ##
-##  $Revision: 1.9 $  $Name: not supported by cvs2svn $
-##  $Date: 2004-05-06 23:24:03 $
+##  $Revision: 1.10 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-05-14 00:59:11 $
 ##
 ##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -41,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
@@ -64,6 +64,14 @@
 clean:
 	@echo "    Deleting intermediate files for 'sysUtils'"
-	$(RM) $(SRC_OBJS) *.lint
+	$(RM) $(SRC_OBJS) *.lint $(SRC_OBJS:.o=.d)
 
 %.lint: %.c
-	splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@ 
+	splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
+
+%.d: %.c
+	@set -e; rm -f $@; \
+	$(CC) -M $(CFLAGS) $< > $@.$$$$; \
+	sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
+	rm -f $@.$$$$
+
+include $(SRC_OBJS:.o=.d)
