Lines Matching +full:- +full:- +full:target +full:- +full:list

2  * "Optimize" a list of dependencies as spit out by gcc -MD
15 * gcc produces a very nice and correct list of dependencies which
18 * To use this list as-is however has the drawback that virtually
21 * If the user re-runs make *config, autoconf.h will be
38 * so most likely only his driver ;-)
47 * The former is handled by using the -MD output, the later by saving
52 * kbuild-devel a long time ago. I don't have a sensibly working
65 * fixdep <depfile> <target> <cmdline>
73 * savedcmd_<target> = <cmdline>
75 * and then basically copies the .<target>.d file to stdout, in the
106 fprintf(stderr, "Usage: fixdep <depfile> <target> <cmdline>\n"); in usage()
139 memcpy(aux->name, name, len); in add_to_hashtable()
140 aux->len = len; in add_to_hashtable()
141 aux->hash = hash; in add_to_hashtable()
142 aux->next = hashtab[hash % HASHSZ]; in add_to_hashtable()
155 for (aux = hashtab[hash % HASHSZ]; aux; aux = aux->next) { in in_hashtable()
156 if (aux->hash == hash && aux->len == len && in in_hashtable()
157 memcmp(aux->name, name, len) == 0) in in_hashtable()
186 return !memcmp(s + slen - sublen, sub, sublen); in str_ends_with()
195 if (p > start && (isalnum(p[-1]) || p[-1] == '_')) { in parse_config_file()
203 if (str_ends_with(p, q - p, "_MODULE")) in parse_config_file()
204 r = q - 7; in parse_config_file()
208 use_config(p, r - p); in parse_config_file()
250 /* rustc may list binary files in dep-info */ in is_no_parse_file()
261 static void parse_dep_file(char *p, const char *target) in parse_dep_file() argument
275 * rustc may emit comments to dep-info. in parse_dep_file()
305 * Makefiles use a line-based syntax, where the newline in parse_dep_file()
307 * we expect the next token is a target. in parse_dep_file()
336 memmove(p + 1, p, q - p); in parse_dep_file()
348 /* Just discard the target */ in parse_dep_file()
359 * Do not list the source file as dependency, so that kbuild is in parse_dep_file()
372 * rustc emits the same dependency list for each in parse_dep_file()
373 * emission type. It is enough to list the source name in parse_dep_file()
378 printf("source_%s := %s\n\n", target, p); in parse_dep_file()
379 printf("deps_%s := \\\n", target); in parse_dep_file()
382 } else if (!is_ignored_file(p, q - p) && in parse_dep_file()
383 !in_hashtable(p, q - p, file_hashtab)) { in parse_dep_file()
388 if (need_parse && !is_no_parse_file(p, q - p)) { in parse_dep_file()
406 printf("\n%s: $(deps_%s)\n\n", target, target); in parse_dep_file()
407 printf("$(deps_%s):\n", target); in parse_dep_file()
412 const char *depfile, *target, *cmdline; in main() local
419 target = argv[2]; in main()
422 printf("savedcmd_%s := %s\n\n", target, cmdline); in main()
425 parse_dep_file(buf, target); in main()