If mkldscript.sh is used to build ${PROG}, depend on it.
do the dependencies in a simpler way using a separate target