326N/A ########################################################################
326N/A+ XMEMALIGN := -xmemalign=8i
326N/A+ XREGS := -xregs=no%frameptr
2N/A CXXFLAGS += $(WARNFLAGS)
2N/A CCNAME = $(CXX)-$(CCVER)
2N/A # can't use LDOPTS when working with HP aCC, it's used by the linker
2N/A LDFLAGS += $(LDOPTS)
2N/A LDFLAGS += $(_LDOPTS)
2N/A # $(2): executable file name
2N/A # $(3): additional linker flags (optional)
2N/A- command="$(LD) $(1) $(LDFLAGS) $(3) -o $(2)"; \
2N/A+ command="$(CXX) $(CXXFLAGS) $(1) $(LDFLAGS) $(LDOPTS) $(3) -o $(2)"; \
2N/A echo "$$command" >>$(LOGFILE); \
12N/A- $(LD) $(1) $(LDFLAGS) $(3) -o $(2) >>$(LOGFILE) 2>&1
12N/A+ $(CXX) $(CXXFLAGS) $(1) $(LDFLAGS) $(LDOPTS) $(3) -o $(2) >>$(LOGFILE) 2>&1
12N/A # helper function to compile and link a file and log results
12N/A@@ -127,10 +137,10 @@
12N/A # $(5): additional linker flags (optional)
12N/A define compile_then_link
12N/A command="$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(4) -c $(1) -o $(2)" \
12N/A- "&& $(LD) $(2) $(LDFLAGS) $(5) -o $(3)"; \
12N/A+ "&& $(CXX) $(CXXFLAGS) $(2) $(LDFLAGS) $(LDOPTS) $(5) -o $(3)"; \
12N/A echo "$$command" >>$(LOGFILE); \
12N/A $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(4) -c $(1) -o $(2) >>$(LOGFILE) 2>&1 \
12N/A- && $(LD) $(2) $(LDFLAGS) $(5) -o $(3) >>$(LOGFILE) 2>&1
12N/A+ && $(CXX) $(CXXFLAGS) $(2) $(LDFLAGS) $(LDOPTS) $(5) -o $(3) >>$(LOGFILE) 2>&1
12N/A # helper function to prelink a file and log results
12N/A if [ $$? -eq 0 ] ; then \
12N/A opts=`sed -n "s/^[^A-Z_a-z0-9]*LDOPTS *= *\(.*\)/\1/p" \
12N/A- targets="$$
file.o $$file run RUN=$$file $(LOPT)=$$opts"; \
12N/A+ targets="$$
file.o $$file run RUN=$$file LDOPTS=$$opts $(LOPT)=$$opts"; \
12N/A elif [ `echo $$file | grep "\.lib"` ] ; then \
2N/A targets="$$file$(LIBSUFFIX)" ; \
2N/A elif [ `echo $$file | grep "\.sh"` ] ; then \