INSTALLHOME =.
PROG_FLGS   = -D BOOLPREDEFINED

SRCS = cluster.cpp DisjointSets.cpp utility.cpp

CFLAGS = $(OPT) $(DEBUG) $(PROG_FLGS)

LFLAGS = 

OBJLIST = cluster.o DisjointSets.o utility.o

CXX		= g++

.cpp.o:
	$(CXX) -c $*.cpp $(CFLAGS)

OPT             = -O3
DEBUG           = $(CXXDEBUGFLAGS)

all:    cluster

cluster:    $(OBJLIST)
	$(CXX) -o $@ $(OBJLIST) $(LFLAGS)

depend:
	makedepend -- $(CFLAGS) -- $(SRCS)

clean:
	@rm -rf *.o *.ckp ii_files

install: cluster
	mv cluster $(INSTALLHOME)

# DO NOT DELETE THIS LINE -- make depend uses it

cluster.o: cluster.cpp DisjointSets.h utility.h
DisjointSets.o: DisjointSets.cpp DisjointSets.h
utility.o: utility.cpp utility.h
# DO NOT DELETE THIS 2nd LINE -- make depend uses it
