Index: trunk/psphot/Makefile
===================================================================
--- trunk/psphot/Makefile	(revision 5643)
+++ 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 #########################
