Index: trunk/psLib/src/dataManip/Makefile
===================================================================
--- trunk/psLib/src/dataManip/Makefile	(revision 655)
+++ trunk/psLib/src/dataManip/Makefile	(revision 656)
@@ -3,12 +3,69 @@
 endif
 
-#TARGET = psImage.o psStats.o libpsDataManip.a
-TARGET = psStats.o libpsDataManip.a
+# Define the two targets to be built
 
-all: $(TARGET)
+TARGET_STATIC  = libpsDataManip.a
+
+# Include the make global definitions for the project
 
 include ../Makefile.Globals
 
+# Set CFLAGS used by the implicit rule to compile .c
+
+CFLAGS := $(CFLAGS_RELOC)
+
+# Define the source objects
+
 SRC_OBJS = psStats.o
+
+# Define PHONY target "all" which will make all the necessary items
+
+all: $(TARGET_STATIC)
+
+# Rule to make static library
+
+libpslib.a: $(SRC_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)
+
+# Define PHONY target "install" which will install necessary files
+
+install: $(TARGET_STATIC) 
+	install *.h $(includedir)
+
+# Define PHONY target "distclean" which will cleanup the distribution
+
+distclean:	clean
+	$(RM) ../$(TARGET_STATIC)
+
+# Define PHONY target "clean" which will cleanup the development area
+
+clean:
+	@echo "    Deleting intermediate files for 'sysUtils'"
+	$(RM) $(SRC_OBJS) *.lint
+
+%.lint: %.c
+	splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@ 
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 
 %.o: %.c
@@ -17,9 +74,9 @@
 
 libpsDataManip.a: $(SRC_OBJS)
-	$(AR) -r libpsDataManip.a $(SRC_OBJS)
+#	$(AR) rcs libpsDataManip.a $(SRC_OBJS)
+	$(AR) rcs ../$@ $(SRC_OBJS)
 
 install: $(TARGET)
 	install *.h $(includedir)
-	install $(TARGET) $(libexecdir)
 
 distclean:	clean
