# ====================================================================== # # HepTuple hbook library-building GNUmakefile # # ====================================================================== # ---------------------------------------------------------------------- # Identify the target library: # ---------------------------------------------------------------------- LIB = libHBookHepTuple.a # ---------------------------------------------------------------------- # Identify the sources from which to build the library's contents: # ---------------------------------------------------------------------- LIBCCFILES = $(wildcard *.cc) LIBFFILES = $(wildcard *.f) $(wildcard *.F) # ---------------------------------------------------------------------- # Connect to other packages: # ---------------------------------------------------------------------- USE_ISOCXX = true include SoftRelTools/standard.mk include SoftRelTools/arch_spec_STL.mk include SoftRelTools/arch_spec_cern.mk include SoftRelTools/arch_spec_f77.mk include SoftRelTools/refresh.mk include Exceptions/arch_spec_Exceptions.mk # ---------------------------------------------------------------------- # Specialize environment-dependent compilation flags: # # "standard.mk includes arch_spec.mk which promptly throws CXXFLAGS away if # $EXPERIMENT == D0! So this has to be done here. Damn, damn, damn!" # ---------------------------------------------------------------------- # 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 endif #override CPPFLAGS += -DHEPTRACE ifeq (AIX,$(findstring AIX,$(BFARCH))) override FCPPFLAGS += -DCERNLIB_UNIX -DCERNLIB_IBMRT override FCFLAGS += -qcharlen=512 endif ifeq (IRIX,$(findstring IRIX,$(BFARCH))) override FCFLAGS += -DCERNLIB_UNIX -DCERNLIB_SGI endif ifeq (OSF,$(findstring OSF,$(BFARCH))) override FCFLAGS += -DCERNLIB_UNIX -DCERNLIB_QMVAOS -DCERNLIB_DECS endif ifeq (SunOS5,$(findstring SunOS5,$(BFARCH))) override FCFLAGS += -DCERNLIB_UNIX -DCERNLIB_SUN -DCERNLIB_SOLARIS endif ifneq (,$(findstring IRIX,$(SRT_ARCH))) ifneq (,$(findstring KCC,$(SRT_CXX))) override CXXFLAGS += --backend -OPT:Olimit=0 override CCFLAGS += --backend -OPT:Olimit=0 endif endif ifeq (CYGWIN32_NT,$(findstring CYGWIN32_NT,$(BFARCH))) # We need to stay consistent with cernlib override FCFLAGS := $(patsubst -assume:underscore%,-assume:nounderscore%, \ $(patsubst -names:lowercase%,-names:uppercase%, \ $(patsubst -iface:%,'-iface:(default,mixed_str_len_arg)', \ $(FCFLAGS) ) ) ) endif # ======================================================================