Output make-style dependencies with -M.

This commit is contained in:
Anthony J. Bentley
2015-12-11 01:06:19 -07:00
parent 2ea2e47231
commit 581133ecce
3 changed files with 27 additions and 2 deletions

View File

@@ -36,6 +36,9 @@ ULONG nCurrentREPTBlockCount;
ULONG ulMacroReturnValue;
extern char *tzObjectname;
extern FILE *dependfile;
/*
* defines for nCurrentStatus
*/
@@ -190,6 +193,9 @@ fstk_FindFile(char *fname)
FILE *f;
if ((f = fopen(fname, "rb")) != NULL || errno != ENOENT) {
if (dependfile) {
fprintf(dependfile, "%s: %s\n", tzObjectname, fname);
}
return f;
}