## 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 = IsoClus.o Image.o Point.o KM_ANN.o KMeans.o KMrand.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 Image.h Image.cc Point.h Point.cc IsoClus.cc README makefile

# in first test, for regular version, 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
tests:
	bash tests.bash

image:
	bash img.bash

