]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - build/Makefile.linuxicc
Added deletions of AliPID object to avoid meamory leak
[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# Compiler version:
9ICC_MAJOR := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
10 cut -d'.' -f1)
11ICC_MINOR := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
12 cut -d'.' -f2)
13
14# Global optimisation
15OPT = -O -ip
16NOOPT = -O0
17
18CXXOPT = $(OPT) -fPIC
19CXXNOOPT = $(NOOPT) -fPIC
20COPT = $(OPT) -fPIC
21FOPT = $(OPT) -fPIC
22
23# CERNLIB defines
24CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
25CLIBCXXOPTS =
26CLIBCOPT =
27CLIBFOPT = $(CLIBDEFS)
28
29# Compiler flags
30CXXFLAGS = $(CXXOPT)
31CXXFLAGSNO = $(CXXNOOPT)
32CFLAGS = $(COPT)
33FFLAGS = $(CLIBFOPT) $(FOPT)
34# rmkdepend flags for building dependencies of FORTRAN files
35DEPENDFFLAGS = $(FFLAGS)
36
37# rootcint flags
38CINTFLAGS =
39
40LD = $(shell root-config --ld)
41LDFLAGS = $(OPT)
42
43SHLD = $(LD)
44SOFLAGS = -shared
45SHLIB =
46SOEXT = so
47
48ALLD = ar
49ALFLAGS = cr
50ALLIB =
51AEXT = a
52
53# additional ROOT libraries
54
55LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
56
57#System libraries
58SYSLIBS := -lcrypt -L/usr/X11R6/lib -lX11 $(LIBNOVER) -L/usr/local/lib \
59 -lXt -L$(shell which ifort | sed -e 's|bin|lib|' | sed -e 's|ifort||') \
60 -lifcore -lifport