5 .include "../Makefile.inc"
7 .PATH.c:${WPA_SUPPLICANT_DISTDIR} \
8 ${WPA_DISTDIR}/src/eap_peer \
9 ${WPA_DISTDIR}/src/drivers
14 SRCS= base64.c bitfield.c blacklist.c bss.c cli.c common.c \
15 config.c config_file.c \
16 ctrl_iface.c ctrl_iface_common.c ctrl_iface_unix.c \
17 dh_groups.c driver_bsd.c driver_common.c \
18 driver_ndis.c driver_wired.c driver_wired_common.c drivers.c \
19 eap_register.c eloop.c \
20 events.c gas.c gas_query.c \
21 http_client.c http_server.c \
22 httpread.c hw_features_common.c \
23 ieee802_11_common.c l2_packet_freebsd.c main.c \
24 notify.c offchannel.c op_classes.c os_unix.c pmksa_cache.c preauth.c \
25 rrm.c scan.c upnp_xml.c \
26 wmm_ac.c wpa.c wpa_common.c wpa_ctrl.c \
27 wpa_debug.c wpa_ft.c wpa_ie.c wpa_supplicant.c wpabuf.c wpas_glue.c \
30 MAN= wpa_supplicant.8 wpa_supplicant.conf.5
32 .if ${MK_EXAMPLES} != "no"
33 FILESDIR= ${SHAREDIR}/examples/etc
34 .PATH: ${WPA_SUPPLICANT_DISTDIR}
35 FILES= wpa_supplicant.conf
38 CFLAGS+=-DCONFIG_BACKEND_FILE \
39 -DCONFIG_DEBUG_SYSLOG \
41 -DCONFIG_DRIVER_NDIS \
42 -DCONFIG_DRIVER_WIRED \
47 -DCONFIG_IEEE80211AC \
48 -DCONFIG_IEEE80211AX \
52 -DCONFIG_TERMINATE_ONLASTIF \
53 -DCONFIG_TLS=openssl \
61 # User customizations to the wpa_supplicant build environment
62 CFLAGS+=${WPA_SUPPLICANT_CFLAGS}
63 #DPADD+=${WPA_SUPPLICANT_DPADD}
64 LDADD+=${WPA_SUPPLICANT_LDADD}
65 #LDFLAGS+=${WPA_SUPPLICANT_LDFLAGS}
67 .if ${MK_WPA_SUPPLICANT_EAPOL} != "no"
68 CFLAGS+=-DCONFIG_WPS \
70 -DCONFIG_INTERWORKING \
106 wps.c wps_attr_build.c wps_attr_parse.c wps_attr_process.c \
107 wps_common.c wps_dev_attr.c wps_enrollee.c wps_registrar.c \
108 wps_supplicant.c wps_upnp.c wps_upnp_ap.c wps_upnp_event.c \
109 wps_upnp_ssdp.c wps_upnp_web.c
116 .if !empty(CFLAGS:M*-DEAP_AKA)
122 .if !empty(CFLAGS:M*-DEAP_SIM)
128 .if defined(NEED_SIM_COMMON)
129 SRCS+= eap_sim_common.c
133 # PC/SC interface for smartcards (USIM, GSM SIM)
134 # GSM/UMTS authentication algorithm (for EAP-SIM/EAP-AKA)
135 # NB: requires devel/pcsc-lite
137 # WPA_SUPPLICANT_CFLAGS=-DEAP_AKA -DPCSC_FUNCS -I/usr/local/include/PCSC
138 # WPA_SUPPLICANT_LDADD=-L/usr/local/lib
140 .if !empty(CFLAGS:M*-DPCSC_FUNCS)
142 LIBADD+= pcslite pthread
145 .if !empty(CFLAGS:M*-DEAP_GPSK)
146 CFLAGS+=-DEAP_GPSK_SHA256
152 .if !empty(CFLAGS:M*-DEAP_PAX)
157 .if !empty(CFLAGS:M*-DEAP_SAKE)
162 .include "../Makefile.crypto"
164 .include <bsd.prog.mk>