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