1.include <src.opts.mk> 2 3BINDIR?= /usr/sbin 4 5WARNS?= 0 6 7WPA_DISTDIR?= ${SRCTOP}/contrib/wpa 8WPA_SUPPLICANT_DISTDIR?=${WPA_DISTDIR}/wpa_supplicant 9HOSTAPD_DISTDIR?= ${WPA_DISTDIR}/hostapd 10 11.PATH.c:${.CURDIR:H} 12 13CFLAGS+=-I${.CURDIR} 14CFLAGS+=-I${HOSTAPD_DISTDIR} 15CFLAGS+=-I${WPA_DISTDIR}/src 16CFLAGS+=-I${WPA_DISTDIR}/src/ap 17CFLAGS+=-I${WPA_DISTDIR}/src/common 18CFLAGS+=-I${WPA_DISTDIR}/src/crypto 19CFLAGS+=-I${WPA_DISTDIR}/src/drivers 20CFLAGS+=-I${WPA_DISTDIR}/src/eap_common 21CFLAGS+=-I${WPA_DISTDIR}/src/eap_peer 22CFLAGS+=-I${WPA_DISTDIR}/src/eap_server 23CFLAGS+=-I${WPA_DISTDIR}/src/eapol_auth 24CFLAGS+=-I${WPA_DISTDIR}/src/eapol_supp 25CFLAGS+=-I${WPA_DISTDIR}/src/l2_packet 26CFLAGS+=-I${WPA_DISTDIR}/src/radius 27CFLAGS+=-I${WPA_DISTDIR}/src/rsn_supp 28CFLAGS+=-I${WPA_DISTDIR}/src/tls 29CFLAGS+=-I${WPA_DISTDIR}/src/utils 30CFLAGS+=-I${WPA_DISTDIR}/src/wps 31 32CFLAGS+=-DCONFIG_DRIVER_BSD 33CFLAGS+=-DCONFIG_DRIVER_WIRED 34CFLAGS+=-DCONFIG_DRIVER_RADIUS_ACL 35CFLAGS+=-DCONFIG_CTRL_IFACE 36CFLAGS+=-DCONFIG_CTRL_IFACE_UNIX 37CFLAGS+=-DCONFIG_IEEE80211AC 38CFLAGS+=-DCONFIG_IEEE80211N 39CFLAGS+=-DCONFIG_IEEE80211R 40CFLAGS+=-DCONFIG_IEEE80211W 41CFLAGS+=-DTLS_DEFAULT_CIPHERS=\"DEFAULT:!EXP:!LOW\" 42CFLAGS+=-DCONFIG_DEBUG_SYSLOG 43CFLAGS+=-DPKCS12_FUNCS 44CFLAGS+=-DCONFIG_GAS 45CFLAGS+=-DCONFIG_PEERKEY 46CFLAGS+=-DCONFIG_PRIVSEP 47CFLAGS+=-DCONFIG_SMARTCARD 48CFLAGS+=-DCONFIG_TDLS 49CFLAGS+=-DCONFIG_TERMINATE_ONLASTIF 50CFLAGS+=-DCONFIG_TLS=openssl 51CFLAGS+=-DCONFIG_MATCH_IFACE 52CFLAGS+=-DCONFIG_PTKSA_CACHE 53CFLAGS+=-DEAP_SERVER 54CFLAGS+=-DEAP_SERVER_GTC 55CFLAGS+=-DEAP_SERVER_IDENTITY 56CFLAGS+=-DEAP_SERVER_MD5 57CFLAGS+=-DEAP_SERVER_MSCHAPV2 58CFLAGS+=-DEAP_SERVER_PEAP 59CFLAGS+=-DEAP_SERVER_TLS 60CFLAGS+=-DEAP_SERVER_TTLS 61CFLAGS+=-DEAP_SERVER_WSC 62CFLAGS+=-DEAP_TLS_FUNCS 63CFLAGS+=-DCONFIG_WNM 64CFLAGS+=-DCONFIG_MBO 65CFLAGS+=-DCONFIG_RSN_PREAUTH 66CFLAGS+=-DCONFIG_WEP 67 68.if ${MK_WPA_SUPPLICANT_EAPOL} != "no" 69CFLAGS+=-DCONFIG_HS20 \ 70 -DEAP_GTC \ 71 -DEAP_LEAP \ 72 -DEAP_MD5 \ 73 -DEAP_MSCHAPv2 \ 74 -DEAP_OTP \ 75 -DEAP_PEAP \ 76 -DEAP_PSK \ 77 -DEAP_TLS \ 78 -DEAP_TTLS \ 79 -DEAP_WSC \ 80 -DIEEE8021X_EAPOL \ 81 -DCONFIG_INTERWORKING \ 82 -DCONFIG_WPS \ 83 -DCONFIG_WPS2 \ 84 -DCONFIG_WPS_UPNP \ 85 -DCONFIG_WPS_OOB 86NEED_AES_EAX=y 87NEED_AES_ENCBLOCK=y 88NEED_AES_OMAC1=y 89.endif 90 91.if ${MK_OPENSSL} != "no" 92CFLAGS+=-DCONFIG_PASN 93.endif 94 95.if !empty(CFLAGS:M*-DEAP_AKA) 96NEED_SIM_COMMON=y 97NEED_AES_CBC=y 98.endif 99 100.if !empty(CFLAGS:M*-DEAP_SIM) 101NEED_SIM_COMMON=y 102NEED_AES_CBC=y 103.endif 104 105.if defined(NEED_SIM_COMMON) 106NEED_FIPS186_2_PRF=y 107.endif 108 109.if !empty(CFLAGS:M*-DEAP_GPSK) 110CFLAGS+=-DEAP_GPSK_SHA256 111NEED_AES_OMAC1=y 112.endif 113