summaryrefslogtreecommitdiffstats
path: root/usr.sbin/wpa
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-11-25 16:57:27 +0000
committerbapt <bapt@FreeBSD.org>2014-11-25 16:57:27 +0000
commita191ba5195ecb988c5e5c3b13fc364bde87bd41c (patch)
tree41890d809d5cd369a149d9fe8cd22b45310c700a /usr.sbin/wpa
parenta755ca9f3133785c8638591a5f79e27878062707 (diff)
downloadFreeBSD-src-a191ba5195ecb988c5e5c3b13fc364bde87bd41c.zip
FreeBSD-src-a191ba5195ecb988c5e5c3b13fc364bde87bd41c.tar.gz
Convert usr.sbin to LIBADD
Reduce overlinking
Diffstat (limited to 'usr.sbin/wpa')
-rw-r--r--usr.sbin/wpa/Makefile.crypto3
-rw-r--r--usr.sbin/wpa/hostapd/Makefile3
-rw-r--r--usr.sbin/wpa/hostapd_cli/Makefile3
-rw-r--r--usr.sbin/wpa/wpa_cli/Makefile3
-rw-r--r--usr.sbin/wpa/wpa_passphrase/Makefile3
-rw-r--r--usr.sbin/wpa/wpa_priv/Makefile3
-rw-r--r--usr.sbin/wpa/wpa_supplicant/Makefile6
7 files changed, 8 insertions, 16 deletions
diff --git a/usr.sbin/wpa/Makefile.crypto b/usr.sbin/wpa/Makefile.crypto
index 94367bb..3049011 100644
--- a/usr.sbin/wpa/Makefile.crypto
+++ b/usr.sbin/wpa/Makefile.crypto
@@ -2,8 +2,7 @@
.if ${MK_OPENSSL} != "no" && !defined(RELEASE_CRUNCH)
SRCS+= crypto_openssl.c random.c sha1-prf.c sha256-prf.c
-DPADD+= ${LIBSSL} ${LIBCRYPTO}
-LDADD+= -lssl -lcrypto
+LIBADD+= ssl crypto
CFLAGS+= -DCONFIG_SHA256
.else
CFLAGS+=-DCONFIG_CRYPTO_INTERNAL
diff --git a/usr.sbin/wpa/hostapd/Makefile b/usr.sbin/wpa/hostapd/Makefile
index 7ab542f..4621ad3 100644
--- a/usr.sbin/wpa/hostapd/Makefile
+++ b/usr.sbin/wpa/hostapd/Makefile
@@ -46,8 +46,7 @@ CFLAGS+=-DCONFIG_DRIVER_BSD \
CFLAGS+= -DCONFIG_IPV6
.endif
#CFLAGS+= -g
-DPADD+= ${LIBPCAP} ${LIBUTIL}
-LDADD+= -lpcap -lutil
+LIBADD+= pcap util
# User customizations for wpa_supplicant/hostapd build environment
CFLAGS+=${HOSTAPD_CFLAGS}
diff --git a/usr.sbin/wpa/hostapd_cli/Makefile b/usr.sbin/wpa/hostapd_cli/Makefile
index 3542aac..48af140 100644
--- a/usr.sbin/wpa/hostapd_cli/Makefile
+++ b/usr.sbin/wpa/hostapd_cli/Makefile
@@ -10,8 +10,7 @@ SRCS= common.c edit.c eloop.c hostapd_cli.c os_unix.c wpa_ctrl.c wpa_debug.c
CFLAGS+= -DCONFIG_CTRL_IFACE
CFLAGS+= -DCONFIG_CTRL_IFACE_UNIX
-DPADD+= ${LIBUTIL}
-LDADD+= -lutil
+LIBADD+= util
MAN= hostapd_cli.8
diff --git a/usr.sbin/wpa/wpa_cli/Makefile b/usr.sbin/wpa/wpa_cli/Makefile
index 9530b73..3203829 100644
--- a/usr.sbin/wpa/wpa_cli/Makefile
+++ b/usr.sbin/wpa/wpa_cli/Makefile
@@ -15,7 +15,6 @@ CFLAGS+= -DCONFIG_CTRL_IFACE_UNIX
CFLAGS+= -D_DIRENT_HAVE_D_TYPE
CFLAGS+= -DCONFIG_WPA_CLI_EDIT=y
-LDADD+= -lutil
-DPADD+= ${LIBUTIL}
+LIBADD+= util
.include <bsd.prog.mk>
diff --git a/usr.sbin/wpa/wpa_passphrase/Makefile b/usr.sbin/wpa/wpa_passphrase/Makefile
index d0f5198..c138481 100644
--- a/usr.sbin/wpa/wpa_passphrase/Makefile
+++ b/usr.sbin/wpa/wpa_passphrase/Makefile
@@ -11,8 +11,7 @@ SRCS= common.c md5-internal.c md5.c os_unix.c sha1-internal.c sha1-pbkdf2.c sha1
CFLAGS+= -DINTERNAL_SHA1
CFLAGS+= -DINTERNAL_MD5
-DPADD+= ${LIBUTIL}
-LDADD+= -lutil
+LIBADD+= util
MAN= wpa_passphrase.8
diff --git a/usr.sbin/wpa/wpa_priv/Makefile b/usr.sbin/wpa/wpa_priv/Makefile
index 4dbc631..cf77678 100644
--- a/usr.sbin/wpa/wpa_priv/Makefile
+++ b/usr.sbin/wpa/wpa_priv/Makefile
@@ -9,8 +9,7 @@ PROG= wpa_priv
SRCS= drivers.c os_unix.c eloop.c common.c wpa_debug.c wpabuf.c wpa_priv.c \
driver_common.c l2_packet_freebsd.c
-DPADD+= ${LIBPCAP}
-LDADD+= -lpcap
+LIBADD= pcap
.include "${.CURDIR}/../Makefile.crypto"
diff --git a/usr.sbin/wpa/wpa_supplicant/Makefile b/usr.sbin/wpa/wpa_supplicant/Makefile
index 673a04d..dd40766 100644
--- a/usr.sbin/wpa/wpa_supplicant/Makefile
+++ b/usr.sbin/wpa/wpa_supplicant/Makefile
@@ -49,8 +49,7 @@ CFLAGS+=-DCONFIG_BACKEND_FILE \
-DCONFIG_GAS \
-DPKCS12_FUNCS
#CFLAGS+= -g
-DPADD+= ${LIBPCAP} ${LIBUTIL}
-LDADD+= -lpcap -lutil
+LIBADD= pcap util
# User customizations to the wpa_supplicant build environment
CFLAGS+=${WPA_SUPPLICANT_CFLAGS}
@@ -127,8 +126,7 @@ NEED_FIPS186_2_PRF=y
#
.if !empty(CFLAGS:M*-DPCSC_FUNCS)
SRCS+= pcsc_funcs.c
-DPADD+=${LIBPTHREAD}
-LDADD+=-lpcsclite -lpthread
+LIBADD+= pcslite pthread
.endif
.if !empty(CFLAGS:M*-DEAP_GPSK)
OpenPOWER on IntegriCloud