summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-13 02:46:13 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-13 02:46:13 -0700
commit0172282f4d39f0d2c4b6a6ad6a786fc61493f847 (patch)
tree5ee222c7bae82d655d23a62fa58e682d61d2d561 /crawl-ref/source/makefile
parent3ecee91a571ddbcaa7fb2dc8f041bfe75dadee4d (diff)
downloadcrawl-ref-0172282f4d39f0d2c4b6a6ad6a786fc61493f847.tar.gz
crawl-ref-0172282f4d39f0d2c4b6a6ad6a786fc61493f847.zip
makefile: add ICC support through use of USE_ICC=y flag
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r--crawl-ref/source/makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile
index 450ee573c5..9e95773c80 100644
--- a/crawl-ref/source/makefile
+++ b/crawl-ref/source/makefile
@@ -27,8 +27,8 @@ GAME = crawl
# These are good optimizations for a Pentium M or better:
#CFOPTIMIZE := -O2 -march=i686 -mtune=i686 -mmmx -msse -msse2 -mfpmath=sse -funroll-all-loops
# These are really good options for the Intel C++ compiler:
-#CFOPTIMIZE := -O3 -parallel
-CFOPTIMIZE := -O2 -funroll-all-loops
+#CFOPTIMIZE := -O2 -parallel
+CFOPTIMIZE := -O2
CFOTHERS := -fno-strict-aliasing -pipe
CFOTHERS_L := -fsigned-char
CFWARN := -Wall
@@ -36,11 +36,13 @@ CFWARN := -Wall
#
# The GCC and GXX variables are set later.
#
+AR = ar rcu
CC = $(GCC)
CXX = $(GXX)
DELETE = rm -f
COPY = cp
+export AR
export CC
export CXX
export CFLAGS
@@ -210,6 +212,15 @@ GCC := gcc
GXX := g++
endif
+USE_ICC := n
+
+ifneq ($(USE_ICC),n)
+GCC := icc
+GXX := icpc
+AR := xiar rcu
+CFWARN += -wd981
+endif
+
RLTILES = rltiles
#
@@ -340,6 +351,10 @@ endif # TILES
CFWARN_L := -Wno-parentheses -Wwrite-strings -Wshadow -pedantic
CFOTHERS_L = $(EXTERNAL_FLAGS) $(EXTRA_FLAGS) $(DEFINES) -DCLUA_BINDINGS $(SDL_CFLAGS)
+ifneq ($(USE_ICC),n)
+LIB += -lguide -lpthread
+endif
+
#
# Figure out the build settings for this type of build
#