# clueless-kmeans is a variant of k-means which enforces balanced # distribution of classes in every cluster # # Copyright (c) 2013 Idiap Research Institute, http://www.idiap.ch/ # Written by Francois Fleuret # # This file is part of clueless-kmeans. # # clueless-kmeans is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License # version 3 as published by the Free Software Foundation. # # clueless-kmeans is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with selector. If not, see . LDFLAGS= -lm -lglpk ifeq ($(DEBUG),yes) OPTIMIZE_FLAG = -ggdb3 -DDEBUG -fno-omit-frame-pointer else OPTIMIZE_FLAG = -ggdb3 -O3 endif ifeq ($(PROFILE),yes) PROFILE_FLAG = -pg endif CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG) $(CXXGLPK) all: clueless-kmeans clueless-kmeans: \ misc.o \ sample_set.o \ clusterer.o \ clueless-kmeans.o $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) Makefile.depend: *.h *.cc Makefile $(CC) -M *.cc > Makefile.depend clean: rm -f *.o Makefile.depend clueless-kmeans -include Makefile.depend