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