aboutsummaryrefslogtreecommitdiff
path: root/make.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-18 09:51:49 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-18 09:59:13 +0100
commitab8c6f957e1e2d9b24acc00413c28fb2020e1516 (patch)
tree9a23c67e9f266d69ce68d9a7ad273166d3d32753 /make.c
parent8f6f8b81d60461ab579d2e1d7ed780b06be44306 (diff)
Change -p to -P and make PCRE support the default
Diffstat (limited to 'make.c')
-rw-r--r--make.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/make.c b/make.c
index f4e94d8..12764da 100644
--- a/make.c
+++ b/make.c
@@ -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);