Added README.md
[clueless-kmeans.git] / Makefile
index c8463c8..613dc14 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,17 @@
 
-# clueless-kmean is a variant of k-mean which enforces balanced
+# 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 <francois.fleuret@idiap.ch>
 #
-# This file is part of clueless-kmean.
+# This file is part of clueless-kmeans.
 #
-# clueless-kmean is free software: you can redistribute it and/or
+# 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-kmean is distributed in the hope that it will be useful,
+# 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 <http://www.gnu.org/licenses/>.
 
-ifeq ($(STATIC),yes)
-  LDFLAGS=-static -lm -ljpeg -lpng -lz -lglpk
-else
-  LDFLAGS= -lm -ljpeg -lpng -lz -lglpk
-endif
+LDFLAGS= -lm -lglpk
 
 ifeq ($(DEBUG),yes)
   OPTIMIZE_FLAG = -ggdb3 -DDEBUG -fno-omit-frame-pointer
@@ -37,16 +33,19 @@ endif
 
 CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG) $(CXXGLPK)
 
-# LDFLAGS=-lglpk
-
-all: clueless-kmean
+all: clueless-kmeans
 
-clueless-kmean: \
+clueless-kmeans: \
        misc.o \
        sample_set.o \
        clusterer.o \
-       clueless-kmean.o
+       clueless-kmeans.o
        $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
 
+Makefile.depend: *.h *.cc Makefile
+       $(CC) -M *.cc > Makefile.depend
+
 clean:
-       rm -f *.o clueless-kmean
+       rm -f *.o Makefile.depend clueless-kmeans
+
+-include Makefile.depend