5 .include "../Makefile.inc"
7 .PATH.c:${WPA_SUPPLICANT_DISTDIR} \
8 ${WPA_DISTDIR}/src/drivers
11 SRCS= accounting.c ap_drv_ops.c ap_config.c ap_list.c \
14 base64.c beacon.c blacklist.c bss.c bss_load.c common.c config.c \
15 config_file.c ctrl_iface.c ctrl_iface_common.c \
16 ctrl_iface_unix.c dfs.c driver_bsd.c \
17 driver_common.c driver_ndis.c driver_wired.c drivers.c \
18 eap_register.c eapol_auth_sm.c eap_server_methods.c eap_server.c \
20 eloop.c events.c gas.c gas_query.c gas_serv.c hostapd.c hs20.c \
21 hs20_supplicant.c http_client.c http_server.c httpread.c \
22 hw_features.c hw_features_common.c \
23 ieee802_11.c ieee802_11_auth.c ieee802_11_common.c \
24 ieee802_11_shared.c ieee802_1x.c \
25 interworking.c ip_addr.c l2_packet_freebsd.c main.c \
27 notify.c offchannel.c os_unix.c peerkey.c peerkey_auth.c \
30 preauth.c scan.c radius.c radius_client.c radius_das.c rrm.c \
32 tkip_countermeasures.c \
33 upnp_xml.c utils.c uuid.c vlan.c vlan_ifconfig.c \
34 vlan_init.c wmm.c wmm_ac.c \
35 wpa.c wpa_auth.c wpa_auth_ft.c wpa_common.c wpa_debug.c \
36 wpa_auth_glue.c wpa_auth_ie.c wpa_ft.c \
37 wpa_ie.c wpa_supplicant.c wpabuf.c wpas_glue.c wps.c \
38 wps_attr_build.c wps_attr_parse.c wps_attr_process.c \
39 wps_common.c wps_dev_attr.c wps_enrollee.c wps_hostapd.c \
41 wps_supplicant.c wps_upnp.c wps_upnp_ap.c wps_upnp_event.c \
42 wps_upnp_ssdp.c wps_upnp_web.c Packet32.c
44 MAN= wpa_supplicant.8 wpa_supplicant.conf.5
46 .if ${MK_EXAMPLES} != "no"
47 FILESDIR= ${SHAREDIR}/examples/etc
48 .PATH: ${WPA_SUPPLICANT_DISTDIR}
49 FILES= wpa_supplicant.conf
52 CFLAGS+=-DCONFIG_BACKEND_FILE \
53 -DCONFIG_DEBUG_SYSLOG \
55 -DCONFIG_DRIVER_NDIS \
56 -DCONFIG_DRIVER_WIRED \
60 -DCONFIG_INTERWORKING \
64 -DCONFIG_TERMINATE_ONLASTIF \
65 -DCONFIG_TLS=openssl \
73 # User customizations to the wpa_supplicant build environment
74 CFLAGS+=${WPA_SUPPLICANT_CFLAGS}
75 #DPADD+=${WPA_SUPPLICANT_DPADD}
76 LDADD+=${WPA_SUPPLICANT_LDADD}
77 #LDFLAGS+=${WPA_SUPPLICANT_LDFLAGS}
79 .if ${MK_WPA_SUPPLICANT_EAPOL} != "no"
115 .if !empty(CFLAGS:M*-DEAP_AKA)
121 .if !empty(CFLAGS:M*-DEAP_SIM)
127 .if defined(NEED_SIM_COMMON)
128 SRCS+= eap_sim_common.c
132 # PC/SC interface for smartcards (USIM, GSM SIM)
133 # GSM/UMTS authentication algorithm (for EAP-SIM/EAP-AKA)
134 # NB: requires devel/pcsc-lite
136 # WPA_SUPPLICANT_CFLAGS=-DEAP_AKA -DPCSC_FUNCS -I/usr/local/include/PCSC
137 # WPA_SUPPLICANT_LDADD=-L/usr/local/lib
139 .if !empty(CFLAGS:M*-DPCSC_FUNCS)
141 LIBADD+= pcslite pthread
144 .if !empty(CFLAGS:M*-DEAP_GPSK)
145 CFLAGS+=-DEAP_GPSK_SHA256
151 .if !empty(CFLAGS:M*-DEAP_PAX)
156 .if !empty(CFLAGS:M*-DEAP_SAKE)
161 .include "../Makefile.crypto"
163 .include <bsd.prog.mk>