diff options
author | Michael Forney <mforney@mforney.org> | 2019-06-17 12:03:56 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-06-17 12:03:56 -0700 |
commit | 49781170b770a42d0aaea9f8c53897294e9e2938 (patch) | |
tree | 39647c617badcad368f6e5cd951d20d2c727af88 | |
parent | f0465801c10359224330c81bcdd857584e07634a (diff) | |
download | cproc-49781170b770a42d0aaea9f8c53897294e9e2938.tar.xz |
driver: Add some more dependency handling options
-rw-r--r-- | driver.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -433,6 +433,13 @@ main(int argc, char *argv[]) if (strcmp(arg, "-M") == 0 || strcmp(arg, "-MM") == 0) { arrayaddptr(&phases[PREPROCESS].cmd, arg); last = PREPROCESS; + } else if (strcmp(arg, "-MD") == 0 || strcmp(arg, "-MMD") == 0) { + arrayaddptr(&phases[PREPROCESS].cmd, arg); + } else if (strcmp(arg, "-MT") == 0 || strcmp(arg, "-MF") == 0) { + if (!--argc) + usage(NULL); + arrayaddptr(&phases[PREPROCESS].cmd, arg); + arrayaddptr(&phases[PREPROCESS].cmd, *++argv); } else { usage(NULL); } |