:
 
./makeCC
if(test $? -ne 0) then
   exit 1
fi
  
cd c_source
for dir in getmem chep_crt service2 polynom interpret num symb tab events
do 
  cd $dir
  echo "C compilation. Source directory: $dir" 
  ../c_compile `cat SOURCES`
  if(test $? -ne 0) then
    echo  ERROR  in C-code compilation 
    echo  Nothing workable is created  
    exit 1
  fi 
  ./export
  if(test  $? -ne 0) then
         echo  ERROR  in C-code  linking or archiving. 
         echo  Nothing workable is created
     exit 1
  fi 
  cd ..
done

   
echo C-part of code was compiled and linked successfully.
echo CompHEP may be started. 

