1*cdf0e10cSrcweir 2*cdf0e10cSrcweir# this is a helper, to build sal with the right compiler parameters 3*cdf0e10cSrcweir# IMPORTANT, this works only within Linux 4*cdf0e10cSrcweir 5*cdf0e10cSrcweirif ( `uname` == "Linux" ) then 6*cdf0e10cSrcweir echo "running on Linux Intel, ok." 7*cdf0e10cSrcweir 8*cdf0e10cSrcweir build killobj 9*cdf0e10cSrcweir 10*cdf0e10cSrcweir # setenv OLDCFLAGS $ENVCFLAGS 11*cdf0e10cSrcweir 12*cdf0e10cSrcweir setenv ENVCFLAGS "-fprofile-arcs -ftest-coverage" 13*cdf0e10cSrcweir 14*cdf0e10cSrcweir build 15*cdf0e10cSrcweir 16*cdf0e10cSrcweir # setenv ENVCFLAGS $OLDCFLAGS 17*cdf0e10cSrcweir 18*cdf0e10cSrcweirelse 19*cdf0e10cSrcweir 20*cdf0e10cSrcweir echo "Sorry, gcov works only within Linux environment." 21*cdf0e10cSrcweir 22*cdf0e10cSrcweirendif 23*cdf0e10cSrcweir 24