25-may-2005 NvE Declaration of unused variable pi removed in AliMath::StudentDist...
[u/mrichter/AliRoot.git] / build / Makefile.linuxicc
CommitLineData
b934f194 1# Makefile for AliRoot for Linux with the Intel icc compiler
2
1400ecf6 3# The compilers
4CXX = icc
5CC = icc
6
02a1d5c1 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
02a1d5c1 13ifeq ($(ICC_MAJOR),8)
14F77 = ifort
15else
16F77 = ifc
17endif
18
19# Global optimisation
1400ecf6 20OPT = -O -ip
21NOOPT = -O0
02a1d5c1 22
19ca05d1 23CXXOPT = $(OPT)
24CXXNOOPT = $(NOOPT)
02a1d5c1 25COPT = $(OPT)
26FOPT = $(OPT)
02a1d5c1 27
28# CERNLIB defines
02a1d5c1 29CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
30CLIBCXXOPTS =
31CLIBCOPT =
19ca05d1 32CLIBFOPT = $(CLIBDEFS)
33
34# Compiler flags
35CXXFLAGS = $(CXXOPT)
36CXXFLAGSNO = $(CXXNOOPT)
37CFLAGS = $(COPT)
38FFLAGS = $(CLIBFOPT) $(FOPT)
39# rmkdepend flags for building dependencies of FORTRAN files
40DEPENDFFLAGS = $(FFLAGS)
02a1d5c1 41
19ca05d1 42# rootcint flags
43CINTFLAGS =
02a1d5c1 44
45LD = icc
46LDFLAGS = $(OPT)
47
48SHLD = $(LD)
49SOFLAGS = -Wl,-soname,$$TMPLIB -shared $(OPT)
50SHLIB =
51SOEXT = so
52
53ALLD = ar
54ALFLAGS = cr
55ALLIB =
56AEXT = a
57
58# additional ROOT libraries
59ROOTLIBS += -lcrypt
60
02a1d5c1 61LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
62GLIBS = $(LIBNOVER)
63
64#System libraries
65SYSLIBS =
66
67EXEFLAGS += -L/usr/local/lib -lXt
68ifeq ($(ICC_MAJOR),8)
69EXEFLAGS += -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \
1400ecf6 70 -lifcore -lifport
02a1d5c1 71else
72EXEFLAGS += -L$(shell which ifc | sed -e 's|bin/ifc|lib|') \
73 -lF90 -lCEPCF90 -lintrins
74endif