# Sources
-SRCS:= TFluka.cxx source.cxx
-FSRCS:= FLUKA_input.f
-
+ifndef WITH_ROOT
+SRCS:= TFluka.cxx magfld.cxx source.cxx mgdraw.cxx bxdraw.cxx eedraw.cxx \
+ endraw.cxx sodraw.cxx usdraw.cxx FlukaVolume.cxx stupre.cxx \
+ stuprf.cxx \
+ abscff.cxx dffcff.cxx queffc.cxx rflctv.cxx rfrndx.cxx
+# Headers
+HDRS:= TFluka.h FlukaVolume.h
+else
+SRCS:= TFlukaGeo.cxx magfld.cxx source.cxx mgdraw.cxx bxdraw.cxx eedraw.cxx \
+ endraw.cxx sodraw.cxx usdraw.cxx stupre.cxx \
+ stuprf.cxx TFlukaMCGeometry.cxx \
+ abscff.cxx dffcff.cxx queffc.cxx rflctv.cxx rfrndx.cxx
# Headers
-HDRS:= TFluka.h
+HDRS:= TFlukaGeo.h TFlukaMCGeometry.h
+endif
+
+FSRCS:= FLUKA_input.f
# ROOT Dictionary
-DHDR:= TFlukaLinkDef.h
+ifndef WITH_ROOT
+DHDR:= TFlukaLinkDef.h
+else
+DHDR:= TFlukaMCLinkDef.h
+endif
# Extra includes and libraries
-EINCLUDE:= Flugg $(ALICE)/geant4_vmc/include $(G4INSTALL)/include $(CLHEP_BASE_DIR)/include
+ifndef WITH_ROOT
+EINCLUDE:= Flugg $(ALICE)/geant4_vmc/include $(G4INSTALL)/include $(CLHEP_BASE_DIR)/include $(FLUPRO)/flukapro
+else
+EINCLUDE:= $(FLUPRO)/flukapro
+endif
ELIBSDIR:= $(FLUPRO)
ELIBS := flukahp
# If G4DEBUG or G4NO_OPTIMISE are not specified,
# the default compilation is optimised ...
#
+ifndef WITH_ROOT
ifdef G4DEBUG
CXXFLAGS += -DG4DEBUG
else
endif
CXXFLAGS += -DGNU_GCC -DG4USE_STL -DG4USE_STD_NAMESPACE
-
-
+else
+CXXFLAGS += -DGNU_GCC -DWITH_ROOT
+endif