-# dyncnn is a deep-learning algorithm for the prediction of
-# interacting object dynamics
#
-# Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/
-# Written by Francois Fleuret <francois.fleuret@idiap.ch>
+# flatland is a simple 2d physical simulator
#
-# This file is part of dyncnn.
+# Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/
+# Written by Francois Fleuret <francois.fleuret@idiap.ch>
#
-# dyncnn 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.
+# This file is part of flatland
#
-# dyncnn 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.
+# 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 <http://www.gnu.org/licenses/>.
#
-# You should have received a copy of the GNU General Public License
-# along with dyncnn. If not, see <http://www.gnu.org/licenses/>.
ifeq ($(DEBUG),yes)
CXXFLAGS = -fPIC -Wall -g -DDEBUG
LDFLAGS += -lcairo
-all: flatland_generator.so TAGS
+all: flatland TAGS
TAGS: *.cc *.h
etags *.cc *.h
-flatland_generator.so: sequence_generator.o misc.o \
- universe.o \
- polygon.o \
+flatland: libflatland.so
+ ./build.py
+
+libflatland.so: \
+ sequence_generator.o misc.o \
+ polygon.o universe.o \
canvas.o canvas_cairo.o
$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -fPIC -o $@ $^
$(CC) $(CXXFLAGS) -M *.cc > Makefile.depend
clean:
- \rm -f flatland *.o *.so Makefile.depend
+ \rm -rf flatland *.o *.so Makefile.depend
-include Makefile.depend