5 int main(int argc, char* argv[])
16 printf("Too few arguments\n");
20 prefix = strdup(argv[1]);
22 out = fopen(argv[2], "wb");
25 printf("Unable to open output file\n");
30 while ((ch = fgetc(stdin)) != ':' && ch != EOF)
42 dot = strrchr(buf, '.');
47 fprintf(out, "%s/.%s.TAG %s/.%s.d %s/%s.o:", prefix, buf, prefix, buf,
50 while ((ch = fgetc(stdin)) != EOF)