summaryrefslogtreecommitdiff
path: root/src/nsgenbind-ast.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-11-04 16:52:40 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-11-04 16:52:40 +0000
commit524f69acc59ac20955700c65d358490c383aa3a2 (patch)
tree1c4dccc21eb3bdbb0c639b5942aef1cf98990f05 /src/nsgenbind-ast.c
parenta59c3f3baa6bf13f74429d0946f4dc768be94e15 (diff)
downloadnsgenbind-524f69acc59ac20955700c65d358490c383aa3a2.tar.gz
nsgenbind-524f69acc59ac20955700c65d358490c383aa3a2.tar.bz2
Support generation of dep files
Diffstat (limited to 'src/nsgenbind-ast.c')
-rw-r--r--src/nsgenbind-ast.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nsgenbind-ast.c b/src/nsgenbind-ast.c
index c14f0df..52febaa 100644
--- a/src/nsgenbind-ast.c
+++ b/src/nsgenbind-ast.c
@@ -299,6 +299,10 @@ FILE *genbindopen(const char *filename)
}
prevfilepath = strndup(filename,fulllen);
}
+ if (options->depfilehandle != NULL) {
+ fprintf(options->depfilehandle, " \\\n\t%s",
+ filename);
+ }
return genfile;
}
@@ -315,6 +319,10 @@ FILE *genbindopen(const char *filename)
if (options->verbose) {
printf("Opened Genbind file %s\n", fullname);
}
+ if (options->depfilehandle != NULL) {
+ fprintf(options->depfilehandle, " \\\n\t%s",
+ fullname);
+ }
free(fullname);
return genfile;
}
@@ -329,6 +337,10 @@ FILE *genbindopen(const char *filename)
genfile = fopen(fullname, "r");
if ((genfile != NULL) && options->verbose) {
printf("Opend Genbind file %s\n", fullname);
+ if (options->depfilehandle != NULL) {
+ fprintf(options->depfilehandle, " \\\n\t%s",
+ fullname);
+ }
}
free(fullname);