libEMCALbase depends on libRAWDatabase
[u/mrichter/AliRoot.git] / build / Makefile.linuxicc
CommitLineData
b934f194 1# Makefile for AliRoot for Linux with the Intel icc compiler
2
6a772515 3# System dependent commands
4
5XARGS = xargs -r
6
1400ecf6 7# The compilers
8CXX = icc
9CC = icc
10
02a1d5c1 11# Compiler version:
12ICC_MAJOR := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
13 cut -d'.' -f1)
14ICC_MINOR := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
15 cut -d'.' -f2)
16
02a1d5c1 17F77 = ifort
02a1d5c1 18
19# Global optimisation
1400ecf6 20OPT = -O -ip
21NOOPT = -O0
02a1d5c1 22
19ca05d1 23CXXOPT = $(OPT)
24CXXNOOPT = $(NOOPT)
02a1d5c1 25COPT = $(OPT)
26FOPT = $(OPT)
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
f393d8ab 45LD = icpc
02a1d5c1 46LDFLAGS = $(OPT)
47
48SHLD = $(LD)
49SOFLAGS = -Wl,-soname,$$TMPLIB -shared $(OPT)
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 \
65d45739 64 -lXt -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \
1400ecf6 65 -lifcore -lifport