mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Add -MT option
Allows overriding the output file in dependencies, which also allows outputting those without also outputting the object file. This, again, mimicks GCC's option.
This commit is contained in:
@@ -338,7 +338,8 @@ FILE *fstk_FindFile(char *fname, char **incPathUsed)
|
||||
|
||||
if (f != NULL || errno != ENOENT) {
|
||||
if (dependfile) {
|
||||
fprintf(dependfile, "%s: %s\n", tzObjectname, fname);
|
||||
fprintf(dependfile, "%s: %s\n", tzTargetFileName,
|
||||
fname);
|
||||
if (oGeneratePhonyDeps)
|
||||
fprintf(dependfile, "%s:\n", fname);
|
||||
}
|
||||
@@ -366,8 +367,8 @@ FILE *fstk_FindFile(char *fname, char **incPathUsed)
|
||||
|
||||
if (f != NULL || errno != ENOENT) {
|
||||
if (dependfile) {
|
||||
fprintf(dependfile, "%s: %s\n", tzObjectname,
|
||||
fname);
|
||||
fprintf(dependfile, "%s: %s\n",
|
||||
tzTargetFileName, fname);
|
||||
if (oGeneratePhonyDeps)
|
||||
fprintf(dependfile, "%s:\n", fname);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user