# Have wrappers for the test tools, so that they run.
#
TEST_BIN_DIR = ./$(BUILD_DIR)/bin/local
-TEST_BIN = $(JLIBTOOL) --quiet --mode=execute $(TEST_BIN_DIR)
+TEST_BIN = $(JLIBTOOL) $(if ${VERBOSE},--debug,--silent) --mode=execute $(TEST_BIN_DIR)
#
# For creating documentation via doc/all.mk
# Re-define compilers and linkers
#
+LIBTOOL_VERBOSE=$(if ${VERBOSE},--debug,--silent)
OBJ_EXT = lo
-COMPILE.c = ${LIBTOOL} --silent --mode=compile ${CC}
-COMPILE.cxx = ${LIBTOOL} --mode=compile ${CXX}
-LINK.c = ${LIBTOOL} --silent --mode=link ${CC}
-LINK.cxx = ${LIBTOOL} --mode=link ${CXX}
-PROGRAM_INSTALL = ${LIBTOOL} --silent --mode=install ${INSTALL}
+COMPILE.c = ${LIBTOOL} ${LIBTOOL_VERBOSE} --mode=compile ${CC}
+COMPILE.cxx = ${LIBTOOL} ${LIBTOOL_VERBOSE} --mode=compile ${CXX}
+LINK.c = ${LIBTOOL} ${LIBTOOL_VERBOSE} --mode=link ${CC}
+LINK.cxx = ${LIBTOOL} ${LIBTOOL_VERBOSE} --mode=link ${CXX}
+PROGRAM_INSTALL = ${LIBTOOL} ${LIBTOOL_VERBOSE} --mode=install ${INSTALL}
# LIBTOOL_ENDINGS - Given a library ending in ".a" or ".so", replace that
include Make.inc
define RADIUSD_SERVICE
-$$(eval RADIUSD_BIN := $(JLIBTOOL) --silent --mode=execute $$(TEST_BIN)/radiusd)
+$$(eval RADIUSD_BIN := $(JLIBTOOL) $(if ${VERBOSE},--debug,--silent) --mode=execute $$(TEST_BIN)/radiusd)
$(eval PORT := $(shell echo $$(($(PORT)+1))))
$(eval $(subst test.,,$(TEST))_port := $(PORT))