## NASA GSFC, CODE 588, Nargess Memarsadeghi
## May 2002
CC = g++
CFLAGS = -g -O3 -Wall


# Replace class1.o and class2.o with your class object files
OBJs = Point.o Image.o KMdata.o KMcenters.o KMrand.o KMeans.o KCtree.o KCutil.o KM_ANN.o KMfilterCenters.o IsoClus.o

# Replace proj1 with the name of the executable you want to create
TARGET = IsoClus

.SUFFIXES: .cc .cpp

.cpp.o:
	${CC} ${CFLAGS} -c $<

.cc.o:
	${CC} ${CFLAGS} -c $<
${TARGET}: ${OBJs}
	${CC} ${CFLAGS} ${OBJs} -o ${TARGET}

clean:
	rm -f *.o

tar:
	tar -cvf clustering.tar *.h *.cc  *.cpp README makefile

# in first test, number of points is fixed and we vary number of clusters
# to be 10, 20, 40, 60, 80, and 100, and we repeat each experiment 5 times
test1:
	bash tests.bash


image:
	bash img.bash
#	bash tests.bash
	bash ../Std_Hyb/tests.bash
big50:
	IsoClus < test1_50 > eff50
	IsoClus <test2_50>   2eff50
purify:
	insure -g -c Point.cc 
	insure -g -c Image.cc
	insure -g -c KMdata.cpp
	insure -g -c KMcenters.cpp
	insure -g -c KMrand.cpp
	insure -g -c KMeans.cpp
	insure -g -c KCutil.cpp
	insure -g -c KM_ANN.cpp
	insure -g -c KMfilterCenters.cpp 
	insure -o IsoClus Point.o Image.o KMdata.o KMcenters.o KMrand.o KMeans.o KCutil.o KM_ANN.o KMfilterCenters.o	
