Cosmetics.
[flatland.git] / Makefile
1
2 # dyncnn is a deep-learning algorithm for the prediction of
3 # interacting object dynamics
4 #
5 # Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/
6 # Written by Francois Fleuret <francois.fleuret@idiap.ch>
7 #
8 # This file is part of dyncnn.
9 #
10 # dyncnn is free software: you can redistribute it and/or modify it
11 # under the terms of the GNU General Public License version 3 as
12 # published by the Free Software Foundation.
13 #
14 # dyncnn is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 # General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with dyncnn.  If not, see <http://www.gnu.org/licenses/>.
21
22 ifeq ($(DEBUG),yes)
23  CXXFLAGS = -fPIC -Wall -g -DDEBUG
24 else
25  CXXFLAGS = -fPIC -Wall -g -O3
26 endif
27
28 CXXFLAGS += -I/usr/include/cairo -DCAIRO_SUPPORT
29
30 LDFLAGS += -lcairo
31
32 all: flatland_generator.so TAGS
33
34 TAGS: *.cc *.h
35         etags *.cc *.h
36
37 flatland_generator.so: sequence_generator.o misc.o \
38         universe.o \
39         polygon.o \
40         canvas.o canvas_cairo.o
41         $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -fPIC -o $@ $^
42
43 Makefile.depend: *.h *.cc Makefile
44         $(CC) $(CXXFLAGS) -M *.cc > Makefile.depend
45
46 clean:
47         \rm -f flatland *.o *.so Makefile.depend
48
49 -include Makefile.depend