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
|
|
|
|
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
|
2009-03-02 02:28:22 +00:00
|
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/l2_packet
|
|
|
|
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+=-DCONF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_SERVER_WSC
|
|
|
|
CFLAGS+=-DEAP_TLS_FUNCS
|
|
|
|
|
|
|
|
.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 \
|
|
|
|
-DIEEE8021X_EAPOL
|
|
|
|
NEED_AES_EAX=y
|
|
|
|
NEED_AES_ENCBLOCK=y
|
|
|
|
NEED_AES_OMAC1=y
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.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
|
2009-03-02 02:28:22 +00:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|