16b1dcfcdSAdrian Chadd# 26b1dcfcdSAdrian Chadd# Build hostap/wpa_supplicant and supporting utilities. 36b1dcfcdSAdrian Chadd# 46b1dcfcdSAdrian Chadd# 5fd239e7fSKyle Evans.include <src.opts.mk> 6*e018d97cSKyle Evans 7*e018d97cSKyle EvansWPASRC?= ${SRCTOP}/usr.sbin/wpa 8*e018d97cSKyle Evans 96b1dcfcdSAdrian ChaddCRUNCH_PROGS_usr.sbin+= hostapd hostapd_cli 10*e018d97cSKyle EvansCRUNCH_SRCDIR_hostapd= ${WPASRC}/hostapd 11*e018d97cSKyle EvansCRUNCH_SRCDIR_hostapd_cli= ${WPASRC}/hostapd_cli 126b1dcfcdSAdrian Chadd 1325a9b415SKyle EvansCRUNCH_KEEP_hostapd+= wpa_driver_bsd_ops 1425a9b415SKyle Evans 15635891d1SKyle EvansCRUNCH_PROGS_usr.sbin+= wpa_supplicant wpa_cli 16*e018d97cSKyle EvansCRUNCH_SRCDIR_wpa_supplicant= ${WPASRC}/wpa_supplicant 17*e018d97cSKyle EvansCRUNCH_SRCDIR_wpa_cli= ${WPASRC}/wpa_cli 186b1dcfcdSAdrian Chadd 19fd239e7fSKyle Evans.if ${MK_OFED} != "no" 20fd239e7fSKyle Evans# libpcap dependencies if OFED is enabled 21fd239e7fSKyle EvansCRUNCH_LIBS+= -lmlx5 -libverbs 22fd239e7fSKyle Evans.endif 236b1dcfcdSAdrian ChaddCRUNCH_LIBS+= -lpcap 246b1dcfcdSAdrian Chadd 25635891d1SKyle Evans# hostapd 2625a9b415SKyle Evanswpalibs= drivers ap l2_packet eap_server 2725a9b415SKyle Evanswpalibs+= eapol_auth eap_common 2825a9b415SKyle Evanswpalibs+= radius tls wps common crypto utils 2925a9b415SKyle Evans 30635891d1SKyle Evans# wpa_supplicant 31635891d1SKyle Evanswpalibs+= eapol_supp eap_peer rsn_supp 32635891d1SKyle Evans 3325a9b415SKyle Evans.for wpalib in ${wpalibs} 3425a9b415SKyle EvansCRUNCH_LIBS+= ${LIBWPA${wpalib:tu}} 3525a9b415SKyle Evans.endfor 36