The Makefile now accepts VERBOSE=yes.
[mtp.git] / Makefile
index 2264c56..4b71e4b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -29,11 +29,15 @@ 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