18d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifndef CC
28d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCC=gcc
38d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
48d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
58d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifndef CFLAGS
68d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS = -MMD -O2 -Wall -g
78d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
88d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
98d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtexport LIBDIR ?= /usr/local/lib/
108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtexport BINDIR ?= /usr/local/sbin/
11c55524ad84d13014e8019491c2b17e5dcf13545aDmitry ShmidtPKG_CONFIG ?= pkg-config
128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
13fb79edc9df1f20461e90e478363d207348213d35Dmitry ShmidtCFLAGS += -I$(abspath ../src)
14fb79edc9df1f20461e90e478363d207348213d35Dmitry ShmidtCFLAGS += -I$(abspath ../src/utils)
158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
1675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen-include .config
1775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen
18fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidtifdef CONFIG_TESTING_OPTIONS
19fb79edc9df1f20461e90e478363d207348213d35Dmitry ShmidtCFLAGS += -DCONFIG_TESTING_OPTIONS
20fb79edc9df1f20461e90e478363d207348213d35Dmitry ShmidtCONFIG_WPS_TESTING=y
21fb79edc9df1f20461e90e478363d207348213d35Dmitry ShmidtCONFIG_TDLS_TESTING=y
22fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidtendif
23fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt
24c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry ShmidtBINALL=wpa_supplicant wpa_cli
2575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen
2675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenifndef CONFIG_NO_WPA_PASSPHRASE
27c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry ShmidtBINALL += wpa_passphrase
2875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenendif
298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
30c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry ShmidtALL = $(BINALL)
311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtALL += systemd/wpa_supplicant.service
321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtALL += systemd/wpa_supplicant@.service
331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtALL += systemd/wpa_supplicant-nl80211@.service
341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtALL += systemd/wpa_supplicant-wired@.service
351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtALL += dbus/fi.epitest.hostap.WPASupplicant.service
361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtALL += dbus/fi.w1.wpa_supplicant1.service
371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtall: verify_config $(ALL) dynamic_eap_methods
408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtverify_config:
428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	@if [ ! -r .config ]; then \
438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt		echo 'Building wpa_supplicant requires a configuration file'; \
448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt		echo '(.config). See README for more instructions. You can'; \
458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt		echo 'run "cp defconfig .config" to create an example'; \
468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt		echo 'configuration.'; \
478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt		exit 1; \
488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	fi
498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtmkconfig:
518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	@if [ -f .config ]; then \
528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt		echo '.config exists - did not replace it'; \
538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt		exit 1; \
548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	fi
558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	echo CONFIG_DRIVER_HOSTAP=y >> .config
568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	echo CONFIG_DRIVER_WEXT=y >> .config
578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
58c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt$(DESTDIR)$(BINDIR)/%: %
59c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt	install -D $(<) $(@)
60c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt
61c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidtinstall: $(addprefix $(DESTDIR)$(BINDIR)/,$(BINALL))
628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	$(MAKE) -C ../src install
638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
6461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidtifdef CONFIG_FIPS
6561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry ShmidtCONFIG_NO_RANDOM_POOL=
6661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry ShmidtCONFIG_OPENSSL_CMAC=y
6761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidtendif
6861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt
698d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS = config.o
708d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += notify.o
718d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += bss.o
728d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += eap_register.o
738d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/utils/common.o
748d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/utils/wpa_debug.o
758d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/utils/wpabuf.o
768d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_p = wpa_passphrase.o
778d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_p += ../src/utils/common.o
788d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_p += ../src/utils/wpa_debug.o
798d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_p += ../src/utils/wpabuf.o
808d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_c = wpa_cli.o ../src/common/wpa_ctrl.o
818d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_c += ../src/utils/wpa_debug.o
821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtOBJS_c += ../src/utils/common.o
838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifndef CONFIG_OS
858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_NATIVE_WINDOWS
868d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCONFIG_OS=win32
878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtelse
888d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCONFIG_OS=unix
898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifeq ($(CONFIG_OS), internal)
938d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DOS_NO_C_LIB_DEFINES
948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
968d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/utils/os_$(CONFIG_OS).o
978d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_p += ../src/utils/os_$(CONFIG_OS).o
988d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_c += ../src/utils/os_$(CONFIG_OS).o
998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
1008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_WPA_TRACE
1018d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DWPA_TRACE
1028d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/utils/trace.o
1038d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_p += ../src/utils/trace.o
1048d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_c += ../src/utils/trace.o
1051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtOBJS_priv += ../src/utils/trace.o
1068d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtLDFLAGS += -rdynamic
1078d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -funwind-tables
1088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_WPA_TRACE_BFD
109ec58b164a608cbc1d99e71bb3d86ef4b263377dcDmitry ShmidtCFLAGS += -DPACKAGE="wpa_supplicant" -DWPA_TRACE_BFD
11013ca8d8ea51a1aa5e24c6c956473a11b0c7daed4Dmitry ShmidtLIBS += -lbfd -ldl -liberty -lz
11113ca8d8ea51a1aa5e24c6c956473a11b0c7daed4Dmitry ShmidtLIBS_p += -lbfd -ldl -liberty -lz
11213ca8d8ea51a1aa5e24c6c956473a11b0c7daed4Dmitry ShmidtLIBS_c += -lbfd -ldl -liberty -lz
1138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
1148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
1158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
1168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifndef CONFIG_ELOOP
1178d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCONFIG_ELOOP=eloop
1188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
1198d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/utils/$(CONFIG_ELOOP).o
1208d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_c += ../src/utils/$(CONFIG_ELOOP).o
1218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
122fa3fc4a1ac08ad14272301c7f6f01b362997c3e4Dmitry Shmidtifeq ($(CONFIG_ELOOP), eloop)
123fa3fc4a1ac08ad14272301c7f6f01b362997c3e4Dmitry Shmidt# Using glibc < 2.17 requires -lrt for clock_gettime()
124fa3fc4a1ac08ad14272301c7f6f01b362997c3e4Dmitry ShmidtLIBS += -lrt
125fa3fc4a1ac08ad14272301c7f6f01b362997c3e4Dmitry ShmidtLIBS_c += -lrt
126fa3fc4a1ac08ad14272301c7f6f01b362997c3e4Dmitry ShmidtLIBS_p += -lrt
127fa3fc4a1ac08ad14272301c7f6f01b362997c3e4Dmitry Shmidtendif
128fa3fc4a1ac08ad14272301c7f6f01b362997c3e4Dmitry Shmidt
129c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidtifdef CONFIG_ELOOP_POLL
130c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry ShmidtCFLAGS += -DCONFIG_ELOOP_POLL
131c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidtendif
132c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt
13350b691dc36a8075e8f594e8bea93cb524fa6b1d2Dmitry Shmidtifdef CONFIG_ELOOP_EPOLL
13450b691dc36a8075e8f594e8bea93cb524fa6b1d2Dmitry ShmidtCFLAGS += -DCONFIG_ELOOP_EPOLL
13550b691dc36a8075e8f594e8bea93cb524fa6b1d2Dmitry Shmidtendif
1368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
1378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_EAPOL_TEST
1388d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -Werror -DEAPOL_TEST
1398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
1408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
14101904cfafd75a70b9f29c0220b90bdef45595491Dmitry Shmidtifdef CONFIG_CODE_COVERAGE
14201904cfafd75a70b9f29c0220b90bdef45595491Dmitry ShmidtCFLAGS += -O0 -fprofile-arcs -ftest-coverage
14301904cfafd75a70b9f29c0220b90bdef45595491Dmitry ShmidtLIBS += -lgcov
14401904cfafd75a70b9f29c0220b90bdef45595491Dmitry ShmidtLIBS_c += -lgcov
14501904cfafd75a70b9f29c0220b90bdef45595491Dmitry ShmidtLIBS_p += -lgcov
14601904cfafd75a70b9f29c0220b90bdef45595491Dmitry Shmidtendif
14701904cfafd75a70b9f29c0220b90bdef45595491Dmitry Shmidt
148c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidtifdef CONFIG_HT_OVERRIDES
149c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry ShmidtCFLAGS += -DCONFIG_HT_OVERRIDES
150c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidtendif
151c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt
1522f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidtifdef CONFIG_VHT_OVERRIDES
1532f023193a0fd630eb82ce6381b80911ad5a3462fDmitry ShmidtCFLAGS += -DCONFIG_VHT_OVERRIDES
1542f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidtendif
1552f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt
1568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifndef CONFIG_BACKEND
1578d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCONFIG_BACKEND=file
1588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
1598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
1608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifeq ($(CONFIG_BACKEND), file)
1618d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += config_file.o
1628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifndef CONFIG_NO_CONFIG_BLOBS
1638d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_BASE64=y
1648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
1658d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DCONFIG_BACKEND_FILE
1668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
1678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
1688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifeq ($(CONFIG_BACKEND), winreg)
1698d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += config_winreg.o
1708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
1718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
1728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifeq ($(CONFIG_BACKEND), none)
1738d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += config_none.o
1748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
1758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
1768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_NO_CONFIG_WRITE
1778d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DCONFIG_NO_CONFIG_WRITE
1788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
1798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
1808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_NO_CONFIG_BLOBS
1818d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DCONFIG_NO_CONFIG_BLOBS
1828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
1838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
1848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_NO_SCAN_PROCESSING
1858d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DCONFIG_NO_SCAN_PROCESSING
1868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
1878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
1888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_IEEE80211W
1898d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DCONFIG_IEEE80211W
1908d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_SHA256=y
1918d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_AES_OMAC1=y
1928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
1938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
1948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_IEEE80211R
1958d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DCONFIG_IEEE80211R
1968d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/rsn_supp/wpa_ft.o
1978d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_80211_COMMON=y
1988d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_SHA256=y
1998d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_AES_OMAC1=y
2008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
2018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
202d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidtifdef CONFIG_SAE
203d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry ShmidtCFLAGS += -DCONFIG_SAE
204a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry ShmidtOBJS += ../src/common/sae.o
205a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry ShmidtNEED_ECC=y
206a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry ShmidtNEED_DH_GROUPS=y
207d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidtendif
208d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt
209a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidtifdef CONFIG_WNM
210a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry ShmidtCFLAGS += -DCONFIG_WNM
21161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry ShmidtOBJS += wnm_sta.o
21261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidtendif
21361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt
2148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_TDLS
2158d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DCONFIG_TDLS
2168d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/rsn_supp/tdls.o
2178d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_SHA256=y
2188d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_AES_OMAC1=y
2198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
2208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
2211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtifdef CONFIG_TDLS_TESTING
2221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtCFLAGS += -DCONFIG_TDLS_TESTING
2231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtendif
2241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
2258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_PEERKEY
2268d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DCONFIG_PEERKEY
2278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
2288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
2298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifndef CONFIG_NO_WPA
2308d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/rsn_supp/wpa.o
2318d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/rsn_supp/preauth.o
2328d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/rsn_supp/pmksa_cache.o
2338d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/rsn_supp/peerkey.o
2348d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/rsn_supp/wpa_ie.o
2358d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/common/wpa_common.o
2368d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_AES=y
2378d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_SHA1=y
2388d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_MD5=y
2398d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_RC4=y
2408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtelse
24134af306c42b7ccf956508e7cd23f0ba90606e360Dmitry ShmidtCFLAGS += -DCONFIG_NO_WPA
2428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
2438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
2448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_IBSS_RSN
2458d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_RSN_AUTHENTICATOR=y
2468d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DCONFIG_IBSS_RSN
2478d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ibss_rsn.o
2488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
2498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
2508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_P2P
2518d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += p2p_supplicant.o
2528d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/p2p/p2p.o
2538d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/p2p/p2p_utils.o
2548d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/p2p/p2p_parse.o
2558d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/p2p/p2p_build.o
2568d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/p2p/p2p_go_neg.o
2578d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/p2p/p2p_sd.o
2588d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/p2p/p2p_pd.o
2598d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/p2p/p2p_invitation.o
2608d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/p2p/p2p_dev_disc.o
2618d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/p2p/p2p_group.o
2628d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/ap/p2p_hostapd.o
263cf32e60fa7e0d33fe1551a6dba8dcbbec47ea50eDmitry ShmidtOBJS += ../src/utils/bitfield.o
2648d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DCONFIG_P2P
2651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtNEED_GAS=y
2661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtNEED_OFFCHANNEL=y
2678d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_80211_COMMON=y
2681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtCONFIG_WPS=y
2691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtCONFIG_AP=y
2708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_P2P_STRICT
2718d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DCONFIG_P2P_STRICT
2728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
2738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
2748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
27561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidtifdef CONFIG_WIFI_DISPLAY
27661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry ShmidtCFLAGS += -DCONFIG_WIFI_DISPLAY
27761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry ShmidtOBJS += wifi_display.o
27861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidtendif
27961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt
28004949598a23f501be6eec21697465fd46a28840aDmitry Shmidtifdef CONFIG_HS20
28104949598a23f501be6eec21697465fd46a28840aDmitry ShmidtOBJS += hs20_supplicant.o
28204949598a23f501be6eec21697465fd46a28840aDmitry ShmidtCFLAGS += -DCONFIG_HS20
28304949598a23f501be6eec21697465fd46a28840aDmitry ShmidtCONFIG_INTERWORKING=y
284f21452aea786ac056eb01f1cbba4f553bd502747Dmitry ShmidtNEED_AES_OMAC1=y
28504949598a23f501be6eec21697465fd46a28840aDmitry Shmidtendif
28604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt
2871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtifdef CONFIG_INTERWORKING
2881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtOBJS += interworking.o
2891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtCFLAGS += -DCONFIG_INTERWORKING
2901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry ShmidtNEED_GAS=y
2911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtendif
2921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
2938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtinclude ../src/drivers/drivers.mak
2948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_AP
2958d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_d += $(DRV_BOTH_OBJS)
2968d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += $(DRV_BOTH_CFLAGS)
2978d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtLDFLAGS += $(DRV_BOTH_LDFLAGS)
2988d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtLIBS += $(DRV_BOTH_LIBS)
2998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtelse
3008d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtNEED_AP_MLME=
3018d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_d += $(DRV_WPA_OBJS)
3028d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += $(DRV_WPA_CFLAGS)
3038d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtLDFLAGS += $(DRV_WPA_LDFLAGS)
3048d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtLIBS += $(DRV_WPA_LIBS)
3058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
3068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
3078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifndef CONFIG_L2_PACKET
3088d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCONFIG_L2_PACKET=linux
3098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
3108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
3118d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_l2 += ../src/l2_packet/l2_packet_$(CONFIG_L2_PACKET).o
3128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
3138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifeq ($(CONFIG_L2_PACKET), pcap)
3148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_WINPCAP
3158d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DCONFIG_WINPCAP
3168d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtLIBS += -lwpcap -lpacket
3178d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtLIBS_w += -lwpcap
3188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtelse
3198d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtLIBS += -ldnet -lpcap
3208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
3218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
3228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
3238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifeq ($(CONFIG_L2_PACKET), winpcap)
3248d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtLIBS += -lwpcap -lpacket
3258d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtLIBS_w += -lwpcap
3268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
3278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
3288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifeq ($(CONFIG_L2_PACKET), freebsd)
3298d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtLIBS += -lpcap
3308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
3318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
3328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_EAP_TLS
3338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt# EAP-TLS
3348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifeq ($(CONFIG_EAP_TLS), dyn)
3358d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DEAP_TLS_DYNAMIC
3368d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtEAPDYN += ../src/eap_peer/eap_tls.so
3378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtelse
3388d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DEAP_TLS
3398d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/eap_peer/eap_tls.o
3408d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_h += ../src/eap_server/eap_server_tls.o
3418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
3428d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtTLS_FUNCS=y
3438d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCONFIG_IEEE8021X_EAPOL=y
3448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
3458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
34661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidtifdef CONFIG_EAP_UNAUTH_TLS
34761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt# EAP-UNAUTH-TLS
34861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry ShmidtCFLAGS += -DEAP_UNAUTH_TLS
34961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidtifndef CONFIG_EAP_UNAUTH_TLS
35061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry ShmidtOBJS += ../src/eap_peer/eap_tls.o
35161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry ShmidtOBJS_h += ../src/eap_server/eap_server_tls.o
35261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry ShmidtTLS_FUNCS=y
35361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidtendif
35461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry ShmidtCONFIG_IEEE8021X_EAPOL=y
35561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidtendif
35661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt
3578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_EAP_PEAP
3588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt# EAP-PEAP
3598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifeq ($(CONFIG_EAP_PEAP), dyn)
3608d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DEAP_PEAP_DYNAMIC
3618d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtEAPDYN += ../src/eap_peer/eap_peap.so
3628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtelse
3638d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DEAP_PEAP
3648d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/eap_peer/eap_peap.o
3658d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/eap_common/eap_peap_common.o
3668d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_h += ../src/eap_server/eap_server_peap.o
3678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
3688d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtTLS_FUNCS=y
3698d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCONFIG_IEEE8021X_EAPOL=y
3708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
3718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
3728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_EAP_TTLS
3738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt# EAP-TTLS
3748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifeq ($(CONFIG_EAP_TTLS), dyn)
3758d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DEAP_TTLS_DYNAMIC
3768d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtEAPDYN += ../src/eap_peer/eap_ttls.so
3778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtelse
3788d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DEAP_TTLS
3798d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/eap_peer/eap_ttls.o
3808d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_h += ../src/eap_server/eap_server_ttls.o
3818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
3828d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtMS_FUNCS=y
3838d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtTLS_FUNCS=y
3848d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCHAP=y
3858d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCONFIG_IEEE8021X_EAPOL=y
3868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
3878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
3888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_EAP_MD5
3898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt# EAP-MD5
3908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifeq ($(CONFIG_EAP_MD5), dyn)
3918d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DEAP_MD5_DYNAMIC
3928d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtEAPDYN += ../src/eap_peer/eap_md5.so
3938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtelse
3948d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DEAP_MD5
3958d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/eap_peer/eap_md5.o
3968d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_h += ../src/eap_server/eap_server_md5.o
3978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
3988d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCHAP=y
3998d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCONFIG_IEEE8021X_EAPOL=y
4008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
4018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
4028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt# backwards compatibility for old spelling
4038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_MSCHAPV2
4048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifndef CONFIG_EAP_MSCHAPV2
4058d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCONFIG_EAP_MSCHAPV2=y
4068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
4078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
4088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
4098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_EAP_MSCHAPV2
4108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt# EAP-MSCHAPv2
4118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifeq ($(CONFIG_EAP_MSCHAPV2), dyn)
4128d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DEAP_MSCHAPv2_DYNAMIC
4138d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtEAPDYN += ../src/eap_peer/eap_mschapv2.so
4148d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtEAPDYN += ../src/eap_peer/mschapv2.so
4158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtelse
4168d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DEAP_MSCHAPv2
4178d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/eap_peer/eap_mschapv2.o
4188d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/eap_peer/mschapv2.o
4198d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_h += ../src/eap_server/eap_server_mschapv2.o
4208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
4218d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtMS_FUNCS=y
4228d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCONFIG_IEEE8021X_EAPOL=y
4238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
4248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
4258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_EAP_GTC
4268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt# EAP-GTC
4278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifeq ($(CONFIG_EAP_GTC), dyn)
4288d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DEAP_GTC_DYNAMIC
4298d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtEAPDYN += ../src/eap_peer/eap_gtc.so
4308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtelse
4318d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DEAP_GTC
4328d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS += ../src/eap_peer/eap_gtc.o
4338d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtOBJS_h += ../src/eap_server/eap_server_gtc.o
4348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
4358d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCONFIG_IEEE8021X_EAPOL=y
4368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtendif
4378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
4388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifdef CONFIG_EAP_OTP
4398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt# EAP-OTP
4408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtifeq ($(CONFIG_EAP_OTP), dyn)
4418d520ff1dc2da35cdca849e982051b86468016d8Dmitry ShmidtCFLAGS += -DEAP_OTP_DYNAMIC
442