Minor update.
[pysvrt.git] / Makefile
1
2 #  svrt is the ``Synthetic Visual Reasoning Test'', an image
3 #  generator for evaluating classification performance of machine
4 #  learning systems, humans and primates.
5 #
6 #  Copyright (c) 2017 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
16 #  WITHOUT ANY WARRANTY; without even the implied warranty of
17 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 #  General Public License for more details.
19 #
20 #  You should have received a copy of the GNU General Public License
21 #  along with svrt.  If not, see <http://www.gnu.org/licenses/>.
22
23 ifeq ($(DEBUG),yes)
24  CXXFLAGS = -fPIC -Wall -g -DDEBUG
25 else
26  CXXFLAGS = -fPIC -Wall -g -O3
27 endif
28
29 all: svrt TAGS
30
31 TAGS: *.cc *.h
32         etags *.cc *.h
33
34 svrt:   libsvrt.so svrt.h svrt.c
35         ./build.py
36
37 libsvrt.so: \
38         misc.o random.o \
39         svrt_generator.o \
40         shape.o vignette.o vignette_generator.o \
41         $(patsubst %.cc,%.o,$(wildcard vision_problem_*.cc))
42         $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -fPIC -o $@ $^
43
44 Makefile.depend: *.h *.cc Makefile
45         $(CC) $(CXXFLAGS) -M *.cc > Makefile.depend
46
47 clean:
48         \rm -rf svrt *.o *.so Makefile.depend
49
50 -include Makefile.depend