для target зависимости строятся
This commit is contained in:
parent
bc96f2d321
commit
02cfb8f0ba
|
@ -132,14 +132,27 @@ while [ $nfiles != $nparsed ]; do
|
|||
let nparsed++
|
||||
done
|
||||
|
||||
# ======= Target rules =======
|
||||
#echo -n "target_objs = "
|
||||
|
||||
|
||||
for i in `seq 0 $((nfiles-1))`; do
|
||||
echo ${flist[$i]}:${fdeplist[$i]}
|
||||
done
|
||||
|
||||
# ======= Target rules =======
|
||||
echo 'target_objs = \' >> Makefile
|
||||
|
||||
carry=false
|
||||
for i in `seq 0 $((nfiles-1))`; do
|
||||
extension=`basename ${flist[$i]} | sed 's~.*\.~~g'`
|
||||
f=`echo ${flist[$i]} | sed "s~.$extension$~~"`
|
||||
[[ "$extension" != c && "$extension" != cpp
|
||||
&& "$extension" != cxx && "$extension" != cc ]] && continue
|
||||
[ $carry == true ] && echo ' \' >> Makefile
|
||||
echo -ne "\t`basename $f.o`" >> Makefile
|
||||
carry=true
|
||||
done
|
||||
echo >> Makefile
|
||||
|
||||
|
||||
|
||||
# ======= Warning =======
|
||||
files_not_found=`echo -e "$files_not_found" | sort -u`
|
||||
if [ "$files_not_found" != "" ]; then
|
||||
|
|
Loading…
Reference in New Issue