mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
115 lines
2.5 KiB
Makefile
115 lines
2.5 KiB
Makefile
|
|
.include <src.opts.mk>
|
|
|
|
BINDIR?= /usr/sbin
|
|
|
|
WARNS?= 0
|
|
|
|
WPA_DISTDIR?= ${SRCTOP}/contrib/wpa
|
|
WPA_SUPPLICANT_DISTDIR?=${WPA_DISTDIR}/wpa_supplicant
|
|
HOSTAPD_DISTDIR?= ${WPA_DISTDIR}/hostapd
|
|
|
|
.PATH.c:${.CURDIR:H}
|
|
|
|
CFLAGS+=-I${.CURDIR}
|
|
CFLAGS+=-I${HOSTAPD_DISTDIR}
|
|
CFLAGS+=-I${WPA_DISTDIR}/src
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/ap
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/common
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/crypto
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/drivers
|
|
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
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/l2_packet
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/radius
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/rsn_supp
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/tls
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/utils
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/wps
|
|
|
|
CFLAGS+=-DCONFIG_DRIVER_BSD
|
|
CFLAGS+=-DCONFIG_DRIVER_WIRED
|
|
CFLAGS+=-DCONFIG_DRIVER_RADIUS_ACL
|
|
CFLAGS+=-DCONFIG_CTRL_IFACE
|
|
CFLAGS+=-DCONF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EAP_MSCHAPv2 \
|
|
-DEAP_OTP \
|
|
-DEAP_PEAP \
|
|
-DEAP_PSK \
|
|
-DEAP_TLS \
|
|
-DEAP_TTLS \
|
|
-DEAP_WSC \
|
|
-DIEEE8021X_EAPOL \
|
|
-DCONFIG_INTERWORKING \
|
|
-DCONFIG_WPS \
|
|
-DCONFIG_WPS2 \
|
|
-DCONFIG_WPS_UPNP \
|
|
-DCONFIG_WPS_OOB
|
|
NEED_AES_EAX=y
|
|
NEED_AES_ENCBLOCK=y
|
|
NEED_AES_OMAC1=y
|
|
.endif
|
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
CFLAGS+=-DCONFIG_PASN
|
|
.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
|