X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=wpa_supplicant%2FMakefile;h=c7dffb08b06103268abd06b47e87b8d62e3b29ba;hb=f130ba9b4a50396bc166c26b4e5fb0905996fd18;hp=17c699026780f13657e6c78d91fa62dae7f13c02;hpb=b5a357b47645a30165deb5c526e797eb2dfa6084;p=wpasupplicant diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 17c6990..c7dffb0 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -127,6 +127,15 @@ CFLAGS += -DCONFIG_DRIVER_WEXT CONFIG_WIRELESS_EXTENSION=y endif +ifdef CONFIG_DRIVER_NL80211 +CFLAGS += -DCONFIG_DRIVER_NL80211 +OBJS_d += ../src/drivers/driver_nl80211.o +LIBS += -lnl +ifdef CONFIG_CLIENT_MLME +OBJS_d += ../src/drivers/radiotap.o +endif +endif + ifdef CONFIG_DRIVER_PRISM54 CFLAGS += -DCONFIG_DRIVER_PRISM54 OBJS_d += ../src/drivers/driver_prism54.o @@ -183,7 +192,10 @@ endif ifdef CONFIG_DRIVER_NDIS CFLAGS += -DCONFIG_DRIVER_NDIS -OBJS_d += ../src/drivers/driver_ndis.o ../src/drivers/driver_ndis_.o +OBJS_d += ../src/drivers/driver_ndis.o +ifdef CONFIG_NDIS_EVENTS_INTEGRATED +OBJS_d += ../src/drivers/driver_ndis_.o +endif ifndef CONFIG_L2_PACKET CONFIG_L2_PACKET=pcap endif @@ -223,6 +235,11 @@ OBJS_d += ../src/drivers/MobileApple80211.o LIBS += -framework CoreFoundation endif +ifdef CONFIG_DRIVER_ROBOSWITCH +CFLAGS += -DCONFIG_DRIVER_ROBOSWITCH +OBJS_d += ../src/drivers/driver_roboswitch.o +endif + ifndef CONFIG_L2_PACKET CONFIG_L2_PACKET=linux endif @@ -270,11 +287,11 @@ EAPDYN += ../src/eap_peer/eap_peap.so else CFLAGS += -DEAP_PEAP OBJS += ../src/eap_peer/eap_peap.o +OBJS += ../src/eap_common/eap_peap_common.o OBJS_h += ../src/eap_server/eap_peap.o endif TLS_FUNCS=y CONFIG_IEEE8021X_EAPOL=y -CONFIG_EAP_TLV=y endif ifdef CONFIG_EAP_TTLS @@ -410,6 +427,16 @@ CONFIG_IEEE8021X_EAPOL=y CONFIG_EAP_SIM_COMMON=y endif +ifdef CONFIG_EAP_AKA_PRIME +# EAP-AKA' +ifeq ($(CONFIG_EAP_AKA_PRIME), dyn) +CFLAGS += -DEAP_AKA_PRIME_DYNAMIC +else +CFLAGS += -DEAP_AKA_PRIME +endif +NEED_SHA256=y +endif + ifdef CONFIG_EAP_SIM_COMMON OBJS += ../src/eap_common/eap_sim_common.o OBJS_h += ../src/eap_server/eap_sim_db.o @@ -417,13 +444,6 @@ NEED_AES=y NEED_FIPS186_2_PRF=y endif -ifdef CONFIG_EAP_TLV -# EAP-TLV -CFLAGS += -DEAP_TLV -OBJS += ../src/eap_peer/eap_tlv.o -OBJS_h += ../src/eap_server/eap_tlv.o -endif - ifdef CONFIG_EAP_FAST # EAP-FAST ifeq ($(CONFIG_EAP_FAST), dyn) @@ -483,6 +503,31 @@ endif NEED_SHA256=y endif +ifdef CONFIG_WPS +# EAP-WSC +ifeq ($(CONFIG_EAP_WSC), dyn) +CFLAGS += -DCONFIG_WPS -DEAP_WSC_DYNAMIC +EAPDYN += ../src/eap_peer/eap_wsc.so +else +CFLAGS += -DCONFIG_WPS -DEAP_WSC +OBJS += wps_supplicant.o +OBJS += ../src/utils/uuid.o +OBJS += ../src/eap_peer/eap_wsc.o ../src/eap_common/eap_wsc_common.o +OBJS += ../src/wps/wps.o +OBJS += ../src/wps/wps_common.o +OBJS += ../src/wps/wps_attr_parse.o +OBJS += ../src/wps/wps_attr_build.o +OBJS += ../src/wps/wps_attr_process.o +OBJS += ../src/wps/wps_dev_attr.o +OBJS += ../src/wps/wps_enrollee.o +OBJS += ../src/wps/wps_registrar.o +OBJS_h += ../src/eap_server/eap_wsc.o +endif +CONFIG_IEEE8021X_EAPOL=y +NEED_DH_GROUPS=y +NEED_SHA256=y +endif + ifdef CONFIG_EAP_IKEV2 # EAP-IKEv2 ifeq ($(CONFIG_EAP_IKEV2), dyn) @@ -573,6 +618,20 @@ LIBS += -lpcsclite -lpthread endif endif +ifdef CONFIG_SIM_SIMULATOR +CFLAGS += -DCONFIG_SIM_SIMULATOR +NEED_MILENAGE=y +endif + +ifdef CONFIG_USIM_SIMULATOR +CFLAGS += -DCONFIG_USIM_SIMULATOR +NEED_MILENAGE=y +endif + +ifdef NEED_MILENAGE +OBJS += ../src/hlr_auc_gw/milenage.o +endif + ifndef CONFIG_TLS CONFIG_TLS=openssl endif @@ -629,6 +688,9 @@ CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT ifeq ($(CONFIG_CRYPTO), internal) ifdef CONFIG_INTERNAL_LIBTOMMATH CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH +ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST +CFLAGS += -DLTM_FAST +endif else LIBS += -ltommath LIBS_p += -ltommath @@ -768,8 +830,14 @@ ifdef CONFIG_IEEE80211R NEED_SHA256=y endif +ifdef CONFIG_IEEE80211W +CFLAGS += -DCONFIG_IEEE80211W +NEED_SHA256=y +endif + ifdef NEED_SHA256 OBJS += ../src/crypto/sha256.o +CFLAGS += -DNEED_SHA256 endif ifdef CONFIG_WIRELESS_EXTENSION @@ -853,11 +921,6 @@ ifdef CONFIG_PEERKEY CFLAGS += -DCONFIG_PEERKEY endif -ifdef CONFIG_IEEE80211W -CFLAGS += -DCONFIG_IEEE80211W -NEED_SHA256=y -endif - ifdef CONFIG_IEEE80211R CFLAGS += -DCONFIG_IEEE80211R OBJS += ../src/rsn_supp/wpa_ft.o @@ -916,7 +979,7 @@ OBJS += ../src/utils/base64.o endif ifdef CONFIG_CLIENT_MLME -OBJS += mlme.o +OBJS += mlme.o ../src/common/ieee802_11_common.o CFLAGS += -DCONFIG_CLIENT_MLME endif @@ -928,6 +991,10 @@ ifdef CONFIG_DEBUG_FILE CFLAGS += -DCONFIG_DEBUG_FILE endif +ifdef CONFIG_DELAYED_MIC_ERROR_REPORT +CFLAGS += -DCONFIG_DELAYED_MIC_ERROR_REPORT +endif + OBJS += ../src/drivers/scan_helpers.o OBJS_wpa_rm := ctrl_iface.o mlme.o ctrl_iface_unix.o @@ -1028,6 +1095,7 @@ OBJSx=tests/test_x509v3.o ../src/tls/asn1.o ../src/tls/x509v3.o \ ../src/crypto/crypto_$(CONFIG_CRYPTO).o \ ../src/crypto/md5.o ../src/crypto/sha1.o ../src/crypto/aes.o \ ../src/crypto/rc4.o ../src/crypto/des.o ../src/crypto/aes_wrap.o \ + ../src/crypto/sha256.o \ ../src/tls/bignum.o ../src/tls/rsa.o test_x509v3: $(OBJSx) $(LDO) $(LDFLAGS) -o test_x509v3 $(OBJSx) @@ -1047,6 +1115,10 @@ eap_sake.so: ../src/eap_peer/eap_sake.c ../src/eap_common/eap_sake_common.c $(CC) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \ -Deap_peer_sake_register=eap_peer_method_dynamic_init +eap_wsc.so: ../src/eap_peer/eap_wsc.c ../src/eap_common/eap_wsc_common.c ../src/wps/wps.c + $(CC) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \ + -Deap_peer_wsc_register=eap_peer_method_dynamic_init + eap_ikev2.so: ../src/eap_peer/eap_ikev2.c ../src/eap_peer/ikev2.c ../src/eap_common/eap_ikev2_common.o ../src/eap_common/ikev2_common.c $(CC) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \ -Deap_peer_ikev2_register=eap_peer_method_dynamic_init