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 -DCONFIG_MATCH_IFACE 54#CFLAGS+= -g 55LIBADD= pcap util 56 57# User customizations to the wpa_supplicant build environment 58CFLAGS+=${WPA_SUPPLICANT_CFLAGS} 59#DPADD+=${WPA_SUPPLICANT_DPADD} 60LDADD+=${WPA_SUPPLICANT_LDADD} 61#LDFLAGS+=${WPA_SUPPLICANT_LDFLAGS} 62 63.if ${MK_WPA_SUPPLICANT_EAPOL} != "no" 64CFLAGS+=-DCONFIG_WPS \ 65 -DCONFIG_HS20 \ 66 -DCONFIG_INTERWORKING \ 67 -DEAP_GTC \ 68 -DEAP_LEAP \ 69 -DEAP_MD5 \ 70 -DEAP_MSCHAPv2 \ 71 -DEAP_OTP \ 72 -DEAP_PEAP \ 73 -DEAP_PSK \ 74 -DEAP_TLS \ 75 -DEAP_TTLS \ 76 -DEAP_WSC \ 77 -DIEEE8021X_EAPOL 78SRCS+= chap.c \ 79 eap.c \ 80 eap_common.c \ 81 eap_gtc.c \ 82 eap_leap.c \ 83 eap_md5.c \ 84 eap_methods.c \ 85 eap_mschapv2.c \ 86 eap_otp.c \ 87 eap_peap.c \ 88 eap_peap_common.c \ 89 eap_psk.c \ 90 eap_psk_common.c \ 91 eap_tls.c \ 92 eap_tls_common.c \ 93 eap_ttls.c \ 94 eap_wsc.c \ 95 eapol_supp_sm.c \ 96 eap_wsc_common.c \ 97 hs20_supplicant.c \ 98 interworking.c \ 99 ms_funcs.c \ 100 mschapv2.c \ 101 uuid.c \ 102 wps.c wps_attr_build.c wps_attr_parse.c wps_attr_process.c \ 103 wps_common.c wps_dev_attr.c wps_enrollee.c wps_registrar.c \ 104 wps_supplicant.c wps_upnp.c wps_upnp_ap.c wps_upnp_event.c \ 105 wps_upnp_ssdp.c wps_upnp_web.c 106NEED_AES_EAX=y 107NEED_AES_ENCBLOCK=y 108NEED_AES_OMAC1=y 109.endif 110TLS_FUNCS=y 111 112.if !empty(CFLAGS:M*-DEAP_AKA) 113SRCS+= eap_aka.c 114NEED_SIM_COMMON=y 115NEED_AES_CBC=y 116.endif 117 118.if !empty(CFLAGS:M*-DEAP_SIM) 119SRCS+= eap_sim.c 120NEED_SIM_COMMON=y 121NEED_AES_CBC=y 122.endif 123 124.if defined(NEED_SIM_COMMON) 125SRCS+= eap_sim_common.c 126NEED_FIPS186_2_PRF=y 127.endif 128 129# PC/SC interface for smartcards (USIM, GSM SIM) 130# GSM/UMTS authentication algorithm (for EAP-SIM/EAP-AKA) 131# NB: requires devel/pcsc-lite 132# 133# WPA_SUPPLICANT_CFLAGS=-DEAP_AKA -DPCSC_FUNCS -I/usr/local/include/PCSC 134# WPA_SUPPLICANT_LDADD=-L/usr/local/lib 135# 136.if !empty(CFLAGS:M*-DPCSC_FUNCS) 137SRCS+= pcsc_funcs.c 138LIBADD+= pcslite pthread 139.endif 140 141.if !empty(CFLAGS:M*-DEAP_GPSK) 142CFLAGS+=-DEAP_GPSK_SHA256 143SRCS+= eap_gpsk.c \ 144 eap_gpsk_common.c 145NEED_AES_OMAC1=y 146.endif 147 148.if !empty(CFLAGS:M*-DEAP_PAX) 149SRCS+= eap_pax.c \ 150 eap_pax_common.c 151.endif 152 153.if !empty(CFLAGS:M*-DEAP_SAKE) 154SRCS+= eap_sake.c \ 155 eap_sake_common.c 156.endif 157 158.include "../Makefile.crypto" 159 160.include <bsd.prog.mk> 161