3 # flatland is a simple 2d physical simulator
5 # Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/
6 # Written by Francois Fleuret <francois.fleuret@idiap.ch>
8 # This file is part of flatland
10 # flatland 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.
14 # flatland 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.
19 # You should have received a copy of the GNU General Public License
20 # along with flatland. If not, see <http://www.gnu.org/licenses/>.
24 CXXFLAGS = -fPIC -Wall -g -DDEBUG
26 CXXFLAGS = -fPIC -Wall -g -O3
29 CXXFLAGS += -I/usr/include/cairo -DCAIRO_SUPPORT
33 all: flatland_generator.so TAGS
38 flatland_generator.so: \
39 sequence_generator.o misc.o \
40 polygon.o universe.o \
41 canvas.o canvas_cairo.o
42 $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -fPIC -o $@ $^
44 Makefile.depend: *.h *.cc Makefile
45 $(CC) $(CXXFLAGS) -M *.cc > Makefile.depend
48 \rm -f flatland *.o *.so Makefile.depend
50 -include Makefile.depend