From 2b3c7d2287ff9d5958f5e9d75d5881220a3c0f37 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 27 Jun 2016 18:47:09 +0200 Subject: [PATCH] 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. --- tcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcc.c b/tcc.c index fbfbffa8..cbef5d3b 100644 --- a/tcc.c +++ b/tcc.c @@ -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; inb_target_deps; ++i) fprintf(depout, " %s \\\n", s->target_deps[i]); fprintf(depout, "\n"); -- 2.11.4.GIT