# ====================================================================== # # ErrorLogger MultiThreadTests binary-building GNUmakefile # # ====================================================================== # ---------------------------------------------------------------------- # Identify the target binaries: # ---------------------------------------------------------------------- BINS = ifneq (,$(findstring GCC_2_95,$(SRT_CXX))) TBINS = pthread1 else TBINS = \ MultThread \ pthread1 \ TSusage \ endif # ---------------------------------------------------------------------- # Identify and categorize the sources for the above-named binaries: # ---------------------------------------------------------------------- SIMPLEBINS = \ MultThread \ pthread1 \ TSusage \ COMPLEXBIN = BINCCFILES = # names of COMPLEXBIN C++ source files with .cc suffixes # ---------------------------------------------------------------------- # Identify other libraries to be linked: # ---------------------------------------------------------------------- BINLIBS = -lErrorLogger -lpthread # ---------------------------------------------------------------------- # Connect to other packages: # ---------------------------------------------------------------------- USE_ISOCXX = true include SoftRelTools/standard.mk # ---------------------------------------------------------------------- # Discard -lm introduced by ISOcxx: # ---------------------------------------------------------------------- override LOADLIBES := $(subst -lm,,$(LOADLIBES)) # ---------------------------------------------------------------------- # Make environment-specific adaptations: # ---------------------------------------------------------------------- ifneq (,$(findstring IRIX6,$(SRT_ARCH))) ifneq (,$(findstring KCC,$(SRT_CXX))) override CXXFLAGS += --backend -OPT:Olimit=0 override CCFLAGS += --backend -OPT:Olimit=0 endif endif ifneq (,$(findstring IRIX,$(SRT_ARCH))) ifneq (,$(findstring GCC,$(SRT_CXX))) override LDFLAGS += -Wl,-LD_MSG:off=15:off=47:off=84-85:off=127:off=134 endif endif # ======================================================================