+# Compiler flags
+ifeq ($(CCMAJORV),2)
+CXXFLAGS = $(OPT) -W -Wall -fPIC -pipe
+CXXFLAGSNO = $(NOOPT) -W -Wall -fPIC -pipe
+else
+ifeq ($(CCMAJORV),3)
+CXXFLAGS = $(OPT) -W -Wall -Weffc++ -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux
+CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi
+else
+ifeq ($(CCMAJORV),4)
+CXXFLAGS = $(OPT) -W -Wall -Weffc++ -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux
+CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi
+else
+CXXFLAGS = $(OPT) -W -Wall -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi -Dlinux
+CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi
+endif
+endif
+endif
+CFLAGS = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi
+FFLAGS = $(CLIBFOPT) $(FOPT) -fPIC -fno-second-underscore
+
+ifneq (,$(findstring g95,$(F77)))
+FFLAGS +=-DFORTRAN_G95
+else
+ifneq (,$(findstring gfortran,$(F77)))
+FFLAGS +=-DFORTRAN_GFORTRAN
+else
+FFLAGS +=
+endif
+endif
+
+# rmkdepend flags for building dependencies of FORTRAN files
+DEPENDFFLAGS = $(FFLAGS)
+
+# rootcint flags
+CINTFLAGS =
+
+LD = $(shell root-config --ld)