From 49781170b770a42d0aaea9f8c53897294e9e2938 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 17 Jun 2019 12:03:56 -0700 Subject: driver: Add some more dependency handling options --- driver.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/driver.c b/driver.c index b274365..9d48ce6 100644 --- a/driver.c +++ b/driver.c @@ -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); } -- cgit v1.2.3