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