summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-16 04:12:56 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-16 04:13:47 -0700
commit8ba1550e401b3b67a046e2173b4143c8f51bd933 (patch)
tree6d5153d0a084ae15e11322137f3380e249bbc993 /crawl-ref/source/makefile
parent3d01612472303c2c4d9d54316ef348a9baaa222e (diff)
downloadcrawl-ref-8ba1550e401b3b67a046e2173b4143c8f51bd933.tar.gz
crawl-ref-8ba1550e401b3b67a046e2173b4143c8f51bd933.zip
makefile: add 'REPORT' flag, for compile time profiling
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r--crawl-ref/source/makefile6
1 files changed, 5 insertions, 1 deletions
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