summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--makeopts.in1
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9b5d5e2..213b368 100644
--- a/Makefile
+++ b/Makefile
@@ -255,7 +255,10 @@ UTILS += patgen pattest patlooptest hdlcstress hdlctest hdlcgen \
UTILSO = $(UTILS:%=%.o)
-BINS:=fxotune fxstest sethdlc-new ztcfg ztdiag ztmonitor ztspeed zttest zttool ztscan
+BINS:=fxotune fxstest sethdlc-new ztcfg ztdiag ztmonitor ztspeed zttest ztscan
+ifeq (1,$(PBX_LIBNEWT))
+ BINS+=zttool
+endif
BINS:=$(filter-out $(MENUSELECT_UTILS),$(BINS))
MAN_PAGES:=$(wildcard $(BINS:%=doc/%.8))
diff --git a/makeopts.in b/makeopts.in
index 6af94be..c2bf075 100644
--- a/makeopts.in
+++ b/makeopts.in
@@ -26,6 +26,7 @@ sysconfdir = @sysconfdir@
DOWNLOAD=@DOWNLOAD@
+PBX_LIBNEWT=@PBX_LIBNEWT@
NEWT_LIB=@NEWT_LIB@
NEWT_INCLUDE=@NEWT_INCLUDE@