125ecdc7dSCy Schubert.include <src.opts.mk> 225ecdc7dSCy Schubert 3cb9aecf0SSam LefflerBINDIR?= /usr/sbin 47a77de1cSSam Leffler 5fe815331SKyle EvansWARNS?= 0 6fe815331SKyle Evans 7*9917049bSDimitry AndricWPA_DISTDIR?= ${SRCTOP}/contrib/wpa 87a77de1cSSam LefflerWPA_SUPPLICANT_DISTDIR?=${WPA_DISTDIR}/wpa_supplicant 97a77de1cSSam LefflerHOSTAPD_DISTDIR?= ${WPA_DISTDIR}/hostapd 107a77de1cSSam Leffler 1125ecdc7dSCy Schubert.PATH.c:${.CURDIR:H} 127a77de1cSSam Leffler 137a77de1cSSam LefflerCFLAGS+=-I${.CURDIR} 1454ad8e82SBernhard SchmidtCFLAGS+=-I${HOSTAPD_DISTDIR} 157a77de1cSSam LefflerCFLAGS+=-I${WPA_DISTDIR}/src 1681b521d2SCy SchubertCFLAGS+=-I${WPA_DISTDIR}/src/ap 177a77de1cSSam LefflerCFLAGS+=-I${WPA_DISTDIR}/src/common 187a77de1cSSam LefflerCFLAGS+=-I${WPA_DISTDIR}/src/crypto 1954ad8e82SBernhard SchmidtCFLAGS+=-I${WPA_DISTDIR}/src/drivers 2081b521d2SCy SchubertCFLAGS+=-I${WPA_DISTDIR}/src/eap_common 2181b521d2SCy SchubertCFLAGS+=-I${WPA_DISTDIR}/src/eap_peer 2281b521d2SCy SchubertCFLAGS+=-I${WPA_DISTDIR}/src/eap_server 2381b521d2SCy SchubertCFLAGS+=-I${WPA_DISTDIR}/src/eapol_auth 2481b521d2SCy SchubertCFLAGS+=-I${WPA_DISTDIR}/src/eapol_supp 257a77de1cSSam LefflerCFLAGS+=-I${WPA_DISTDIR}/src/l2_packet 2681b521d2SCy SchubertCFLAGS+=-I${WPA_DISTDIR}/src/radius 2781b521d2SCy SchubertCFLAGS+=-I${WPA_DISTDIR}/src/rsn_supp 2881b521d2SCy SchubertCFLAGS+=-I${WPA_DISTDIR}/src/tls 297a77de1cSSam LefflerCFLAGS+=-I${WPA_DISTDIR}/src/utils 30f05cddf9SRui PauloCFLAGS+=-I${WPA_DISTDIR}/src/wps 317a77de1cSSam Leffler 3225ecdc7dSCy SchubertCFLAGS+=-DCONFIG_DRIVER_BSD 3325ecdc7dSCy SchubertCFLAGS+=-DCONFIG_DRIVER_WIRED 3425ecdc7dSCy SchubertCFLAGS+=-DCONFIG_DRIVER_RADIUS_ACL 357a77de1cSSam LefflerCFLAGS+=-DCONFIG_CTRL_IFACE 367a77de1cSSam LefflerCFLAGS+=-DCONFIG_CTRL_IFACE_UNIX 3725ecdc7dSCy SchubertCFLAGS+=-DCONFIG_IEEE80211AC 3825ecdc7dSCy SchubertCFLAGS+=-DCONFIG_IEEE80211N 3925ecdc7dSCy SchubertCFLAGS+=-DCONFIG_IEEE80211R 4025ecdc7dSCy SchubertCFLAGS+=-DCONFIG_IEEE80211W 41b2d7ecddSCy SchubertCFLAGS+=-DTLS_DEFAULT_CIPHERS=\"DEFAULT:!EXP:!LOW\" 4225ecdc7dSCy SchubertCFLAGS+=-DCONFIG_DEBUG_SYSLOG 4325ecdc7dSCy SchubertCFLAGS+=-DPKCS12_FUNCS 4425ecdc7dSCy SchubertCFLAGS+=-DCONFIG_GAS 4525ecdc7dSCy SchubertCFLAGS+=-DCONFIG_PEERKEY 4625ecdc7dSCy SchubertCFLAGS+=-DCONFIG_PRIVSEP 4725ecdc7dSCy SchubertCFLAGS+=-DCONFIG_SMARTCARD 48c1d255d3SCy SchubertCFLAGS+=-DCONFIG_TDLS 4925ecdc7dSCy SchubertCFLAGS+=-DCONFIG_TERMINATE_ONLASTIF 5025ecdc7dSCy SchubertCFLAGS+=-DCONFIG_TLS=openssl 5125ecdc7dSCy SchubertCFLAGS+=-DCONFIG_MATCH_IFACE 52c1d255d3SCy SchubertCFLAGS+=-DCONFIG_PTKSA_CACHE 5325ecdc7dSCy SchubertCFLAGS+=-DEAP_SERVER 5425ecdc7dSCy SchubertCFLAGS+=-DEAP_SERVER_GTC 5525ecdc7dSCy SchubertCFLAGS+=-DEAP_SERVER_IDENTITY 5625ecdc7dSCy SchubertCFLAGS+=-DEAP_SERVER_MD5 5725ecdc7dSCy SchubertCFLAGS+=-DEAP_SERVER_MSCHAPV2 5825ecdc7dSCy SchubertCFLAGS+=-DEAP_SERVER_PEAP 5925ecdc7dSCy SchubertCFLAGS+=-DEAP_SERVER_TLS 6025ecdc7dSCy SchubertCFLAGS+=-DEAP_SERVER_TTLS 6125ecdc7dSCy SchubertCFLAGS+=-DEAP_SERVER_WSC 6225ecdc7dSCy SchubertCFLAGS+=-DEAP_TLS_FUNCS 633968b47cSCy SchubertCFLAGS+=-DCONFIG_WNM 643968b47cSCy SchubertCFLAGS+=-DCONFIG_MBO 65bd452dcbSCy SchubertCFLAGS+=-DCONFIG_RSN_PREAUTH 667999a7f2SCy SchubertCFLAGS+=-DCONFIG_WEP 6725ecdc7dSCy Schubert 6825ecdc7dSCy Schubert.if ${MK_WPA_SUPPLICANT_EAPOL} != "no" 6925ecdc7dSCy SchubertCFLAGS+=-DCONFIG_HS20 \ 7025ecdc7dSCy Schubert -DEAP_GTC \ 7125ecdc7dSCy Schubert -DEAP_LEAP \ 7225ecdc7dSCy Schubert -DEAP_MD5 \ 7325ecdc7dSCy Schubert -DEAP_MSCHAPv2 \ 7425ecdc7dSCy Schubert -DEAP_OTP \ 7525ecdc7dSCy Schubert -DEAP_PEAP \ 7625ecdc7dSCy Schubert -DEAP_PSK \ 7725ecdc7dSCy Schubert -DEAP_TLS \ 7825ecdc7dSCy Schubert -DEAP_TTLS \ 7925ecdc7dSCy Schubert -DEAP_WSC \ 80c9516b83SCy Schubert -DIEEE8021X_EAPOL \ 81c9516b83SCy Schubert -DCONFIG_INTERWORKING \ 82c9516b83SCy Schubert -DCONFIG_WPS \ 83c9516b83SCy Schubert -DCONFIG_WPS2 \ 84c9516b83SCy Schubert -DCONFIG_WPS_UPNP \ 85c9516b83SCy Schubert -DCONFIG_WPS_OOB 8625ecdc7dSCy SchubertNEED_AES_EAX=y 8725ecdc7dSCy SchubertNEED_AES_ENCBLOCK=y 8825ecdc7dSCy SchubertNEED_AES_OMAC1=y 8925ecdc7dSCy Schubert.endif 9025ecdc7dSCy Schubert 91ba5de3c2SCy Schubert.if ${MK_OPENSSL} != "no" 92ba5de3c2SCy SchubertCFLAGS+=-DCONFIG_PASN 93ba5de3c2SCy Schubert.endif 94ba5de3c2SCy Schubert 9525ecdc7dSCy Schubert.if !empty(CFLAGS:M*-DEAP_AKA) 9625ecdc7dSCy SchubertNEED_SIM_COMMON=y 9725ecdc7dSCy SchubertNEED_AES_CBC=y 9825ecdc7dSCy Schubert.endif 9925ecdc7dSCy Schubert 10025ecdc7dSCy Schubert.if !empty(CFLAGS:M*-DEAP_SIM) 10125ecdc7dSCy SchubertNEED_SIM_COMMON=y 10225ecdc7dSCy SchubertNEED_AES_CBC=y 10325ecdc7dSCy Schubert.endif 10425ecdc7dSCy Schubert 10525ecdc7dSCy Schubert.if defined(NEED_SIM_COMMON) 10625ecdc7dSCy SchubertNEED_FIPS186_2_PRF=y 10725ecdc7dSCy Schubert.endif 10825ecdc7dSCy Schubert 10925ecdc7dSCy Schubert.if !empty(CFLAGS:M*-DEAP_GPSK) 11025ecdc7dSCy SchubertCFLAGS+=-DEAP_GPSK_SHA256 11125ecdc7dSCy SchubertNEED_AES_OMAC1=y 11225ecdc7dSCy Schubert.endif 113