5 .include "${.CURDIR}/../Makefile.inc"
7 .PATH.c:${WPA_SUPPLICANT_DISTDIR} \
8 ${WPA_DISTDIR}/src/drivers
11 SRCS= ap_drv_ops.c base64.c blacklist.c bss.c common.c config.c \
12 config_file.c ctrl_iface.c ctrl_iface_unix.c driver_bsd.c \
13 driver_common.c driver_ndis.c driver_wired.c drivers.c \
14 eap_register.c eloop.c events.c gas.c gas_query.c hs20.c \
15 hs20_supplicant.c http_client.c http_server.c httpread.c \
16 hw_features_common.c \
17 ieee802_11_common.c ieee802_11_shared.c \
18 interworking.c l2_packet_freebsd.c main.c \
19 notify.c offchannel.c os_unix.c peerkey.c pmksa_cache.c \
20 preauth.c scan.c upnp_xml.c uuid.c wmm_ac.c \
21 wpa.c wpa_common.c wpa_debug.c \
22 wpa_ft.c wpa_ie.c wpa_supplicant.c wpabuf.c wpas_glue.c wps.c \
23 wps_attr_build.c wps_attr_parse.c wps_attr_process.c \
24 wps_common.c wps_dev_attr.c wps_enrollee.c wps_registrar.c \
25 wps_supplicant.c wps_upnp.c wps_upnp_ap.c wps_upnp_event.c \
26 wps_upnp_ssdp.c wps_upnp_web.c Packet32.c
28 MAN= wpa_supplicant.8 wpa_supplicant.conf.5
30 .if ${MK_EXAMPLES} != "no"
31 FILESDIR= ${SHAREDIR}/examples/etc
32 .PATH: ${WPA_SUPPLICANT_DISTDIR}
33 FILES= wpa_supplicant.conf
36 CFLAGS+=-DCONFIG_BACKEND_FILE \
37 -DCONFIG_DEBUG_SYSLOG \
39 -DCONFIG_DRIVER_NDIS \
40 -DCONFIG_DRIVER_WIRED \
43 -DCONFIG_TERMINATE_ONLASTIF \
47 -DCONFIG_TLS=openssl \
49 -DCONFIG_INTERWORKING \
57 # User customizations to the wpa_supplicant build environment
58 CFLAGS+=${WPA_SUPPLICANT_CFLAGS}
59 #DPADD+=${WPA_SUPPLICANT_DPADD}
60 LDADD+=${WPA_SUPPLICANT_LDADD}
61 #LDFLAGS+=${WPA_SUPPLICANT_LDFLAGS}
63 .if ${MK_WPA_SUPPLICANT_EAPOL} != "no"
102 .if !empty(CFLAGS:M-DCONFIG_WPS)
106 .if !empty(CFLAGS:M*-DEAP_AKA)
112 .if !empty(CFLAGS:M*-DEAP_SIM)
118 .if defined(NEED_SIM_COMMON)
119 SRCS+= eap_sim_common.c
123 # PC/SC interface for smartcards (USIM, GSM SIM)
124 # GSM/UMTS authentication algorithm (for EAP-SIM/EAP-AKA)
125 # NB: requires devel/pcsc-lite
127 # WPA_SUPPLICANT_CFLAGS=-DEAP_AKA -DPCSC_FUNCS -I/usr/local/include/PCSC
128 # WPA_SUPPLICANT_LDADD=-L/usr/local/lib
130 .if !empty(CFLAGS:M*-DPCSC_FUNCS)
132 LIBADD+= pcslite pthread
135 .if !empty(CFLAGS:M*-DEAP_GPSK)
136 CFLAGS+=-DEAP_GPSK_SHA256
142 .if !empty(CFLAGS:M*-DEAP_PAX)
147 .if !empty(CFLAGS:M*-DEAP_SAKE)
152 .include "${.CURDIR}/../Makefile.crypto"
154 .include <bsd.prog.mk>