5 WPA_SUPPLICANT_DISTDIR?= ${.CURDIR}/../../../contrib/wpa_supplicant
6 .PATH: ${.CURDIR}/.. ${WPA_SUPPLICANT_DISTDIR}
9 SRCS= config.c eloop.c common.c md5.c rc4.c sha1.c aes_wrap.c \
10 wpa_supplicant.c events.c wpa.c preauth.c \
11 ctrl_iface.c l2_packet.c main.c drivers.c driver_freebsd.c \
12 driver_ndis.c driver_ndis_.c Packet32.c
14 MAN= wpa_supplicant.8 wpa_supplicant.conf.5
16 CFLAGS+= -I${.CURDIR} -I${WPA_SUPPLICANT_DISTDIR}
17 CFLAGS+= -DCONFIG_DRIVER_BSD
18 CFLAGS+= -DCONFIG_DRIVER_NDIS
19 CFLAGS+= -DCONFIG_CTRL_IFACE
24 # NB: we only support wpa_supplicant.conf file
25 SRCS+= config_file.c base64.c
26 CFLAGS+=-DCONFIG_BACKEND_FILE
28 .if ${MK_WPA_SUPPLICANT_EAPOL} != "no"
29 SRCS+= eapol_sm.c eap.c
30 CFLAGS+= -DIEEE8021X_EAPOL
32 .if ${MK_OPENSSL} != "no" && !defined(RELEASE_CRUNCH)
33 CFLAGS+=-DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK \
34 -DEAP_TLV -DEAP_TLS_FUNCS
35 SRCS+= eap_tls.c eap_peap.c eap_mschapv2.c eap_leap.c \
36 eap_psk.c eap_psk_common.c \
37 eap_tlv.c eap_tls_common.c tls_openssl.c ms_funcs.c crypto.c
39 CFLAGS+=-DEAP_TTLS -DEAP_MD5
40 SRCS+= eap_ttls.c eap_md5.c
42 # NB: requires patch to openssl
46 DPADD+= ${LIBSSL} ${LIBCRYPTO}
47 LDADD+= -lssl -lcrypto
54 .include <bsd.prog.mk>