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