# ====================================================================== # # HepTuple root library-building GNUmakefile # # ====================================================================== # ---------------------------------------------------------------------- # Identify the target library: # ---------------------------------------------------------------------- LIB = libRootHepTuple.a #override SHELL := bash -x # ---------------------------------------------------------------------- # Identify the sources from which to build the library's contents: # ---------------------------------------------------------------------- LIBCCFILES = $(wildcard *.cc) # ---------------------------------------------------------------------- # Connect to other packages: # ---------------------------------------------------------------------- USE_ISOCXX = true ifneq (GCC,$(findstring GCC,$(SRT_CXX))) # For now disable ISOCXX for everything BUT gcc! USE_ISOCXX = false endif include SoftRelTools/standard.mk include SoftRelTools/arch_spec_STL.mk include SoftRelTools/refresh.mk include Exceptions/arch_spec_Exceptions.mk # ---------------------------------------------------------------------- # Deal with different ROOT versions # ---------------------------------------------------------------------- ifeq (,$(ROOTRELEASE)) ROOTRELEASE := $(shell root-config --version | awk -F '[/]' '{print $$1}') export ROOTRELEASE endif ifeq (,$(ROOTMAJOR)) ROOTMAJOR := $(shell root-config --version | awk -F '[./]' '{print $$1}') export ROOTMAJOR endif ROOTLIBS = -lCore -lCint -lTree ROOTGLIBS = ifeq (2,$(ROOTMAJOR)) ifeq (2.26,$(ROOTRELEASE)) override CPPFLAGS += -DROOT_2_26 else ifeq (2.25,$(ROOTRELEASE)) override CPPFLAGS += -DROOT_2_25 else ifeq (2.24,$(ROOTRELEASE)) override CPPFLAGS += -DROOT_2_24 else ifeq (2.23,$(ROOTRELEASE)) override CPPFLAGS += -DROOT_2_23 else ifeq (2.22,$(ROOTRELEASE)) override CPPFLAGS += -DROOT_2_22 endif endif endif endif endif endif #=========================================================== # Define ROOT_CONST macro - bridge for methods that used to # not be declared const in ROOT v2, but now are in v3 #=========================================================== ifeq (2,$(ROOTMAJOR)) override CPPFLAGS += -DNO_ROOT_CONST endif # ---------------------------------------------------------------------- # Make environment-dependent adaptations: # ---------------------------------------------------------------------- # Force optimization OFF and symbols ON for debugging ifdef SYMBOLS ifneq (,$(findstring GCC,$(SRT_CXX))) override CXXFLAGS := $(patsubst -O%,-ggdb3,$(CXXFLAGS)) override CXXFLAGS := $(patsubst -O, -ggdb3,$(CXXFLAGS)) endif endif ifeq (-KCC,$(findstring -KCC,$(BFARCH))) override CXXFLAGS += --display_error_number --diag_suppress 610,611,553,177 override CXXFLAGS += --diag_suppress nonstd_long_long endif ifeq (NT,$(findstring NT,$(BFARCH))) override CPPFLAGS += -I$$ROOTSYS\\\\include else override CPPFLAGS += -I$(ROOTSYS)/include endif #override CPPFLAGS += -DHEPTRACE ifneq (,$(findstring IRIX,$(SRT_ARCH))) ifneq (,$(findstring KCC,$(SRT_CXX))) override CXXFLAGS += --backend -OPT:Olimit=0 override CCFLAGS += --backend -OPT:Olimit=0 endif endif # ======================================================================