Automatic commit
[svrt.git] / Makefile
1
2 #  svrt is the ``Synthetic Visual Reasoning Test'', an image generator
3 #  for evaluating classification performance of machine learning
4 #  systems, humans and primates.
5 #
6 #  Copyright (c) 2009 Idiap Research Institute, http://www.idiap.ch/
7 #  Written by Francois Fleuret <francois.fleuret@idiap.ch>
8 #
9 #  This file is part of svrt.
10 #
11 #  svrt is free software: you can redistribute it and/or modify it
12 #  under the terms of the GNU General Public License version 3 as
13 #  published by the Free Software Foundation.
14 #
15 #  svrt is distributed in the hope that it will be useful, but WITHOUT
16 #  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 #  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
18 #  License for more details.
19 #
20 #  You should have received a copy of the GNU General Public License
21 #  along with selector.  If not, see <http://www.gnu.org/licenses/>.
22
23 LDFLAGS=-lm -ljpeg -lpng
24
25 ifeq ($(DEBUG),yes)
26   OPTIMIZE_FLAG = -ggdb3 -DDEBUG -fno-omit-frame-pointer
27 else
28   OPTIMIZE_FLAG = -ggdb3 -O3
29 endif
30
31 ifeq ($(PROFILE),yes)
32   PROFILE_FLAG = -pg
33 endif
34
35 CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG) $(CXXGLPK)
36
37 all: vision_test TAGS
38
39 TAGS: *.cc *.h
40         etags --members -l c++ *.cc *.h
41
42 vision_test: misc.o rgb_image.o jpeg_misc.o fusion_sort.o global.o param_parser.o progress_bar.o \
43         discrete_density.o \
44         tools.o \
45         vignette.o \
46         shape.o \
47         vignette_generator.o \
48         vision_problem_tools.o \
49         vision_problem_1.o \
50         vision_problem_2.o \
51         vision_problem_3.o \
52         vision_problem_5.o \
53         vision_problem_6.o \
54         vision_problem_8.o \
55         vision_problem_11.o \
56         vision_problem_12.o \
57         vision_problem_13.o \
58         vision_problem_17.o \
59         vision_problem_18.o \
60         vision_problem_20.o \
61         vision_problem_21.o \
62         classifier_reader.o \
63         classifier.o naive_bayesian_classifier.o \
64         stump.o boosted_classifier.o \
65         error_rates.o \
66         vision_test.o
67         $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
68
69 Makefile.depend: *.h *.cc Makefile
70         $(CC) -M *.cc > Makefile.depend
71
72 clean:
73         \rm -f vision_test *.o Makefile.depend TAGS
74
75 -include Makefile.depend