Index: trunk/psLib/src/dataManip/Makefile
===================================================================
--- trunk/psLib/src/dataManip/Makefile	(revision 1264)
+++ trunk/psLib/src/dataManip/Makefile	(revision 1338)
@@ -13,5 +13,7 @@
            psFFT.o \
            psMinimize.o \
-           
+ 
+OBJS = $(addprefix makedir/,$(SRC_OBJS))
+          
 all: $(TARGET_STATIC)
 
@@ -21,8 +23,8 @@
 # Rule to make static library
 
-libpslib.a:     $(SRC_OBJS)
+libpslib.a:     $(OBJS)
 # The ar option -r is to add/replace object and -s is to create
 # a symbol table in the archive
-	$(AR) rcs ../$@ $(SRC_OBJS)
+	$(AR) rcs ../$@ $(OBJS)
 
 # Define PHONY target "install" which will install necessary files
@@ -37,5 +39,8 @@
 clean:
 	@echo "    Deleting intermediate files for 'sysUtils'"
-	$(RM) $(SRC_OBJS) *.lint $(SRC_OBJS:.o=.i)
+	$(RM) $(OBJS) *.lint $(SRC_OBJS:.o=.i)
+
+cleandep:
+	$(RM) $(OBJS:.o=.d)
 
 %.lint: %.c
@@ -45,11 +50,11 @@
 	$(CC) -E $(CFLAGS) -o $@ $<
 
-%.o: %.i
+makedir/%.o: %.c
 	$(CC) -c $(CFLAGS) -o $@ $<
 
-%.d: %.c
+makedir/%.d: %.c
 	$(CC) -MM $(CFLAGS) $< > $@.tmp
-	sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' $@.tmp > $@
+	sed 's|\($*\)\.o[ :]*|\1.o $@ : |g' $@.tmp > $@
 	$(RM) -f $@.tmp
 
-include $(SRC_OBJS:.o=.d)
+include $(OBJS:.o=.d)
