add case for icc v8.
[u/mrichter/AliRoot.git] / build / Makefile.icc
CommitLineData
db5a919c 1PLATFORM:=linuxicc
2
8ff16e9d 3# The C/C++ compilers
4CXX = icc
5CC = icc
6
7# Compiler version:
8ICC_MAJOR := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
9 cut -d'.' -f1)
10ICC_MINOR := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
11 cut -d'.' -f2)
12
13# The Fortran compiler
14ifeq ($(ICC_MAJOR),8)
15F77 = ifort
16else
17F77 = ifc
18endif
db5a919c 19
20# Global optimisation
21OPT = -O -g
22
23CXXOPTS = $(OPT)
8ff16e9d 24COPT = $(OPT)
25FOPT = $(OPT)
db5a919c 26CXXFLAGS = $(CXXOPTS)
8ff16e9d 27CFLAGS = $(COPT)
db5a919c 28
29# rootcint flags
8ff16e9d 30CINTFLAGS =
db5a919c 31
32# CERNLIB defines
33
34CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
35CLIBCXXOPTS =
36CLIBCOPT =
37CLIBFOPT =
38
39# Common Fortran compilation flags
8ff16e9d 40FFLAGS = $(CLIBFOPT) $(CLIBDEFS) $(FOPT)
db5a919c 41
42LD = icc
8ff16e9d 43LDFLAGS = $(OPT)
db5a919c 44
8ff16e9d 45SHLD = $(LD)
58dd68a0 46SOFLAGS = -Wl,-soname,$$TMPLIB -shared $(OPT)
db5a919c 47SHLIB =
48SOEXT = so
49
8ff16e9d 50ALLD = ar
2d8cad5a 51ALFLAGS = cr
8ff16e9d 52ALLIB =
2d8cad5a 53AEXT = a
54
db5a919c 55# additional ROOT libraries
8ff16e9d 56ROOTLIBS += -lcrypt
db5a919c 57
58# rmkdepend flags for building dependencies of FORTRAN files
8ff16e9d 59DEPENDFFLAGS = $(FFLAGS)
db5a919c 60
61LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
2d8cad5a 62GLIBS = $(LIBNOVER)
db5a919c 63
64#System libraries
65SYSLIBS =
66
8ff16e9d 67EXEFLAGS += -L/usr/local/lib -lXt
68ifeq ($(ICC_MAJOR),8)
69EXEFLAGS += -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \
70 -lifcore
71else
72EXEFLAGS += -L$(shell which ifc | sed -e 's|bin/ifc|lib|') \
73 -lF90 -lCEPCF90 -lintrins
74endif