9 int main(
int argc,
char *argv[])
16 fprintf(stderr,
"Usage:\n\t%s <source name tag> <E output file>\n", argv[0]);
24 out = fopen(fnm,
"w+");
27 fprintf(stderr,
"failed to open file %s\n", fnm);
32 fprintf(out,
"DIFS_%s := $(filter-out $(DEFINES),$(ODEFS_%s)) $(filter-out $(ODEFS_%s),$(DEFINES))\n", tag, tag, tag);
33 fprintf(out,
"ifneq ($(strip $(DIFS_%s)),)\n", tag);
34 fprintf(out,
"ifneq ($(strip $(filter $(subst =, ,$(DIFS_%s)),$(FDEPS_%s))),)\n", tag, tag);
35 fprintf(out,
"FORCE_%s = force\nendif\nendif\n", tag);
39 out = fopen(fnm,
"w+");
42 fprintf(stderr,
"failed to open file %s\n", fnm);
47 fprintf(out,
" $(FORCE_%s)\n", tag);