Makefile revision 235328
1155131Srwatson# $FreeBSD: stable/9/usr.sbin/wpa/wpa_supplicant/Makefile 235328 2012-05-12 08:22:41Z bschmidt $ 2185573Srwatson 3155131Srwatson.include "${.CURDIR}/../Makefile.inc" 4155131Srwatson 5155131Srwatson.PATH.c:${WPA_SUPPLICANT_DISTDIR} \ 6155131Srwatson ${WPA_DISTDIR}/src/drivers 7155131Srwatson 8155131SrwatsonPROG= wpa_supplicant 9155131SrwatsonSRCS= aes-unwrap.c \ 10155131Srwatson base64.c \ 11155131Srwatson blacklist.c \ 12155131Srwatson bss.c \ 13155131Srwatson common.c \ 14185573Srwatson config.c \ 15155131Srwatson config_file.c \ 16168777Srwatson ctrl_iface.c \ 17155131Srwatson ctrl_iface_unix.c \ 18155131Srwatson driver_ndis.c \ 19155131Srwatson driver_wired.c \ 20155131Srwatson drivers.c \ 21155131Srwatson eap_register.c \ 22155131Srwatson eloop.c \ 23155131Srwatson events.c \ 24155131Srwatson main.c \ 25155131Srwatson md5.c \ 26155131Srwatson notify.c \ 27155131Srwatson os_unix.c \ 28155131Srwatson peerkey.c \ 29155131Srwatson pmksa_cache.c \ 30155131Srwatson preauth.c \ 31155131Srwatson scan.c \ 32155131Srwatson sha1-pbkdf2.c \ 33155131Srwatson sha1.c \ 34155131Srwatson wpa.c \ 35168777Srwatson wpa_common.c \ 36155131Srwatson wpa_debug.c \ 37155131Srwatson wpa_ie.c \ 38155131Srwatson wpa_supplicant.c \ 39168777Srwatson wpabuf.c \ 40155131Srwatson wpas_glue.c 41155364SrwatsonSRCS+= driver_freebsd.c \ 42155131Srwatson l2_packet_freebsd.c \ 43155131Srwatson Packet32.c 44155131Srwatson 45155131SrwatsonMAN= wpa_supplicant.8 wpa_supplicant.conf.5 46155131Srwatson 47155131Srwatson.if ${MK_EXAMPLES} != "no" 48155131SrwatsonFILESDIR= ${SHAREDIR}/examples/etc 49168777Srwatson.PATH: ${WPA_SUPPLICANT_DISTDIR} 50155131SrwatsonFILES= wpa_supplicant.conf 51155131Srwatson.endif 52155131Srwatson 53155131SrwatsonCFLAGS+=-DCONFIG_BACKEND_FILE \ 54168777Srwatson -DCONFIG_DEBUG_SYSLOG \ 55155131Srwatson -DCONFIG_DRIVER_BSD \ 56155131Srwatson -DCONFIG_DRIVER_NDIS \ 57155131Srwatson -DCONFIG_DRIVER_WIRED \ 58168777Srwatson -DCONFIG_PEERKEY \ 59155131Srwatson -DCONFIG_SMARTCARD \ 60168777Srwatson -DCONFIG_TERMINATE_ONLASTIF \ 61168777Srwatson -DPKCS12_FUNCS 62168777Srwatson#CFLAGS+= -g 63168777SrwatsonDPADD+= ${LIBPCAP} 64155131SrwatsonLDADD+= -lpcap 65168777Srwatson 66155131Srwatson# User customizations to the wpa_supplicant build environment 67155131SrwatsonCFLAGS+=${WPA_SUPPLICANT_CFLAGS} 68155131Srwatson#DPADD+=${WPA_SUPPLICANT_DPADD} 69168777SrwatsonLDADD+=${WPA_SUPPLICANT_LDADD} 70155131Srwatson#LDFLAGS+=${WPA_SUPPLICANT_LDFLAGS} 71155131Srwatson 72155131Srwatson.if ${MK_WPA_SUPPLICANT_EAPOL} != "no" 73155131SrwatsonCFLAGS+=-DEAP_GTC \ 74155131Srwatson -DEAP_LEAP \ 75155131Srwatson -DEAP_MD5 \ 76293161Sbrueffer -DEAP_MSCHAPv2 \ 77168777Srwatson -DEAP_OTP \ 78155131Srwatson -DEAP_PEAP \ 79168777Srwatson -DEAP_PSK \ 80168777Srwatson -DEAP_TLS \ 81168777Srwatson -DEAP_TTLS \ 82168777Srwatson -DIEEE8021X_EAPOL 83168777SrwatsonSRCS+= chap.c \ 84155131Srwatson eap.c \ 85168777Srwatson eap_common.c \ 86168777Srwatson eap_gtc.c \ 87168777Srwatson eap_leap.c \ 88168777Srwatson eap_md5.c \ 89168777Srwatson eap_methods.c \ 90168777Srwatson eap_mschapv2.c \ 91168777Srwatson eap_otp.c \ 92155131Srwatson eap_peap.c \ 93155131Srwatson eap_peap_common.c \ 94155131Srwatson eap_psk.c \ 95155131Srwatson eap_psk_common.c \ 96 eap_tls.c \ 97 eap_tls_common.c \ 98 eap_ttls.c \ 99 eapol_supp_sm.c \ 100 ms_funcs.c \ 101 mschapv2.c 102TLS_FUNCS=y 103NEED_AES_EAX=y 104NEED_AES_ENCBLOCK=y 105NEED_AES_OMAC1=y 106NEED_SHA256=y 107.endif 108 109.if !empty(CFLAGS:M*-DEAP_AKA) 110SRCS+= eap_aka.c 111NEED_SIM_COMMON=y 112NEED_AES_CBC=y 113.endif 114 115.if !empty(CFLAGS:M*-DEAP_SIM) 116SRCS+= eap_sim.c 117NEED_SIM_COMMON=y 118NEED_AES_CBC=y 119.endif 120 121.if defined(NEED_SIM_COMMON) 122SRCS+= eap_sim_common.c 123NEED_FIPS186_2_PRF=y 124.endif 125 126# PC/SC interface for smartcards (USIM, GSM SIM) 127# GSM/UMTS authentication algorithm (for EAP-SIM/EAP-AKA) 128# NB: requires devel/pcsc-lite 129# 130# WPA_SUPPLICANT_CFLAGS=-DEAP_AKA -DPCSC_FUNCS -I/usr/local/include/PCSC 131# WPA_SUPPLICANT_LDADD=-L/usr/local/lib 132# 133.if !empty(CFLAGS:M*-DPCSC_FUNCS) 134SRCS+= pcsc_funcs.c 135DPADD+=${LIBPTHREAD} 136LDADD+=-lpcsclite -lpthread 137.endif 138 139.if !empty(CFLAGS:M*-DEAP_GPSK) 140CFLAGS+=-DEAP_GPSK_SHA256 141SRCS+= eap_gpsk.c \ 142 eap_gpsk_common.c 143NEED_AES_OMAC1=y 144.endif 145 146.if !empty(CFLAGS:M*-DEAP_PAX) 147SRCS+= eap_pax.c \ 148 eap_pax_common.c 149.endif 150 151.if !empty(CFLAGS:M*-DEAP_SAKE) 152SRCS+= eap_sake.c \ 153 eap_sake_common.c 154.endif 155 156.include "${.CURDIR}/../Makefile.crypto" 157 158.include <bsd.prog.mk> 159