2 ################################################################################
3 # This program is free software: you can redistribute it and#or modify #
4 # it under the terms of the version 3 of the GNU General Public License #
5 # as published by the Free Software Foundation. #
7 # This program is distributed in the hope that it will be useful, but #
8 # WITHOUT ANY WARRANTY; without even the implied warranty of #
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
10 # General Public License for more details. #
12 # You should have received a copy of the GNU General Public License #
13 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
15 # Written by Francois Fleuret #
16 # Copyright (C) Ecole Polytechnique Federale de Lausanne #
17 # Contact <francois.fleuret@epfl.ch> for comments & bug reports #
18 ################################################################################
26 CXXFLAGS = -Wall -g -Wall -DDEBUG -DVERBOSE
29 CXXFLAGS = -ffast-math -fcaller-saves -finline-functions -funroll-all-loops -Wall -O3
32 all: cmim create_samples Makefile.depend
37 cmim: misc.o fastentropy.o classifier.o cmim.o
38 $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
40 create_samples: create_samples.o
41 $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
46 Makefile.depend: *.h *.cc Makefile
47 $(CC) -M *.cc > Makefile.depend
49 ARCHIVE_NAME = cmim-1.1
53 cd ..; tar zcvf ${ARCHIVE_NAME}.tgz \
54 ${DIRNAME}/*.{cc,h,sh,txt} ${DIRNAME}/Makefile ${DIRNAME}/README
56 -include Makefile.depend