# ====================================================================== # # CLHEP top-level and library-building GNUmakefile # # ====================================================================== # ---------------------------------------------------------------------- # Identify the target package: # ---------------------------------------------------------------------- PACKAGE = CLHEP # ---------------------------------------------------------------------- # Identify the package's (sub)directory structure: # ---------------------------------------------------------------------- SUBDIRS = Vector/test \ test \ Random/test \ Matrix/test \ GenericFunctions # ---------------------------------------------------------------------- # Identify the target library: # ---------------------------------------------------------------------- LIB = libCLHEP.a # ---------------------------------------------------------------------- # Identify the sources from which to build the library's contents: # ---------------------------------------------------------------------- SKIP = StdHepSOURCES = $(filter-out $(SKIP), $(wildcard StdHep/*.cc)) vpath %.cc \ HepPDT:HepMC:StdHep:Vector:Geometry:Matrix:Random:RandomObjects:Units:Utilities:GenericFunctions:Evaluator ALL_LIBCCFILES = $(wildcard \ HepPDT/*.cc \ HepMC/*.cc \ $(StdHepSOURCES) \ RandomObjects/*.cc \ Vector/*.cc \ Geometry/*.cc \ Matrix/*.cc \ Random/*.cc \ Units/*.cc \ Utilities/*.cc \ Evaluator/*.cc \ GenericFunctions/*.cc \ ) ifneq (,$(findstring IRIX6,$(SRT_ARCH))) ifneq (,$(findstring GCC_2_95,$(SRT_CXX))) AVOID_LIBCCFILES = $(wildcard \ HepPDT/*.cc \ HepMC/*.cc \ $(StdHepSOURCES) \ ) else AVOID_LIBCCFILES = endif else AVOID_LIBCCFILES = endif LIBCCFILES = $(filter-out $(AVOID_LIBCCFILES), $(ALL_LIBCCFILES)) # ---------------------------------------------------------------------- # Connect to other packages: # ---------------------------------------------------------------------- USE_ISOCXX = false ifeq (CDF,$(findstring CDF,$(SRT_PROJECT))) override CPPFLAGS += -DDEFECT_NO_EXCEPTIONS endif include SoftRelTools/standard.mk include SoftRelTools/refresh.mk # 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 # ======================================================================