2005-06-05 21:18:53 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2021-05-20 21:28:17 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2005-06-05 21:18:53 +00:00
|
|
|
BINDIR?= /usr/sbin
|
2009-03-02 02:28:22 +00:00
|
|
|
|
2020-09-18 17:17:46 +00:00
|
|
|
WARNS?= 0
|
|
|
|
|
2017-03-02 05:04:45 +00:00
|
|
|
WPA_DISTDIR?= ${SRCTOP}/contrib/wpa/
|
2009-03-02 02:28:22 +00:00
|
|
|
WPA_SUPPLICANT_DISTDIR?=${WPA_DISTDIR}/wpa_supplicant
|
|
|
|
HOSTAPD_DISTDIR?= ${WPA_DISTDIR}/hostapd
|
|
|
|
|
2021-05-20 21:28:17 +00:00
|
|
|
.PATH.c:${.CURDIR:H}
|
2009-03-02 02:28:22 +00:00
|
|
|
|
|
|
|
CFLAGS+=-I${.CURDIR}
|
2012-04-26 17:35:11 +00:00
|
|
|
CFLAGS+=-I${HOSTAPD_DISTDIR}
|
2009-03-02 02:28:22 +00:00
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src
|
2021-08-26 23:17:11 +00:00
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/ap
|
2009-03-02 02:28:22 +00:00
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/common
|
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/crypto
|
2012-04-26 17:35:11 +00:00
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/drivers
|
2021-08-26 23:17:11 +00:00
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/eap_common
|
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/eap_peer
|
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/eap_server
|
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/eapol_auth
|
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/eapol_supp
|
2009-03-02 02:28:22 +00:00
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/l2_packet
|
2021-08-26 23:17:11 +00:00
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/radius
|
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/rsn_supp
|
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/tls
|
2009-03-02 02:28:22 +00:00
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/utils
|
2013-07-04 21:12:58 +00:00
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/wps
|
2009-03-02 02:28:22 +00:00
|
|
|
|
2021-05-20 21:28:17 +00:00
|
|
|
CFLAGS+=-DCONFIG_DRIVER_BSD
|
|
|
|
CFLAGS+=-DCONFIG_DRIVER_WIRED
|
|
|
|
CFLAGS+=-DCONFIG_DRIVER_RADIUS_ACL
|
|
|
|
CFLAGS+=-DCONFIG_CTRL_IFACE
|
|
|
|
CFLAGS+=-DCONFIG_CTRL_IFACE_UNIX
|
|
|
|
CFLAGS+=-DCONFIG_IEEE80211AC
|
|
|
|
CFLAGS+=-DCONFIG_IEEE80211N
|
|
|
|
CFLAGS+=-DCONFIG_IEEE80211R
|
|
|
|
CFLAGS+=-DCONFIG_IEEE80211W
|
|
|
|
CFLAGS+=-DTLS_DEFAULT_CIPHERS=\"DEFAULT:!EXP:!LOW\"
|
|
|
|
CFLAGS+=-DCONFIG_DEBUG_SYSLOG
|
|
|
|
CFLAGS+=-DPKCS12_FUNCS
|
|
|
|
CFLAGS+=-DCONFIG_GAS
|
|
|
|
CFLAGS+=-DCONFIG_PEERKEY
|
|
|
|
CFLAGS+=-DCONFIG_PRIVSEP
|
|
|
|
CFLAGS+=-DCONFIG_SMARTCARD
|
2021-09-03 13:07:19 +00:00
|
|
|
CFLAGS+=-DCONFIG_TDLS
|
2021-05-20 21:28:17 +00:00
|
|
|
CFLAGS+=-DCONFIG_TERMINATE_ONLASTIF
|
|
|
|
CFLAGS+=-DCONFIG_TLS=openssl
|
|
|
|
CFLAGS+=-DCONFIG_MATCH_IFACE
|
2021-09-03 13:07:19 +00:00
|
|
|
CFLAGS+=-DCONFIG_PTKSA_CACHE
|
2021-05-20 21:28:17 +00:00
|
|
|
CFLAGS+=-DEAP_SERVER
|
|
|
|
CFLAGS+=-DEAP_SERVER_GTC
|
|
|
|
CFLAGS+=-DEAP_SERVER_IDENTITY
|
|
|
|
CFLAGS+=-DEAP_SERVER_MD5
|
|
|
|
CFLAGS+=-DEAP_SERVER_MSCHAPV2
|
|
|
|
CFLAGS+=-DEAP_SERVER_PEAP
|
|
|
|
CFLAGS+=-DEAP_SERVER_TLS
|
|
|
|
CFLAGS+=-DEAP_SERVER_TTLS
|
|
|
|
CFLAGS+=-DEAP_SERVER_WSC
|
|
|
|
CFLAGS+=-DEAP_TLS_FUNCS
|
2021-09-03 13:14:01 +00:00
|
|
|
CFLAGS+=-DCONFIG_WNM
|
|
|
|
CFLAGS+=-DCONFIG_WNM_AP
|
|
|
|
CFLAGS+=-DCONFIG_MBO
|
2021-09-03 13:14:59 +00:00
|
|
|
CFLAGS+=-DCONFIG_RSN_PREAUTH
|
2021-05-20 21:28:17 +00:00
|
|
|
|
|
|
|
.if ${MK_WPA_SUPPLICANT_EAPOL} != "no"
|
|
|
|
CFLAGS+=-DCONFIG_HS20 \
|
|
|
|
-DEAP_GTC \
|
|
|
|
-DEAP_LEAP \
|
|
|
|
-DEAP_MD5 \
|
|
|
|
-DEAP_MSCHAPv2 \
|
|
|
|
-DEAP_OTP \
|
|
|
|
-DEAP_PEAP \
|
|
|
|
-DEAP_PSK \
|
|
|
|
-DEAP_TLS \
|
|
|
|
-DEAP_TTLS \
|
|
|
|
-DEAP_WSC \
|
2021-11-10 03:05:03 +00:00
|
|
|
-DIEEE8021X_EAPOL \
|
|
|
|
-DCONFIG_INTERWORKING \
|
|
|
|
-DCONFIG_WPS \
|
|
|
|
-DCONFIG_WPS2 \
|
|
|
|
-DCONFIG_WPS_UPNP \
|
|
|
|
-DCONFIG_WPS_OOB
|
2021-05-20 21:28:17 +00:00
|
|
|
NEED_AES_EAX=y
|
|
|
|
NEED_AES_ENCBLOCK=y
|
|
|
|
NEED_AES_OMAC1=y
|
|
|
|
.endif
|
|
|
|
|
2021-11-09 22:52:44 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
|
|
CFLAGS+=-DCONFIG_PASN
|
|
|
|
.endif
|
|
|
|
|
2021-05-20 21:28:17 +00:00
|
|
|
.if !empty(CFLAGS:M*-DEAP_AKA)
|
|
|
|
NEED_SIM_COMMON=y
|
|
|
|
NEED_AES_CBC=y
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(CFLAGS:M*-DEAP_SIM)
|
|
|
|
NEED_SIM_COMMON=y
|
|
|
|
NEED_AES_CBC=y
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(NEED_SIM_COMMON)
|
|
|
|
NEED_FIPS186_2_PRF=y
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(CFLAGS:M*-DEAP_GPSK)
|
|
|
|
CFLAGS+=-DEAP_GPSK_SHA256
|
|
|
|
NEED_AES_OMAC1=y
|
|
|
|
.endif
|