#!/bin/sh

declare -i TheSize=0

ReturnSize () {
	TheSize="$1";
}

DoLink () {
	OutFile=`basename $1 .a`
	gcc -s -N -jump -o $OutFile $1 -lm -ltermcap
	ReturnSize `ls -s $1`
	if [ $TheSize -gt 30 ] ; then
		gcc -s -jump -o $OutFile $1 -lm -ltermcap
	fi
}

for i in ../bin.a/*.a; do
	DoLink $i;
done;
