Change dependency file format a bit

The linux fixdep parse is very stupid and only recognizes
a target token when ':' is part of it.  A space is permitted
in Makefile syntax, but it's easier to change our emitter
than all fixdep parsers out there.
master
Michael Matz 2016-06-27 18:47:09 +02:00
parent b285fc50f3
commit 2b3c7d2287
1 changed files with 1 additions and 1 deletions

2
tcc.c
View File

@ -212,7 +212,7 @@ static void gen_makedeps(TCCState *s, const char *target, const char *filename)
if (!depout)
tcc_error("could not open '%s'", filename);
fprintf(depout, "%s : \\\n", target);
fprintf(depout, "%s: \\\n", target);
for (i=0; i<s->nb_target_deps; ++i)
fprintf(depout, " %s \\\n", s->target_deps[i]);
fprintf(depout, "\n");