# # flatland is a simple 2d physical simulator # # Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/ # Written by Francois Fleuret # # This file is part of flatland # # flatland is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # # flatland is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with flatland. If not, see . # ifeq ($(DEBUG),yes) CXXFLAGS = -fPIC -Wall -g -DDEBUG else CXXFLAGS = -fPIC -Wall -g -O3 endif CXXFLAGS += -I/usr/include/cairo -DCAIRO_SUPPORT LDFLAGS += -lcairo all: flatland_generator.so TAGS TAGS: *.cc *.h etags *.cc *.h flatland_generator.so: \ sequence_generator.o misc.o \ polygon.o universe.o \ canvas.o canvas_cairo.o $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -fPIC -o $@ $^ Makefile.depend: *.h *.cc Makefile $(CC) $(CXXFLAGS) -M *.cc > Makefile.depend clean: \rm -f flatland *.o *.so Makefile.depend -include Makefile.depend