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.
This commit is contained in:
parent
b285fc50f3
commit
2b3c7d2287
1 changed files with 1 additions and 1 deletions
2
tcc.c
2
tcc.c
|
@ -212,7 +212,7 @@ static void gen_makedeps(TCCState *s, const char *target, const char *filename)
|
||||||
if (!depout)
|
if (!depout)
|
||||||
tcc_error("could not open '%s'", filename);
|
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)
|
for (i=0; i<s->nb_target_deps; ++i)
|
||||||
fprintf(depout, " %s \\\n", s->target_deps[i]);
|
fprintf(depout, " %s \\\n", s->target_deps[i]);
|
||||||
fprintf(depout, "\n");
|
fprintf(depout, "\n");
|
||||||
|
|
Loading…
Reference in a new issue