]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - conf/Geant4.gmk
Moved from AliTransbit to AliL3Transbit.
[u/mrichter/AliRoot.git] / conf / Geant4.gmk
index 5548223ac9f6a61838b25a428902ea89d0dba6b1..26e6bb0bc539b5a62d7af17f529ab74d369d3610 100644 (file)
@@ -9,14 +9,6 @@ ifdef AG4_VISUALIZE
   CPPFLAGS  += -DALICE_VISUALIZE
 endif
 
-ifdef AG4_STACKING
-  CPPFLAGS  += -DALICE_STACKING
-endif
-
-ifdef AG4_NOPHYSICS
-  CPPFLAGS  += -DALICE_EMPTY_PHYSICS_LIST
-endif  
-
 #
 # C++ compilation flags
 #
@@ -33,6 +25,9 @@ ifeq ($(ALICE_TARGET),Linux)
             -Wtrigraphs -Wformat -Wchar-subscripts \
             -Wparentheses              
   CXXOPTS := $(patsubst -O%,-O% -Wuninitialized,$(CXXOPTS))
+
+# Motif, Xt libraries
+  G4GLIBS := -L/usr/lib/Motif1.2_R6 -lXm -L/usr/lib -lXt
 endif
 
 ifeq ($(ALICE_TARGET),HP-UX.aCC)
@@ -44,8 +39,31 @@ ifeq ($(ALICE_TARGET),HP-UX.aCC)
   CXXOPTS := $(patsubst -O%,-O% +Onolimit,$(CXXOPTS))
   CXXOPTS := $(patsubst +O%,+O% +Onolimit,$(CXXOPTS))
   CXXOPTS += +DAportable
+
+# Motif, Xt libraries
+  G4GLIBS := -L/usr/lib/Motif1.2_R6 -lXm -L/usr/lib -lXt                   
 endif  
  
+ifeq ($(ALICE_TARGET),OSF1)
+
+  CXXOPTS := $(filter-out -nostdnew,$(CXXOPTS))
+  CXXOPTS := $(filter-out -nortti,$(CXXOPTS))
+  CXXOPTS += -ieee -timplicit_local
+  ifndef G4NO_STD_NAMESPACE
+    G4USE_STD_NAMESPACE := yes
+    CXXOPTS += -std strict_ansi
+  endif
+
+endif  
+
+ifeq ($(ALICE_TARGET),SunOS)
+
+  # Excluded of +w option 
+  # in order to exclude warnings from G4 
+  CXXOPTS := $(filter-out +w,$(CXXOPTS))
+
+endif  
+
 #
 # Geant4 include paths
 #
@@ -129,7 +147,7 @@ ifdef NEED_G4_LIBS
 
 G4TMPDIR := $(G4TMP)/$(G4SYSTEM)/$(G4TARGET)
 G4LIBDIR := $(G4LIB)/$(G4SYSTEM)
-LDFLAGS += -L$(G4LIBDIR)
+LDFLAGS += -L$(G4LIBDIR) -L$(CLHEP_LIB_DIR)
 
 ifdef LDLIBS
   USER_DEFINED_LDLIBS := 1
@@ -188,7 +206,7 @@ endif
 
 # LDLIBS3 contains the first set of low level libraries...
 #
-  LDLIBS3 += $(INTYLIBS)
+  LDLIBS3 += $(INTYLIBS) $(G4GLIBS)
 
 endif # ifndef USER_DEFINED_LDLIBS