From: Francois Fleuret Date: Fri, 24 Aug 2012 03:45:32 +0000 (+0200) Subject: The Makefile now accepts VERBOSE=yes. X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mtp.git;a=commitdiff_plain;h=8cec461523e0b48b9ba62c8a1ed6986031d6b74a The Makefile now accepts VERBOSE=yes. --- diff --git a/Makefile b/Makefile index 2264c56..4b71e4b 100644 --- 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 diff --git a/misc.h b/misc.h index f95a8db..b41ca53 100644 --- a/misc.h +++ b/misc.h @@ -21,8 +21,6 @@ #include -#define VERBOSE - typedef float scalar_t; #ifdef DEBUG