]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - conf/MachineDef.Linux
Adding Geant4 configuration file
[u/mrichter/AliRoot.git] / conf / MachineDef.Linux
index 1e60b54b85ab5dc160a9f4cd73f127b1049617f5..08f432a4af04c31dde10bc2d1a704bc4838be4be 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
 # Which Machine 
 PLATFORM      = linux
 
@@ -8,12 +10,20 @@ CC         = echo $*.c ; gcc
 
 # Global optimisation
 OPT           = -O2
+OPT           = -g
 
 # Shared library suffix
 SL           = so
 
+# AWK
+AWK          = awk
+
 # The options
-CXXOPTS       = $(OPT) -Wall -fPIC  -fno-rtti -fno-exceptions
+#
+# starting from root.2.22 on Linux the flags -fno-rtti -fno-exceptions are
+# not necessary any more
+#
+CXXOPTS       = $(OPT) -Wall -fPIC -pipe
 COPT         = $(OPT)
 FOPT         = $(OPT) -fno-second-underscore
 
@@ -26,9 +36,12 @@ CLIBFOPT      =
 
 # Additional directories for dependencies
 
-DEPINC        = -I/usr/local/include/g++ -I/usr/local/include \
-               -I/usr/local/i686-pc-linux-gnu/include \
-               -I/usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.60/include
+DEPINC       = `rm -f /tmp/d_$$$$.cxx; touch /tmp/d_$$$$.cxx ; \
+                 g++ -v -c /tmp/d_$$$$.cxx -o /dev/null 2>&1 | \
+                 awk 'BEGIN {i=0} {if(substr($$0,1,10)=="End of sea") i=0; \
+                 if(i==1) printf "%s",$$sub(" ","-I")" "; \
+                 if(substr($$0,1,10) == "\#include <") i=1}' ; \
+                 rm /tmp/d_$$$$.cxx`
                
 LD            = g++
 LDFLAGS       = $(OPT)
@@ -37,6 +50,6 @@ SHLD        = $(LD)
 SOFLAGS       = -Wl,-soname,$(notdir $@) -shared 
 SHLIB         = -lg2c
 
-LIBS          = $(ROOTLIBS) -lm -ldl -rdynamic
-GLIBS         = $(ROOTLIBS) $(ROOTGLIBS) -L/usr/X11R6/lib -lX11 -lg2c -ldl -lcrypt -rdynamic
+LIBS          = $(ROOTLIBS) 
+GLIBS         = $(ROOTLIBS) -L/usr/X11R6/lib -lX11 -lg2c -lcrypt