]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - build/Makefile.linuxicc
Access to the file analyzed available now in analysis classes through the reader...
[u/mrichter/AliRoot.git] / build / Makefile.linuxicc
index c47ba493c7badbdc9896dec6e89f1d06c330f8e3..8dc9cd96c7881a5169db2025fdf91f486f644210 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: makefile -*-
 # Makefile for AliRoot for Linux with the Intel icc compiler
 
 # System dependent commands
@@ -5,8 +6,9 @@
 XARGS = xargs -r
 
 # The compilers
-CXX           = icc
-CC            = icc
+CXX           = $(shell root-config --cxx)
+CC            = $(shell root-config --cc)
+F77          = $(shell root-config --f77)
 
 # Compiler version:
 ICC_MAJOR    := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
@@ -14,16 +16,14 @@ ICC_MAJOR    := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
 ICC_MINOR    := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
                 cut -d'.' -f2)
 
-F77           = ifort
-
 # Global optimisation
 OPT           = -O -ip
 NOOPT         = -O0
 
-CXXOPT        = $(OPT)
-CXXNOOPT      = $(NOOPT)
-COPT          = $(OPT)
-FOPT          = $(OPT)
+CXXOPT        = $(OPT) -fPIC
+CXXNOOPT      = $(NOOPT) -fPIC
+COPT          = $(OPT) -fPIC
+FOPT          = $(OPT) -fPIC
 
 # CERNLIB defines
 CLIBDEFS      = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
@@ -42,11 +42,11 @@ DEPENDFFLAGS  = $(FFLAGS)
 # rootcint flags
 CINTFLAGS     =
 
-LD            = icpc
+LD            = $(shell root-config --ld)
 LDFLAGS       = $(OPT)
 
 SHLD          = $(LD)
-SOFLAGS       = -Wl,-soname,$$TMPLIB -shared $(OPT)
+SOFLAGS       = -shared
 SHLIB         =
 SOEXT        = so
 
@@ -61,5 +61,5 @@ LIBNOVER      = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {
 
 #System libraries
 SYSLIBS      := -lcrypt -L/usr/X11R6/lib -lX11 $(LIBNOVER) -L/usr/local/lib \
-                -lXt -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \
+                -lXt -L$(shell which ifort | sed -e 's|bin|lib|' | sed -e 's|ifort||') \
                 -lifcore -lifport