]> git.uio.no Git - u/mrichter/AliRoot.git/blob - Flugg/libFlugg.pkg
Some updates to handle correctly the Geant4 env flags
[u/mrichter/AliRoot.git] / Flugg / libFlugg.pkg
1 FLUGGDUMMYSRCS := G4SDManager.cxx G4VUserDetectorConstruction.cxx \
2                   G4FastSimulationManager.cxx
3 FLUGGDUMMYHDRS := $(filter-out source.h,$(FLUGGDUMMYSRCS:.cxx=.hh) )
4 FLUGGWRAPSRCS := FGeometryInit.cxx WrapDN.cxx WrapG1.cxx WrapG1RT.cxx \
5                  WrapIncrHist.cxx WrapIniHist.cxx WrapInit.cxx WrapLookDB.cxx \
6                  WrapLookFX.cxx WrapLookMG.cxx WrapLookZ.cxx WrapMag.cxx \
7                  WrapNorml.cxx WrapReg.cxx WrapSavHist.cxx WrapUtils.cxx
8 FLUGGWRAPHDRS := WrapUtils.hh Wrappers.hh NavHistWithCount.hh
9 FLUGGOTHERSRCS := FluggNavigator.cxx
10 FLUGGOTHERHDRS := $(filter-out source.h,$(FLUGGOTHERSRCS:.cxx=.hh) )
11
12
13 # Sources
14 SRCS:= $(FLUGGDUMMYSRCS) $(FLUGGWRAPSRCS) $(FLUGGOTHERSRCS)
15
16
17 # Headers
18 HDRS:=  $(FLUGGDUMMYHDRS) $(FLUGGWRAPHDRS) $(FLUGGOTHERHDRS)
19
20 # ROOT Dictionary
21 # DHDR:=  FluggLinkDef.h
22
23 # Extra includes and libraries
24 EINCLUDE:= Flugg $(G4INSTALL)/include $(CLHEP_BASE_DIR)/include
25 ELIBSDIR:= $(G4INSTALL)/lib/$(G4SYSTEM)
26 ELIBS   := G4brep G4csg G4geomBoolean G4geometrymng G4geomver G4globman \
27            G4graphics_reps G4hepnumerics G4intercoms G4magneticfield \
28            G4materials G4specsolids G4step G4stepinterface G4volumes
29
30 ######################
31 #Handle Geant4 flags
32 ######################
33
34 # If G4DEBUG or G4NO_OPTIMISE are not specified,
35 # the default compilation is optimised ...
36 #
37 ifdef G4DEBUG
38   CXXFLAGS += -DG4DEBUG
39 else
40   ifndef G4NO_OPTIMISE
41     CXXFLAGS += -DG4OPTIMISE
42   endif
43 endif
44 # Verbosity code can be left out (for better performance)
45 # by defining G4_NO_VERBOSE.
46 #
47 ifndef G4_NO_VERBOSE
48   CXXFLAGS += -DG4VERBOSE
49 endif
50 # Trajectory related classes can be left out (for better performance)
51 # by defining G4_NO_STORE_TRAJECTORY.
52 #
53 ifndef G4_NO_STORE_TRAJECTORY
54   CPPFLAGS += -DG4_STORE_TRAJECTORY
55 endif
56
57 # If GEOMETRY_DEBUG is defined, a lot of information is printed out
58 # from FLUGG
59 #
60 ifdef G4GEOMETRY_DEBUG
61   CXXFLAGS += -DG4GEOMETRY_DEBUG
62 endif
63
64 CXXFLAGS += -DGNU_GCC -DG4USE_STL -DG4USE_STD_NAMESPACE
65