echoall
: run
if $1x = x  exit
if $1x = -lx goto load
cc -c -O SOURCE/$1.c
ld -rx $1.o
mv a.out $1.o
ar rv treklib $1.o
rm $1.o
shift
goto run
: load
ld -o $2trek -n -s /lib/$2crt0.o treklib -lm -lc
chmod 700 $2trek
