H='
=========
ccd
=========
writes a C subroutine that returns the current data.  this is
named gdm.c.  the call to "cc" is modified to include gdm.c or 
gdm.o as appropriate. gdm.? is removed by kinstall.
=========
'
case $1 in 
    -h|help|hint)   clear;echo "$H";exit 0;;
esac
MEM=
OPT=
while   :
do
case $1 in
        -M*)    MEM=$1;;
        *)              ;;
esac
        OPT="$OPT $1"
case $# in
        0|1)    break;;
        *)              shift;;
esac
done
if test ! -s gdm.o
then
set `date`
cat > gdm.c <<END
char    *
gdm()
{
        return("copyright $3 $2 $6 $4");
}
END
cc -c $MEM gdm.c
fi
cc $OPT
