1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5.include "../Makefile.inc" 6 7.include "../Makefile.crypto" 8 9.PATH.c:${WPA_SUPPLICANT_DISTDIR} \ 10 ${WPA_DISTDIR}/src/drivers 11 12PACKAGE= wpa 13PROG= wpa_supplicant 14 15SRCS= blacklist.c \ 16 bss.c \ 17 config.c \ 18 config_file.c \ 19 ctrl_iface.c \ 20 ctrl_iface_unix.c \ 21 eap_register.c \ 22 events.c \ 23 gas_query.c \ 24 main.c \ 25 notify.c \ 26 op_classes.c \ 27 offchannel.c \ 28 rrm.c \ 29 scan.c \ 30 wmm_ac.c \ 31 wpa_supplicant.c \ 32 wpas_glue.c 33 34MAN= wpa_supplicant.8 wpa_supplicant.conf.5 35 36.if ${MK_EXAMPLES} != "no" 37FILESDIR= ${SHAREDIR}/examples/etc 38.PATH: ${WPA_SUPPLICANT_DISTDIR} 39FILES= wpa_supplicant.conf 40.endif 41 42CFLAGS+=-DCONFIG_BACKEND_FILE 43#CFLAGS+= -g 44LIBADD+=pcap util wpadrivers wpaap wpaeapol_supp \ 45 wpaeap_server \ 46 wpaeap_peer wpaeap_common wpal2_packet wparsn_supp wpatls wpawps \ 47 wpacommon wpacrypto wpautils 48 49# User customizations to the wpa_supplicant build environment 50CFLAGS+=${WPA_SUPPLICANT_CFLAGS} 51#DPADD+=${WPA_SUPPLICANT_DPADD} 52LDADD+=${WPA_SUPPLICANT_LDADD} 53#LDFLAGS+=${WPA_SUPPLICANT_LDFLAGS} 54 55.if ${MK_WPA_SUPPLICANT_EAPOL} != "no" 56CFLAGS+=-DEAP_GTC \ 57 -DEAP_LEAP \ 58 -DEAP_MD5 \ 59 -DEAP_MSCHAPv2 \ 60 -DEAP_OTP \ 61 -DEAP_PEAP \ 62 -DEAP_PSK \ 63 -DEAP_TLS \ 64 -DEAP_TTLS \ 65 -DEAP_WSC \ 66 -DIEEE8021X_EAPOL 67SRCS+= hs20_supplicant.c \ 68 interworking.c \ 69 wps_supplicant.c 70NEED_AES_EAX=y 71NEED_AES_ENCBLOCK=y 72NEED_AES_OMAC1=y 73.endif 74 75.if !empty(CFLAGS:M*-DEAP_AKA) 76SRCS+= eap_aka.c 77NEED_SIM_COMMON=y 78NEED_AES_CBC=y 79.endif 80 81.if !empty(CFLAGS:M*-DEAP_SIM) 82SRCS+= eap_sim.c 83NEED_SIM_COMMON=y 84NEED_AES_CBC=y 85.endif 86 87.if defined(NEED_SIM_COMMON) 88SRCS+= eap_sim_common.c 89NEED_FIPS186_2_PRF=y 90.endif 91 92# PC/SC interface for smartcards (USIM, GSM SIM) 93# GSM/UMTS authentication algorithm (for EAP-SIM/EAP-AKA) 94# NB: requires devel/pcsc-lite 95# 96# WPA_SUPPLICANT_CFLAGS=-DEAP_AKA -DPCSC_FUNCS -I/usr/local/include/PCSC 97# WPA_SUPPLICANT_LDADD=-L/usr/local/lib 98# 99.if !empty(CFLAGS:M*-DPCSC_FUNCS) 100SRCS+= pcsc_funcs.c 101LIBADD+= pcslite pthread 102.endif 103 104.if !empty(CFLAGS:M*-DEAP_GPSK) 105CFLAGS+=-DEAP_GPSK_SHA256 106SRCS+= eap_gpsk.c \ 107 eap_gpsk_common.c 108NEED_AES_OMAC1=y 109.endif 110 111.if !empty(CFLAGS:M*-DEAP_PAX) 112SRCS+= eap_pax.c \ 113 eap_pax_common.c 114.endif 115 116.if !empty(CFLAGS:M*-DEAP_SAKE) 117SRCS+= eap_sake.c \ 118 eap_sake_common.c 119.endif 120 121.include <bsd.prog.mk> 122