Print dependencies of all included files

Files that weren't found with the absolute path weren't added as
dependencies even if they were found after considering the list of
include directories.

This patch makes rgbasm print the complete path (including the include
directory path) in these cases.

Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
Antonio Niño Díaz
2017-04-17 20:27:58 +01:00
parent 64585eebf6
commit 739b113f57

View File

@@ -217,6 +217,9 @@ fstk_FindFile(char *fname)
} }
if ((f = fopen(path, "rb")) != NULL || errno != ENOENT) { if ((f = fopen(path, "rb")) != NULL || errno != ENOENT) {
if (dependfile) {
fprintf(dependfile, "%s: %s\n", tzObjectname, path);
}
return f; return f;
} }
} }