X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=bc2a5e26dcf1b8cb9afb171659ab02747875ffa8;hb=68d9c4f175f774d851a32f6069ad04b31924bfac;hp=adcff7245bd701e499952fb028441927ace95eab;hpb=0f54e5005de0f05d4bc400f23181301eb40f469e;p=mtp.git
diff --git a/Makefile b/Makefile
index adcff72..bc2a5e2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,23 @@
-#########################################################################
-# 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 Path'', an implementation of the
+# k-shortest path 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
@@ -29,13 +31,17 @@ else
OPTIMIZE_FLAG = -ggdb3 -O3
endif
+ifeq ($(VERBOSE),yes)
+ VERBOSE_FLAG = -DVERBOSE
+endif
+
ifeq ($(PROFILE),yes)
PROFILE_FLAG = -pg
endif
-CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG)
+CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG) $(VERBOSE_FLAG)
-all: mtp random-graph
+all: mtp mtp_example
TAGS: *.cc *.h
etags --members -l c++ *.cc *.h
@@ -45,15 +51,21 @@ random-graph: \
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
mtp: \
- mtp_graph.o \
+ path.o mtp_graph.o \
tracker.o \
mtp.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
+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 *.o Makefile.depend TAGS
+ \rm -f mtp mtp_example *.o Makefile.depend TAGS
-include Makefile.depend