switchted to self-made dependency generation
This commit is contained in:
parent
04a58ffa04
commit
9368828db1
1 changed files with 8 additions and 1 deletions
|
@ -98,7 +98,14 @@ EOF
|
||||||
sed "s/${SRCDIR}\//${OBJDIR}\//" |
|
sed "s/${SRCDIR}\//${OBJDIR}\//" |
|
||||||
sed "s/\.c$/.o/")"
|
sed "s/\.c$/.o/")"
|
||||||
|
|
||||||
gcc -MM -MT "${objname}" "${srcname}" >> "${MAKEFILE}"
|
includes="$(grep '#include ".*"' ${srcname} |
|
||||||
|
awk -F\" '{ print $2 }')"
|
||||||
|
printf "%s: %s " "${objname}" "${srcname}" >> "${MAKEFILE}"
|
||||||
|
for line in $includes; do
|
||||||
|
printf "%s " "${file%$(basename ${file})}${line}" >> "${MAKEFILE}"
|
||||||
|
done
|
||||||
|
printf "\n" >> "${MAKEFILE}"
|
||||||
|
|
||||||
|
|
||||||
printf "\t@%s object %s\n" \
|
printf "\t@%s object %s\n" \
|
||||||
'$(PROG_COMMAND)' "${objname}" >> "${MAKEFILE}"
|
'$(PROG_COMMAND)' "${objname}" >> "${MAKEFILE}"
|
||||||
|
|
Loading…
Reference in a new issue