From 983d9a3ce4ba37266af4e3851b3a8c498b892c3c Mon Sep 17 00:00:00 2001 From: iglez2 Date: Fri, 8 Nov 2002 16:20:48 +0000 Subject: [PATCH] Some updates to handle correctly the Geant4 env flags --- Flugg/libFlugg.pkg | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/Flugg/libFlugg.pkg b/Flugg/libFlugg.pkg index a229fba98db..5767c12011c 100644 --- a/Flugg/libFlugg.pkg +++ b/Flugg/libFlugg.pkg @@ -27,4 +27,39 @@ ELIBS := G4brep G4csg G4geomBoolean G4geometrymng G4geomver G4globman \ G4graphics_reps G4hepnumerics G4intercoms G4magneticfield \ G4materials G4specsolids G4step G4stepinterface G4volumes -CXXFLAGS += -fno-for-scope -DGNU_GCC -DGEOMETRY_DEBUG -DG4OPTIMISE -DG4USE_STL -DG4USE_STD_NAMESPACE -DG4VERBOSE -DG4_STORE_TRAJECTORY \ No newline at end of file +###################### +#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 +endif +# Verbosity code can be left out (for better performance) +# by defining G4_NO_VERBOSE. +# +ifndef G4_NO_VERBOSE + CXXFLAGS += -DG4VERBOSE +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 +endif + +# If GEOMETRY_DEBUG is defined, a lot of information is printed out +# from FLUGG +# +ifdef G4GEOMETRY_DEBUG + CXXFLAGS += -DG4GEOMETRY_DEBUG +endif + +CXXFLAGS += -DGNU_GCC -DG4USE_STL -DG4USE_STD_NAMESPACE + -- 2.39.3