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