16b1dcfcdSAdrian Chadd# 26b1dcfcdSAdrian Chadd# Build hostap/wpa_supplicant and supporting utilities. 36b1dcfcdSAdrian Chadd# 46b1dcfcdSAdrian Chadd# 5fd239e7fSKyle Evans.include <src.opts.mk> 66b1dcfcdSAdrian ChaddCRUNCH_PROGS_usr.sbin+= hostapd hostapd_cli 76b1dcfcdSAdrian ChaddCRUNCH_SRCDIR_hostapd= $(.CURDIR)/../../usr.sbin/wpa/hostapd 86b1dcfcdSAdrian ChaddCRUNCH_SRCDIR_hostapd_cli= $(.CURDIR)/../../usr.sbin/wpa/hostapd_cli 96b1dcfcdSAdrian Chadd 10*25a9b415SKyle EvansCRUNCH_KEEP_hostapd+= wpa_driver_bsd_ops 11*25a9b415SKyle Evans 120f55c465SAdrian Chadd#CRUNCH_PROGS_usr.sbin+= wpa_supplicant wpa_cli 130f55c465SAdrian Chadd#CRUNCH_SRCDIR_wpa_supplicant= $(.CURDIR)/../../usr.sbin/wpa/wpa_supplicant 140f55c465SAdrian Chadd#CRUNCH_SRCDIR_wpa_cli= $(.CURDIR)/../../usr.sbin/wpa/wpa_cli 156b1dcfcdSAdrian Chadd 16fd239e7fSKyle Evans.if ${MK_OFED} != "no" 17fd239e7fSKyle Evans# libpcap dependencies if OFED is enabled 18fd239e7fSKyle EvansCRUNCH_LIBS+= -lmlx5 -libverbs 19fd239e7fSKyle Evans.endif 206b1dcfcdSAdrian ChaddCRUNCH_LIBS+= -lpcap 216b1dcfcdSAdrian Chadd 22*25a9b415SKyle Evanswpalibs= drivers ap l2_packet eap_server 23*25a9b415SKyle Evanswpalibs+= eapol_auth eap_common 24*25a9b415SKyle Evanswpalibs+= radius tls wps common crypto utils 25*25a9b415SKyle Evans 26*25a9b415SKyle Evans.for wpalib in ${wpalibs} 27*25a9b415SKyle EvansCRUNCH_LIBS+= ${LIBWPA${wpalib:tu}} 28*25a9b415SKyle Evans.endfor 29