aboutsummaryrefslogtreecommitdiff
path: root/bin/expr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'bin/expr/Makefile')
-rw-r--r--bin/expr/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/expr/Makefile b/bin/expr/Makefile
index b86cf6686ab0..1d741b7e0b6d 100644
--- a/bin/expr/Makefile
+++ b/bin/expr/Makefile
@@ -1,9 +1,18 @@
# $FreeBSD$
+.include <src.opts.mk>
+
PROG= expr
SRCS= expr.y
YFLAGS=
+# expr relies on signed integer wrapping
+CFLAGS+= -fwrapv
+
NO_WMISSING_VARIABLE_DECLARATIONS=
+.if ${MK_TESTS} != "no"
+SUBDIR+= tests
+.endif
+
.include <bsd.prog.mk>