Index: trunk/psLib/test/sysUtils/Makefile
===================================================================
--- trunk/psLib/test/sysUtils/Makefile	(revision 987)
+++ trunk/psLib/test/sysUtils/Makefile	(revision 1003)
@@ -3,6 +3,6 @@
 ##  Makefile:   test/sysUtils
 ##
-##  $Revision: 1.13 $  $Name: not supported by cvs2svn $
-##  $Date: 2004-06-10 20:52:14 $
+##  $Revision: 1.14 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-06-11 19:37:23 $
 ##
 ##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -37,18 +37,25 @@
          tst_psTrace04
 
-OBJS = $(addsuffix .o,$(TARGET))
+DEPENDENCIES = $(addprefix builddir/,$(addsuffix .d,$(TARGET)))
+OBJS = $(addprefix builddir/,$(addsuffix .o,$(TARGET)))
 
-all: $(TARGET)
+all: builddir $(TARGET)
 
-include $(OBJS:.o=.d)
+builddir:
+	mkdir builddir
+
+include $(DEPENDENCIES)
 
 clean:
 	@echo "    Deleting executable and binary files for 'test/sysUtils'"
-	$(RM) $(TARGET) *.o *.lint
+	$(RM) $(OBJS) *.lint
 
-%.o : %.c
+distclean: clean
+	$(RM) $(TARGET)
+
+builddir/%.o : %.c
 	$(CC) $(CFLAGS) $(CPPFLAGS) -I.. -I$(PSLIB_INCL_DIR) -c -o $@ $<
 
-%   : %.o
+%   : builddir/%.o
 	$(CC) -o $@ $< -L$(PSLIB_LIB_DIR) -lpslib -lpstest $(LDFLAGS)
 
@@ -56,10 +63,6 @@
 	splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
 
-distclean:
-	$(RM) $(TARGET)
-
-%.d: %.c
+builddir/%.d: %.c
 	$(CC) -MM $(CFLAGS) -I$(PSLIB_INCL_DIR) $< > $@.tmp
-	sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' $@.tmp > $@
+	sed 's|\($*\)\.o[ :]*|builddir\/\1.o $@ : |g' $@.tmp > $@
 	$(RM) -f $@.tmp
-
