]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - build/Makefile.linuxicc
Changes for MacOSX
[u/mrichter/AliRoot.git] / build / Makefile.linuxicc
index 7db7211efc0199cb87e4bac677858046755bbd34..7fbd75507bd91a3cc71612e4c48f3c5a6a6eb7f7 100644 (file)
@@ -1,8 +1,6 @@
 # Makefile for AliRoot for Linux with the Intel icc compiler
 
-PLATFORM      = linux
-
-# The C/C++ compilers
+# The compilers
 CXX           = icc
 CC            = icc
 
@@ -12,7 +10,6 @@ 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)
 
-# The Fortran compiler
 ifeq ($(ICC_MAJOR),8)
 F77           = ifort
 else
@@ -20,26 +17,30 @@ F77           = ifc
 endif
 
 # Global optimisation
-OPT           = -O -g
+OPT           = -O -ip
+NOOPT         = -O0
 
-CXXOPTS       = $(OPT)
+CXXOPT        = $(OPT)
+CXXNOOPT      = $(NOOPT)
 COPT          = $(OPT)
 FOPT          = $(OPT)
-CXXFLAGS      = $(CXXOPTS)
-CFLAGS        = $(COPT)
-
-# rootcint flags
-CINTFLAGS     =
 
 # CERNLIB defines
-
 CLIBDEFS      = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
 CLIBCXXOPTS   =
 CLIBCOPT      =
-CLIBFOPT      =
+CLIBFOPT      = $(CLIBDEFS)
 
-# Common Fortran compilation flags
-FFLAGS = $(CLIBFOPT) $(CLIBDEFS) $(FOPT)
+# Compiler flags
+CXXFLAGS      = $(CXXOPT)
+CXXFLAGSNO    = $(CXXNOOPT)
+CFLAGS        = $(COPT)
+FFLAGS        = $(CLIBFOPT) $(FOPT)
+# rmkdepend flags for building dependencies of FORTRAN files
+DEPENDFFLAGS  = $(FFLAGS)
+
+# rootcint flags
+CINTFLAGS     =
 
 LD            = icc
 LDFLAGS       = $(OPT)
@@ -57,9 +58,6 @@ AEXT        = a
 # additional ROOT libraries
 ROOTLIBS     += -lcrypt
 
-# rmkdepend flags for building dependencies of FORTRAN files
-DEPENDFFLAGS  = $(FFLAGS)
-
 LIBNOVER      = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
 GLIBS         = $(LIBNOVER)
 
@@ -69,7 +67,7 @@ SYSLIBS =
 EXEFLAGS     += -L/usr/local/lib -lXt
 ifeq ($(ICC_MAJOR),8)
 EXEFLAGS     += -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \
-                -lifcore
+                -lifcore -lifport
 else
 EXEFLAGS     += -L$(shell which ifc | sed -e 's|bin/ifc|lib|') \
                 -lF90 -lCEPCF90 -lintrins