]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TFluka/libTFluka.pkg
Option to compile with TGeo added (A. Gheata)
[u/mrichter/AliRoot.git] / TFluka / libTFluka.pkg
1 # Sources
2 ifndef WITH_ROOT
3 SRCS:=  TFluka.cxx magfld.cxx source.cxx mgdraw.cxx bxdraw.cxx eedraw.cxx \
4         endraw.cxx sodraw.cxx usdraw.cxx FlukaVolume.cxx stupre.cxx \
5          stuprf.cxx \
6          abscff.cxx dffcff.cxx queffc.cxx rflctv.cxx rfrndx.cxx
7 # Headers
8 HDRS:= TFluka.h FlukaVolume.h 
9 else
10 SRCS:=  TFlukaGeo.cxx magfld.cxx source.cxx mgdraw.cxx bxdraw.cxx eedraw.cxx \
11         endraw.cxx sodraw.cxx usdraw.cxx stupre.cxx \
12          stuprf.cxx TFlukaMCGeometry.cxx \
13          abscff.cxx dffcff.cxx queffc.cxx rflctv.cxx rfrndx.cxx
14 # Headers
15 HDRS:= TFlukaGeo.h TFlukaMCGeometry.h
16 endif
17
18 FSRCS:= FLUKA_input.f
19
20 # ROOT Dictionary
21 ifndef WITH_ROOT
22 DHDR:= TFlukaLinkDef.h
23 else
24 DHDR:= TFlukaMCLinkDef.h
25 endif
26
27 # Extra includes and libraries
28 ifndef WITH_ROOT
29 EINCLUDE:= Flugg $(ALICE)/geant4_vmc/include $(G4INSTALL)/include $(CLHEP_BASE_DIR)/include $(FLUPRO)/flukapro
30 else
31 EINCLUDE:= $(FLUPRO)/flukapro
32 endif
33 ELIBSDIR:= $(FLUPRO)
34 ELIBS   := flukahp
35
36 ######################
37 #Handle Geant4 flags
38 ######################
39
40 # If G4DEBUG or G4NO_OPTIMISE are not specified,
41 # the default compilation is optimised ...
42 #
43 ifndef WITH_ROOT
44 ifdef G4DEBUG
45   CXXFLAGS += -DG4DEBUG
46 else
47   ifndef G4NO_OPTIMISE
48     CXXFLAGS += -DG4OPTIMISE
49   endif
50 endif
51 # Verbosity code can be left out (for better performance)
52 # by defining G4_NO_VERBOSE.
53 #
54 ifndef G4_NO_VERBOSE
55   CXXFLAGS += -DG4VERBOSE
56 endif
57 # Trajectory related classes can be left out (for better performance)
58 # by defining G4_NO_STORE_TRAJECTORY.
59 #
60 ifndef G4_NO_STORE_TRAJECTORY
61   CPPFLAGS += -DG4_STORE_TRAJECTORY
62 endif
63
64 CXXFLAGS += -DGNU_GCC -DG4USE_STL -DG4USE_STD_NAMESPACE
65 else 
66 CXXFLAGS += -DGNU_GCC -DWITH_ROOT
67 endif
68