From 0172282f4d39f0d2c4b6a6ad6a786fc61493f847 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Tue, 13 Oct 2009 02:46:13 -0700 Subject: makefile: add ICC support through use of USE_ICC=y flag Signed-off-by: Steven Noonan --- crawl-ref/source/makefile | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/makefile') 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 # -- cgit v1.2.3-54-g00ecf