X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=e8cad3ae0095ee811cffb9ef40d2c5b442ef3245;hb=53da5d9421597dfc056b5727dbe7898afd30bdc9;hp=d7c5225067d65f8a8c18b7f1640570f0911dc27d;hpb=425acf9068dac38bccb97b12f1b423db5787e294;p=mtp.git
diff --git a/Makefile b/Makefile
index d7c5225..e8cad3a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,26 +1,28 @@
-#########################################################################
-# This program is free software: you can redistribute it and/or modify #
-# it under the terms of the version 3 of the GNU General Public License #
-# as published by the Free Software Foundation. #
-# #
-# This program 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 this program. If not, see . #
-# #
-# Written by Francois Fleuret #
-# Copyright (C) Idiap Research Institute #
-# Contact for comments & bug reports #
-#########################################################################
+# mtp is the ``Multi Tracked Paths'', an implementation of the
+# k-shortest paths algorithm for multi-target tracking.
+#
+# Copyright (c) 2012 Idiap Research Institute, http://www.idiap.ch/
+# Written by Francois Fleuret
+#
+# This file is part of mtp.
+#
+# mtp 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.
+#
+# mtp 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 selector. If not, see .
ifeq ($(STATIC),yes)
- LDFLAGS=-static -lm -ljpeg -lpng -lz -lcairo
+ LDFLAGS=-static -lm
else
- LDFLAGS=-lm -ljpeg -lpng -lcairo
+ LDFLAGS=-lm
endif
ifeq ($(DEBUG),yes)
@@ -29,29 +31,41 @@ else
OPTIMIZE_FLAG = -ggdb3 -O3
endif
+ifeq ($(VERBOSE),yes)
+ VERBOSE_FLAG = -DVERBOSE
+endif
+
ifeq ($(PROFILE),yes)
PROFILE_FLAG = -pg
endif
-CXXFLAGS = -Wall -I/usr/include/cairo $(OPTIMIZE_FLAG) $(PROFILE_FLAG) $(CXXGLPK)
+CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG) $(VERBOSE_FLAG)
-all: mtp miniksp
+all: mtp mtp_example
TAGS: *.cc *.h
etags --members -l c++ *.cc *.h
+random-graph: \
+ random-graph.o
+ $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
+
mtp: \
+ path.o mtp_graph.o \
+ tracker.o \
mtp.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
-miniksp: \
- miniksp.o
+mtp_example: \
+ path.o mtp_graph.o \
+ tracker.o \
+ mtp_example.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
Makefile.depend: *.h *.cc Makefile
$(CC) $(CXXFLAGS) -M *.cc > Makefile.depend
clean:
- \rm -f mtp miniksp *.o Makefile.depend TAGS
+ \rm -f mtp mtp_example *.o Makefile.depend TAGS
-include Makefile.depend