diff --git a/cli/configure b/cli/configure
index 05b39c3..63129b2 100755
--- a/cli/configure
+++ b/cli/configure
@@ -13,9 +13,12 @@
## THIS SOFTWARE.
set -e
+export SRC_TOP="$(pwd)/.."
+
. ../config.subr
-LIBRARY=librtbuf_cli.la
+LIB=librtbuf_cli.la
+
PROG=rtbuf
SOURCES="$(ls *.c | grep -Fv rtbuf_cli_main.c | tr '\n' ' ')"