]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - build/Makefile.linuxicc
Reducing ZDC pedestal OCDB to 1 object
[u/mrichter/AliRoot.git] / build / Makefile.linuxicc
index c47ba493c7badbdc9896dec6e89f1d06c330f8e3..b681d30b46da628898ce2bc10d46d4190a6e60e9 100644 (file)
@@ -1,29 +1,24 @@
+# -*- mode: makefile -*-
 # Makefile for AliRoot for Linux with the Intel icc compiler
 
 # System dependent commands
 
 XARGS = xargs -r
 
-# The compilers
-CXX           = icc
-CC            = icc
-
 # Compiler version:
 ICC_MAJOR    := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
                 cut -d'.' -f1)
 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 +37,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 +56,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