в зависимостях o-файлов уже печатает flist (тока нужен fpath)

This commit is contained in:
Kolan Sh 2011-07-08 23:02:22 +04:00
parent 2b14ce2fa8
commit 6cf54711b9
1 changed files with 25 additions and 1 deletions

View File

@ -161,8 +161,32 @@ for i in `seq 0 $((nfiles-1))`; do
f=`echo ${flist[$i]} | sed "s~.$extension$~~"` f=`echo ${flist[$i]} | sed "s~.$extension$~~"`
[[ "$extension" != c && "$extension" != cpp [[ "$extension" != c && "$extension" != cpp
&& "$extension" != cxx && "$extension" != cc ]] && continue && "$extension" != cxx && "$extension" != cc ]] && continue
echo "`basename $f.o:` \\" >> Makefile echo -n "`basename $f.o:`" >> Makefile
dep_lst=$f.$extension
_dep_lst=
while [ "$dep_lst" != "$_dep_lst" ]; do
_dep_lst="$dep_lst"
for fl in $_dep_lst; do
for i in `seq 0 $((nfiles-1))`; do
#echo "FL=$fl; flist[$i]=${flist[$i]}"
if [ "$fl" == "${flist[$i]}" ]; then
dep_lst="$dep_lst ${fdeplist[$i]}"
fi
done
done
dep_lst=`echo $dep_lst | sed 's~ ~\n~g' | sort -u`
done
for fl in $dep_lst; do
echo ' \' >> Makefile
echo -ne "\t$fl" >> Makefile
done
#echo "FILE=$f.$extension, DEPLIST=$dep_lst"
echo >> Makefile
echo >> Makefile echo >> Makefile
done done