wpa_cli(8): Add libedit support (using libedit's readline API).
authorSascha Wildner <saw@online.de>
Tue, 24 Jul 2012 21:22:41 +0000 (23:22 +0200)
committerSascha Wildner <saw@online.de>
Tue, 24 Jul 2012 21:22:41 +0000 (23:22 +0200)
Unfortunately, this introduces a warning which required lowering
WARNS to 0 for wpa_cli(8). I didn't feel like modifying contrib/
source for it.

Taken-from: FreeBSD
Tested-by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
usr.sbin/802_11/wpa_cli/Makefile

index d44ac25..182a518 100644 (file)
@@ -1,5 +1,4 @@
 # $FreeBSD: src/usr.sbin/wpa/wpa_cli/Makefile,v 1.3 2007/07/11 16:04:07 sam Exp $
-# $DragonFly: src/usr.sbin/802_11/wpa_cli/Makefile,v 1.2 2007/08/07 11:25:36 sephe Exp $
 
 .include "${.CURDIR}/../Makefile.inc"
 
@@ -8,10 +7,16 @@
 PROG=  wpa_cli
 SRCS=  wpa_cli.c wpa_ctrl.c os_unix.c
 
+MAN=   wpa_cli.8
+
+WARNS= 0
+
 CFLAGS+= -I${WPA_DISTDIR}
 CFLAGS+= -DCONFIG_CTRL_IFACE
 CFLAGS+= -DCONFIG_CTRL_IFACE_UNIX
+CFLAGS+= -DCONFIG_READLINE
 
-MAN=   wpa_cli.8
+LDADD+= -ledit -ltermcap
+DPADD+= ${LIBEDIT} ${LIBTERMCAP}
 
 .include <bsd.prog.mk>