make  &&

for file in *.ref
do
  ./refc ${file}
done
