Index: /trunk/psphot/Makefile
===================================================================
--- /trunk/psphot/Makefile	(revision 5651)
+++ /trunk/psphot/Makefile	(revision 5652)
@@ -67,4 +67,8 @@
 $(SRC)/psphotModelTest.$(ARCH).o
 
+TEST = \
+$(SRC)/psphotTest.$(ARCH).o \
+$(SRC)/psphotSparseMatrix.$(ARCH).o
+
 psphot: $(BIN)/psphot.$(ARCH)
 $(BIN)/psphot.$(ARCH) : $(PSPHOT)
@@ -76,5 +80,10 @@
 $(MODELTEST): $(SRC)/psphot.h
 
-INSTALL = psphot psphotModelTest
+test.install: psphotTest.install
+test: $(BIN)/psphotTest.$(ARCH)
+$(BIN)/psphotTest.$(ARCH) : $(TEST)
+$(TEST): $(SRC)/psphot.h
+
+INSTALL = psphot psphotModelTest 
 
 # dependancy rules for binary code #########################
Index: /trunk/psphot/src/psphotSparseMatrix.c
===================================================================
--- /trunk/psphot/src/psphotSparseMatrix.c	(revision 5651)
+++ /trunk/psphot/src/psphotSparseMatrix.c	(revision 5652)
@@ -10,4 +10,11 @@
     int Nrow;
 } psSparse;
+
+void psphotSparseMatrixTest () {
+
+    // build a sparse matrix
+   
+
+} 
 
 psVector *psSparseMatrixTimesVector (psSparse *matrix, psVector *vector) {
Index: /trunk/psphot/src/psphotTest.c
===================================================================
--- /trunk/psphot/src/psphotTest.c	(revision 5652)
+++ /trunk/psphot/src/psphotTest.c	(revision 5652)
@@ -0,0 +1,7 @@
+# include "psphot.h"
+
+int main (int argc, char **argv) {
+
+  psphotSparseMatrixTest ();
+
+}
