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