1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5.include "../Makefile.inc" 6 7.PATH.c:${WPA_SUPPLICANT_DISTDIR} \ 8 ${WPA_DISTDIR}/src/eap_peer \ 9 ${WPA_DISTDIR}/src/drivers 10 11PACKAGE= wpa 12PROG= wpa_supplicant 13 14SRCS= 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 \ 28 Packet32.c 29 30MAN= wpa_supplicant.8 wpa_supplicant.conf.5 31 32.if ${MK_EXAMPLES} != "no" 33FILESDIR= ${SHAREDIR}/examples/etc 34.PATH: ${WPA_SUPPLICANT_DISTDIR} 35FILES= wpa_supplicant.conf 36.endif 37 38CFLAGS+=-DCONFIG_BACKEND_FILE \ 39 -DCONFIG_DEBUG_SYSLOG \ 40 -DCONFIG_DRIVER_BSD \ 41 -DCONFIG_DRIVER_NDIS \ 42 -DCONFIG_DRIVER_WIRED \ 43 -DCONFIG_GAS \ 44 -DCONFIG_IEEE80211R \ 45 -DCONFIG_PEERKEY \ 46 -DCONFIG_PRIVSEP \ 47 -DCONFIG_SMARTCARD \ 48 -DCONFIG_TERMINATE_ONLASTIF \ 49 -DCONFIG_TLS=openssl \ 50 -DCONFIG_WPS2 \ 51 -DCONFIG_WPS_UPNP \ 52 -DPKCS12_FUNCS 53#CFLAGS+= -g 54LIBADD= pcap util 55 56# User customizations to the wpa_supplicant build environment 57CFLAGS+=${WPA_SUPPLICANT_CFLAGS} 58#DPADD+=${WPA_SUPPLICANT_DPADD} 59LDADD+=${WPA_SUPPLICANT_LDADD} 60#LDFLAGS+=${WPA_SUPPLICANT_LDFLAGS} 61 62.if ${MK_WPA_SUPPLICANT_EAPOL} != "no" 63CFLAGS+=-DCONFIG_WPS \ 64 -DCONFIG_HS20 \ 65 -DCONFIG_INTERWORKING \ 66 -DEAP_GTC \ 67 -DEAP_LEAP \ 68 -DEAP_MD5 \ 69 -DEAP_MSCHAPv2 \ 70 -DEAP_OTP \ 71 -DEAP_PEAP \ 72 -DEAP_PSK \ 73 -DEAP_TLS \ 74 -DEAP_TTLS \ 75 -DEAP_WSC \ 76 -DIEEE8021X_EAPOL 77SRCS+= chap.c \ 78 eap.c \ 79 eap_common.c \ 80 eap_gtc.c \ 81 eap_leap.c \ 82 eap_md5.c \ 83 eap_methods.c \ 84 eap_mschapv2.c \ 85 eap_otp.c \ 86 eap_peap.c \ 87 eap_peap_common.c \ 88 eap_psk.c \ 89 eap_psk_common.c \ 90 eap_tls.c \ 91 eap_tls_common.c \ 92 eap_ttls.c \ 93 eap_wsc.c \ 94 eapol_supp_sm.c \ 95 eap_wsc_common.c \ 96 hs20_supplicant.c \ 97 interworking.c \ 98 ms_funcs.c \ 99 mschapv2.c \ 100 uuid.c \ 101 wps.c wps_attr_build.c wps_attr_parse.c wps_attr_process.c \ 102 wps_common.c wps_dev_attr.c wps_enrollee.c wps_registrar.c \ 103 wps_supplicant.c wps_upnp.c wps_upnp_ap.c wps_upnp_event.c \ 104 wps_upnp_ssdp.c wps_upnp_web.c 105NEED_AES_EAX=y 106NEED_AES_ENCBLOCK=y 107NEED_AES_OMAC1=y 108.endif 109TLS_FUNCS=y 110 111.if !empty(CFLAGS:M*-DEAP_AKA) 112SRCS+= eap_aka.c 113NEED_SIM_COMMON=y 114NEED_AES_CBC=y 115.endif 116 117.if !empty(CFLAGS:M*-DEAP_SIM) 118SRCS+= eap_sim.c 119NEED_SIM_COMMON=y 120NEED_AES_CBC=y 121.endif 122 123.if defined(NEED_SIM_COMMON) 124SRCS+= eap_sim_common.c 125NEED_FIPS186_2_PRF=y 126.endif 127 128# PC/SC interface for smartcards (USIM, GSM SIM) 129# GSM/UMTS authentication algorithm (for EAP-SIM/EAP-AKA) 130# NB: requires devel/pcsc-lite 131# 132# WPA_SUPPLICANT_CFLAGS=-DEAP_AKA -DPCSC_FUNCS -I/usr/local/include/PCSC 133# WPA_SUPPLICANT_LDADD=-L/usr/local/lib 134# 135.if !empty(CFLAGS:M*-DPCSC_FUNCS) 136SRCS+= pcsc_funcs.c 137LIBADD+= pcslite pthread 138.endif 139 140.if !empty(CFLAGS:M*-DEAP_GPSK) 141CFLAGS+=-DEAP_GPSK_SHA256 142SRCS+= eap_gpsk.c \ 143 eap_gpsk_common.c 144NEED_AES_OMAC1=y 145.endif 146 147.if !empty(CFLAGS:M*-DEAP_PAX) 148SRCS+= eap_pax.c \ 149 eap_pax_common.c 150.endif 151 152.if !empty(CFLAGS:M*-DEAP_SAKE) 153SRCS+= eap_sake.c \ 154 eap_sake_common.c 155.endif 156 157.include "../Makefile.crypto" 158 159.include <bsd.prog.mk> 160