X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=clueless-kmeans.git;a=blobdiff_plain;f=Makefile;h=613dc1408e859396f05c778f25919e5ee4eff503;hp=c8463c8488097eccbed1d310fb460fd645f843ae;hb=HEAD;hpb=2455f83ba251602d5e04640067094f09f03aaa3d diff --git a/Makefile b/Makefile index c8463c8..613dc14 100644 --- 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 # -# 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. @@ -19,11 +19,7 @@ # You should have received a copy of the GNU General Public License # along with selector. If not, see . -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