Index: trunk/stac/src/Makefile
===================================================================
--- trunk/stac/src/Makefile	(revision 3375)
+++ trunk/stac/src/Makefile	(revision 3387)
@@ -12,4 +12,7 @@
 
 FITTRANS = fitTrans.o fitTransConfig.o fitTransRead.o stacCheckMemory.o fitTransSolve.o
+
+TEST_SHIFT = testShift.o stacConfig.o stacRead.o stacErrorImages.o stacTransform.o stacCheckMemory.o \
+	stacInvertMaps.o
 
 .PHONY: tags clean empty test profile optimise
@@ -36,4 +39,7 @@
 		$(CC) $(CFLAGS) -o $@ $(FITTRANS) $(LDFLAGS) $(OPTFLAGS)
 
+testShift:	$(TEST_SHIFT)
+		$(CC) $(CFLAGS) -o $@ $(TEST_SHIFT) $(LDFLAGS) $(OPTFLAGS)
+
 clean:
 		-$(RM) *.o gmon.* profile.txt
@@ -51,6 +57,10 @@
 		-$(RM) test_[0-3].fits.shiftrej
 		-$(RM) test_[0-3].fits.shifterr.*
+		-$(RM) test_[0-3].fits.grad
+		-$(RM) test_[0-3].fits.region
+		-$(RM) test_[0-3].fits.rejmap
 		-$(RM) leaks.dat
-		./stac -v -k 2.5 -f 0.5 -G 0.96 testout.fits test_0.fits test_1.fits test_2.fits test_3.fits
+#		./stac -v -k 2.5 -f 0.5 -G 0.96 testout.fits test_0.fits test_1.fits test_2.fits test_3.fits
+		./stac -v testout.fits test_0.fits test_1.fits test_2.fits test_3.fits
 
 # Run profiling.
