# ====================================================================== # # SpecialFunctions top-level and library-building GNUmakefile # # ====================================================================== # ---------------------------------------------------------------------- # Identify the target package: # ---------------------------------------------------------------------- PACKAGE = SpecialFunctions # ---------------------------------------------------------------------- # Identify the package's (sub)directory structure: # ---------------------------------------------------------------------- PACKAGE_INCLUDE = SpecialFunctions SUBDIRS = test # ---------------------------------------------------------------------- # Identify the sources from which to build the library's contents: # ---------------------------------------------------------------------- vpath %.cc src LIBCCFILES = $(wildcard src/*.cc) # ---------------------------------------------------------------------- # Identify the target library: # ---------------------------------------------------------------------- LIB = libSpecialFunctions.a # ---------------------------------------------------------------------- # Connect to other packages: # ---------------------------------------------------------------------- USE_ISOCXX = true include SpecialFunctions/arch_spec_gsl.mk include SoftRelTools/standard.mk include SoftRelTools/refresh.mk include Exceptions/arch_spec_Exceptions.mk verbose_test: ; cd $(SUBDIRS); gmake verbose_test # ---------------------------------------------------------------------- # 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 ifneq (,$(findstring,IRIX,$(SRT_ARCH))) ifneq (,$(findstring KCC,$(SRT_CXX))) override CXXFLAGS += --backend -OPT:Olimit=0 override CCFLAGS += --backend -OPT:Olimit=0 endif endif # ======================================================================