3 .include "${.CURDIR}/../Makefile.inc"
5 .PATH.c:${WPA_SUPPLICANT_DISTDIR} \
6 ${WPA_DISTDIR}/src/drivers
9 SRCS= aes-unwrap.c base64.c blacklist.c bss.c common.c config.c \
10 config_file.c ctrl_iface.c ctrl_iface_unix.c driver_bsd.c \
11 driver_common.c driver_ndis.c driver_wired.c drivers.c \
12 eap_register.c eloop.c events.c gas.c gas_query.c hs20.c \
13 hs20_supplicant.c http_client.c http_server.c httpread.c \
14 ieee802_11_common.c interworking.c l2_packet_freebsd.c main.c \
15 md5.c notify.c offchannel.c os_unix.c peerkey.c pmksa_cache.c \
16 preauth.c scan.c upnp_xml.c uuid.c wpa.c wpa_common.c wpa_debug.c \
17 wpa_ft.c wpa_ie.c wpa_supplicant.c wpabuf.c wpas_glue.c wps.c \
18 wps_attr_build.c wps_attr_parse.c wps_attr_process.c \
19 wps_common.c wps_dev_attr.c wps_enrollee.c wps_registrar.c \
20 wps_supplicant.c wps_upnp.c wps_upnp_ap.c wps_upnp_event.c \
21 wps_upnp_ssdp.c wps_upnp_web.c Packet32.c
23 MAN= wpa_supplicant.8 wpa_supplicant.conf.5
25 .if ${MK_EXAMPLES} != "no"
26 FILESDIR= ${SHAREDIR}/examples/etc
27 .PATH: ${WPA_SUPPLICANT_DISTDIR}
28 FILES= wpa_supplicant.conf
31 CFLAGS+=-DCONFIG_BACKEND_FILE \
32 -DCONFIG_DEBUG_SYSLOG \
34 -DCONFIG_DRIVER_NDIS \
35 -DCONFIG_DRIVER_WIRED \
38 -DCONFIG_TERMINATE_ONLASTIF \
42 -DCONFIG_TLS=openssl \
44 -DCONFIG_INTERWORKING \
53 # User customizations to the wpa_supplicant build environment
54 CFLAGS+=${WPA_SUPPLICANT_CFLAGS}
55 #DPADD+=${WPA_SUPPLICANT_DPADD}
56 LDADD+=${WPA_SUPPLICANT_LDADD}
57 #LDFLAGS+=${WPA_SUPPLICANT_LDFLAGS}
59 .if ${MK_WPA_SUPPLICANT_EAPOL} != "no"
98 .if !empty(CFLAGS:M-DCONFIG_WPS)
102 .if !empty(CFLAGS:M*-DEAP_AKA)
108 .if !empty(CFLAGS:M*-DEAP_SIM)
114 .if defined(NEED_SIM_COMMON)
115 SRCS+= eap_sim_common.c
119 # PC/SC interface for smartcards (USIM, GSM SIM)
120 # GSM/UMTS authentication algorithm (for EAP-SIM/EAP-AKA)
121 # NB: requires devel/pcsc-lite
123 # WPA_SUPPLICANT_CFLAGS=-DEAP_AKA -DPCSC_FUNCS -I/usr/local/include/PCSC
124 # WPA_SUPPLICANT_LDADD=-L/usr/local/lib
126 .if !empty(CFLAGS:M*-DPCSC_FUNCS)
129 LDADD+=-lpcsclite -lpthread
132 .if !empty(CFLAGS:M*-DEAP_GPSK)
133 CFLAGS+=-DEAP_GPSK_SHA256
139 .if !empty(CFLAGS:M*-DEAP_PAX)
144 .if !empty(CFLAGS:M*-DEAP_SAKE)
149 .include "${.CURDIR}/../Makefile.crypto"
151 .include <bsd.prog.mk>