]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - build/Makefile.linux
Call to fRunLoader->LoadHeader(); added in InitRunLoader(). In this way the run header
[u/mrichter/AliRoot.git] / build / Makefile.linux
index f8876c797e8a2c24f7d06515d40befa067d17919..8a0632ab82052079f967e47ded1e7cd6c2483f63 100644 (file)
@@ -1,5 +1,9 @@
 # Makefile to build AliRoot for Linux
 
+# System dependent commands
+
+XARGS = xargs -r
+
 # The compilers
 CXX           = g++ 
 F77          = g77
@@ -27,8 +31,13 @@ ifeq ($(CCMAJORV),2)
 CXXFLAGS       = $(OPT) -W -Wall -fPIC -pipe
 CXXFLAGSNO     = $(NOOPT) -W -Wall -fPIC -pipe
 else
-CXXFLAGS       = $(OPT) -W -Wall -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux
-CXXFLAGSNO     = $(NOOPT) -W -Wall -Werror -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi
+ifeq ($(CCMAJORV),3)
+CXXFLAGS       = $(OPT) -W -Wall -Weffc++ -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux
+CXXFLAGSNO     = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi
+else
+CXXFLAGS       = $(OPT) -W -Wall -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi -Dlinux
+CXXFLAGSNO     = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi
+endif
 endif
 CFLAGS        = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi
 FFLAGS         = $(CLIBFOPT) $(FOPT) -fno-second-underscore
@@ -53,10 +62,8 @@ AEXT               = a
 
 # additional ROOT libraries
 
-LIBNOVER      = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
-
 #System libraries
-SYSLIBS      := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11  $(LIBNOVER)
+SYSLIBS      := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11