reorganization of TRD PID reference maker classes. Data management has
[u/mrichter/AliRoot.git] / build / Makefile.linuxicc
... / ...
CommitLineData
1# -*- mode: makefile -*-
2# Makefile for AliRoot for Linux with the Intel icc compiler
3
4# System dependent commands
5
6XARGS = xargs -r
7
8# The compilers
9CXX = $(shell root-config --cxx)
10CC = $(shell root-config --cc)
11F77 = $(shell root-config --f77)
12
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
19# Global optimisation
20OPT = -O -ip
21NOOPT = -O0
22
23CXXOPT = $(OPT) -fPIC
24CXXNOOPT = $(NOOPT) -fPIC
25COPT = $(OPT) -fPIC
26FOPT = $(OPT) -fPIC
27
28# CERNLIB defines
29CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
30CLIBCXXOPTS =
31CLIBCOPT =
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)
41
42# rootcint flags
43CINTFLAGS =
44
45LD = $(shell root-config --ld)
46LDFLAGS = $(OPT)
47
48SHLD = $(LD)
49SOFLAGS = -shared
50SHLIB =
51SOEXT = so
52
53ALLD = ar
54ALFLAGS = cr
55ALLIB =
56AEXT = a
57
58# additional ROOT libraries
59
60LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
61
62#System libraries
63SYSLIBS := -lcrypt -L/usr/X11R6/lib -lX11 $(LIBNOVER) -L/usr/local/lib \
64 -lXt -L$(shell which ifort | sed -e 's|bin|lib|' | sed -e 's|ifort||') \
65 -lifcore -lifport