diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-01-18 09:51:49 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-01-18 09:59:13 +0100 |
commit | ab8c6f957e1e2d9b24acc00413c28fb2020e1516 (patch) | |
tree | 9a23c67e9f266d69ce68d9a7ad273166d3d32753 | |
parent | 8f6f8b81d60461ab579d2e1d7ed780b06be44306 (diff) |
Change -p to -P and make PCRE support the default
-rw-r--r-- | make.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -30,7 +30,7 @@ static char *mkoutpath(const char *); -static bool pflag; +static bool Pflag; int main(int argc, char **argv) @@ -42,16 +42,16 @@ main(int argc, char **argv) cbsinit(argc, argv); rebuild(); - while ((opt = getopt(argc, argv, "dp")) != -1) { + while ((opt = getopt(argc, argv, "dP")) != -1) { switch (opt) { case 'd': debug = true; break; - case 'p': - pflag = true; + case 'P': + Pflag = true; break; default: - fputs("Usage: make [-d]\n", stderr); + fputs("Usage: make [-dP]\n", stderr); exit(EXIT_FAILURE); } } @@ -82,7 +82,7 @@ main(int argc, char **argv) cmdadd(&c, CC, CFLAGS); cmdadd(&c, buf); - if (pflag) + if (!Pflag) cmdadd(&c, "-DGRAB_DO_PCRE=1", "-lpcre2-posix"); if (debug) cmdadd(&c, CFLAGS_DEBUG); |