# ====================================================================== # # ErrorLogger binary-building GNUmakefile # # ====================================================================== SUBDIRS = MultiThreadTests # ---------------------------------------------------------------------- # Identify the target binaries: # ---------------------------------------------------------------------- BINS = TBINS = \ exitAndInt \ switchOstream \ BasicColl \ BasicRecv \ basicUsage \ debugLevel \ elTestDefault \ FilterModule \ frame1 \ IgnoreModule \ SampleFramework \ ShortFrame \ ShortFrame2 \ ShortFrame3 \ ShortFrame5 \ ShortFrame6 \ singtest \ testDiscard \ testELassert \ testELerrorList \ TestFramework \ testHandleRec \ testHex \ testStatsMap \ TestTableLimit \ TFrames \ # ---------------------------------------------------------------------- # Identify and categorize the sources for the above-named binaries: # ---------------------------------------------------------------------- SIMPLEBINS = \ exitAndInt \ switchOstream \ BasicColl \ BasicRecv \ basicUsage \ debugLevel \ elTestDefault \ FilterModule \ frame1 \ IgnoreModule \ ShortFrame \ ShortFrame2 \ ShortFrame3 \ ShortFrame5 \ ShortFrame6 \ singtest \ testDiscard \ testELassert \ testELerrorList \ TestFramework \ testHandleRec \ testHex \ testStatsMap \ TestTableLimit \ TFrames \ COMPLEXBIN = SampleFramework BINCCFILES = \ SampleFramework.cc \ SampleModule.cc \ SampleModuleA.cc \ SampleModuleB.cc \ # ---------------------------------------------------------------------- # Identify other libraries to be linked: # ---------------------------------------------------------------------- BINLIBS = -lErrorLogger # ---------------------------------------------------------------------- # 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 # ======================================================================