]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - build/Makefile.linuxia64gcc
fix for Savannah reprted bug to write Digits tree even if was no Hits
[u/mrichter/AliRoot.git] / build / Makefile.linuxia64gcc
index aff5c8026ecbf64f9100ab90af35a68a36424f64..910780cf9a76e25ca4ebd505536b409109b343a0 100644 (file)
@@ -1,12 +1,17 @@
+# -*- mode: makefile -*-
 # Makefile for AliRoot for Itanium/Linux with gcc
 
+# System dependent commands
+
+XARGS = xargs -r
+
 # The compilers
-CXX           = g++ 
-F77          = g77
-CC           = gcc
+CXX           = $(shell root-config --cxx) 
+F77          = $(shell root-config --f77)
+CC           = $(shell root-config --cc)
 
 # Global optimisation
-OPT           = -g #-O
+OPT           = -g -O
 NOOPT         = -g
 
 CXXOPT        = $(OPT)
@@ -21,8 +26,8 @@ CLIBCOPT      =
 CLIBFOPT      = $(CLIBDEFS)
 
 # Compiler flags
-CXXFLAGS      = $(CXXOPT)  -Wall -fPIC -pipe
-CXXFLAGSNO    = $(CXXNOOPT)  -Wall -fPIC -pipe
+CXXFLAGS      = $(CXXOPT)  -Wall -Weffc++ -fPIC -pipe
+CXXFLAGSNO    = $(CXXNOOPT)  -Wall -Weffc++ -fPIC -pipe
 CFLAGS       = -Wall -fPIC -pipe
 FFLAGS        = $(CLIBFOPT) $(FOPT) -fno-second-underscore
 # rmkdepend flags for building dependencies of FORTRAN files
@@ -31,11 +36,11 @@ DEPENDFFLAGS = $(FFLAGS)
 # rootcint flags
 CINTFLAGS     = 
 
-LD            = g++
+LD            = $(shell root-config --ld)
 LDFLAGS       = $(OPT) -Wl,-Map -Wl,$@.map
 
 SHLD         = $(LD)
-SOFLAGS       = -shared -Wl #-O2
+SOFLAGS       = -shared -Wl -O2
 SOEXT        = so
 
 ALLD         = ar