reorganization of TRD PID reference maker classes. Data management has
[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
5f30d16c 9CXX = $(shell root-config --cxx)
10CC = $(shell root-config --cc)
11F77 = $(shell root-config --f77)
1400ecf6 12
02a1d5c1 13# Compiler version:
14ICC_MAJOR := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
15 cut -d'.' -f1)
16ICC_MINOR := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
17 cut -d'.' -f2)
18
02a1d5c1 19# Global optimisation
1400ecf6 20OPT = -O -ip
21NOOPT = -O0
02a1d5c1 22
7da191b6 23CXXOPT = $(OPT) -fPIC
24CXXNOOPT = $(NOOPT) -fPIC
25COPT = $(OPT) -fPIC
26FOPT = $(OPT) -fPIC
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
5f30d16c 45LD = $(shell root-config --ld)
02a1d5c1 46LDFLAGS = $(OPT)
47
48SHLD = $(LD)
7da191b6 49SOFLAGS = -shared
02a1d5c1 50SHLIB =
51SOEXT = so
52
53ALLD = ar
54ALFLAGS = cr
55ALLIB =
56AEXT = a
57
58# additional ROOT libraries
02a1d5c1 59
02a1d5c1 60LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
02a1d5c1 61
62#System libraries
de6c7cfd 63SYSLIBS := -lcrypt -L/usr/X11R6/lib -lX11 $(LIBNOVER) -L/usr/local/lib \
7da191b6 64 -lXt -L$(shell which ifort | sed -e 's|bin|lib|' | sed -e 's|ifort||') \
1400ecf6 65 -lifcore -lifport