Signed-off-by: Scott Wood <scott@buserror.net>
DEFS += -D_LL_NOSMP
endif
+ifdef USEVALGRIND
+VALGRIND ?= valgrind -q
+else
+VALGRIND :=
+endif
+
# C++ prohibits defeferencing a NULL non-POD pointer (and thus
# prohibits using offsetof on non-POD types, even though there's no
# good reason to disallow it). Some headers use offsetof on non-POD
RMDIR := rm -rf
LN := ln -s
IDLC_target := $(BASEBUILDDIR)/build/idlcomp/idlc
-IDLC := valgrind -q $(BASEBUILDDIR)/build/idlcomp/idlc
+IDLC := $(VALGRIND) $(BASEBUILDDIR)/build/idlcomp/idlc
TOUCH := touch
BISON := bison
FLEX := flex