CC = cc
CC = gcc
 
CFLAGS = -dalign -lsunperf -O4
CFLAGS = -Wall -g
CFLAGS = -Wall -O4
CFLAGS = -O
 
PURIFY = /usr/local/purify-3.2/purify
PURIFY =
 
.SUFFIXES : .o .c .a
 
#-----------------------------------------------------------------------
 
LIBS = \
       ../src/DA2.a \
       ../../Drand/src/Drand.a \
       ../../DV/src/DV.a \
       ../../IV/src/IV.a \
       ../../CV/src/CV.a \
       ../../Utilities/src/Utilities.a
 
DRIVERS = test_QR \
          test_copyEntriesToVector \
          test_fastBunchParlettPivots \
          test_gather \
          test_invert \
          test_localMaxes \
          test_mvm \
          test_nd3Upd \
          test_ndUpd \
          test_ns3Upd \
          test_nsUpd \
          test_quasimax \
          test_sd3Upd \
          test_sort\
          test_ss3Upd 
 
libs :
	cd ../src ; make DA2.a
	cd ../../Drand/src ; make Drand.a
	cd ../../DV/src ; make DV.a
	cd ../../IV/src ; make IV.a
	cd ../../CV/src ; make CV.a
	cd ../../Utilities/src ; make Utilities.a
 
all : ${DRIVERS}
 
clean :
	rm -f *.a *.o ${DRIVERS}
 
test_QR : test_QR.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm
 
test_copyEntriesToVector : test_copyEntriesToVector.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm
 
test_fastBunchParlettPivots : test_fastBunchParlettPivots.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm
 
test_gather : test_gather.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm
 
test_invert : test_invert.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm
 
test_localMaxes : test_localMaxes.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm
 
test_mvm : test_mvm.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm
 
test_nd3Upd : test_nd3Upd.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm
 
test_ndUpd : test_ndUpd.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm
 
test_ns3Upd : test_ns3Upd.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm
 
test_nsUpd : test_nsUpd.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm
 
test_quasimax : test_quasimax.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm
 
test_sd3Upd : test_sd3Upd.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm
 
test_sort : test_sort.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm
 
test_ss3Upd : test_ss3Upd.o libs
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} -lm

