From 8ba1550e401b3b67a046e2173b4143c8f51bd933 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Fri, 16 Oct 2009 04:12:56 -0700 Subject: makefile: add 'REPORT' flag, for compile time profiling Signed-off-by: Steven Noonan --- crawl-ref/source/makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/makefile') diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile index 0cf67f770c..55a516ea56 100644 --- a/crawl-ref/source/makefile +++ b/crawl-ref/source/makefile @@ -480,7 +480,6 @@ LIB += -l$(LIBCURS) endif USE_ICC := n - ifneq ($(USE_ICC),n) GCC := icc GXX := icpc @@ -490,6 +489,11 @@ CFWARN := -wd383,810,869,981,1418 -we14,193,304 CFWARN_L := endif +REPORT := n +ifneq ($(REPORT),n) +CFOTHERS += -ftime-report +endif + CFLAGS := $(CFOPTIMIZE) $(CFOTHERS) $(CFWARN) CFLAGS_L := $(CFOPTIMIZE_L) $(DEFINES_L) $(CFWARN_L) $(INCLUDES_L) $(CFOTHERS_L) YCFLAGS := -w -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -- cgit v1.2.3-54-g00ecf