]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TFluka/libTFluka.pkg
New ion numbering convention according to
[u/mrichter/AliRoot.git] / TFluka / libTFluka.pkg
index 8a5403ff99a7035d71ecf7d87fa90f98d4fdb8a3..8e44e0f2a453ed042d8524673a5ab44db1eff4a0 100644 (file)
@@ -1,46 +1,66 @@
 # Sources
-SRCS:=  TFluka.cxx source.cxx mgdraw.cxx bxdraw.cxx eedraw.cxx endraw.cxx sodraw.cxx usdraw.cxx FlukaVolume.cxx
-FSRCS:= FLUKA_input.f 
+SRCS:=  TFluka.cxx TFlukaMCGeometry.cxx TFlukaCerenkov.cxx \
+       TFlukaConfigOption.cxx TFlukaScoringOption.cxx\
+        magfld.cxx source.cxx mgdraw.cxx bxdraw.cxx eedraw.cxx \
+       endraw.cxx sodraw.cxx usdraw.cxx stupre.cxx stuprf.cxx \
+       abscff.cxx dffcff.cxx queffc.cxx rflctv.cxx rfrndx.cxx 
 
 # Headers
-HDRS:= TFluka.h FlukaVolume.h
+HDRS:= TFluka.h TFlukaMCGeometry.h TFlukaCerenkov.h TFlukaConfigOption.h \
+       TFlukaScoringOption.h
 
-# ROOT Dictionary
-DHDR:=  TFlukaLinkDef.h
+FSRCS:= FLUKA_input.f crnkvp.f
 
-# Extra includes and libraries
-EINCLUDE:= Flugg $(ALICE)/geant4_vmc/include $(G4INSTALL)/include $(CLHEP_BASE_DIR)/include
-ELIBSDIR:= $(FLUPRO)
-ELIBS   := flukahp
+ifeq ($(FLUSCW),1MEVN)
+       FSRCS+=fluscw_1mevn.f
+endif
 
-######################
-#Handle Geant4 flags
-######################
-
-# If G4DEBUG or G4NO_OPTIMISE are not specified,
-# the default compilation is optimised ...
-#
-ifdef G4DEBUG
-  CXXFLAGS += -DG4DEBUG
-else
-  ifndef G4NO_OPTIMISE
-    CXXFLAGS += -DG4OPTIMISE
-  endif
+ifeq ($(FLUSCW),DEQ99C)
+       FSRCS+=fluscw_deq99c.f
 endif
-# Verbosity code can be left out (for better performance)
-# by defining G4_NO_VERBOSE.
-#
-ifndef G4_NO_VERBOSE
-  CXXFLAGS += -DG4VERBOSE
+
+ifeq ($(COMSCW),DEFAULT)
+       SRCS+=comscw.cxx
 endif
-# Trajectory related classes can be left out (for better performance)
-# by defining G4_NO_STORE_TRAJECTORY.
-#
-ifndef G4_NO_STORE_TRAJECTORY
-  CPPFLAGS += -DG4_STORE_TRAJECTORY
+
+ifeq ($(COMSCW),ACTIVITY)
+       FSRCS+=comscw_activity.f
 endif
 
-CXXFLAGS += -DGNU_GCC -DG4USE_STL -DG4USE_STD_NAMESPACE
 
+# ROOT Dictionary
+DHDR:= TFlukaLinkDef.h
+
+# Extra includes and libraries
+EINCLUDE:= $(FLUPRO)/flukapro $(FLUPRO)/emfadd $(FLUPRO)/flukaadd
+ELIBSDIR:= $(FLUPRO)
+ELIBS   := flukahp
+
+ifeq (g95,$(findstring g95,$(ROOTBUILD)))
+ELIBS        += f95
+ELIBSDIR      += $(shell find /sw/lib -name libf95.a | xargs dirname)
+PACKDYFLAGS   := $(DYFLAGS)     \
+        -Wl,-u,_bdandi \
+        -Wl,-u,_bdevap \
+        -Wl,-u,_bdhdr1 \
+        -Wl,-u,_bdhdr2 \
+        -Wl,-u,_bdhdr3 \
+        -Wl,-u,_bdinpt \
+        -Wl,-u,_bdmuls \
+        -Wl,-u,_bdnopt \
+        -Wl,-u,_bdpart \
+        -Wl,-u,_bdphfl \
+        -Wl,-u,_bdprdc \
+        -Wl,-u,_bdpwxs \
+        -Wl,-u,_bdrndm \
+        -Wl,-u,_bdsqzi \
+        -Wl,-u,_bdtrns \
+        -Wl,-u,_countr \
+        -Wl,-u,_elproi \
+        -Wl,-u,_hadini \
+        -Wl,-u,_bdgtfr \
+        -Wl,-u,_bdpree 
+
+endif