Makefile 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588
  1. ifndef CC
  2. CC=gcc
  3. endif
  4. ifndef CFLAGS
  5. CFLAGS = -MMD -O2 -Wall -g
  6. endif
  7. export LIBDIR ?= /usr/local/lib/
  8. export BINDIR ?= /usr/local/sbin/
  9. PKG_CONFIG ?= pkg-config
  10. CFLAGS += -I../src
  11. CFLAGS += -I../src/utils
  12. -include .config
  13. BINALL=wpa_supplicant wpa_cli
  14. ifndef CONFIG_NO_WPA_PASSPHRASE
  15. BINALL += wpa_passphrase
  16. endif
  17. ALL = $(BINALL)
  18. ALL += systemd/wpa_supplicant.service
  19. ALL += systemd/wpa_supplicant@.service
  20. ALL += systemd/wpa_supplicant-nl80211@.service
  21. ALL += systemd/wpa_supplicant-wired@.service
  22. ALL += dbus/fi.epitest.hostap.WPASupplicant.service
  23. ALL += dbus/fi.w1.wpa_supplicant1.service
  24. all: verify_config $(ALL) dynamic_eap_methods
  25. verify_config:
  26. @if [ ! -r .config ]; then \
  27. echo 'Building wpa_supplicant requires a configuration file'; \
  28. echo '(.config). See README for more instructions. You can'; \
  29. echo 'run "cp defconfig .config" to create an example'; \
  30. echo 'configuration.'; \
  31. exit 1; \
  32. fi
  33. mkconfig:
  34. @if [ -f .config ]; then \
  35. echo '.config exists - did not replace it'; \
  36. exit 1; \
  37. fi
  38. echo CONFIG_DRIVER_HOSTAP=y >> .config
  39. echo CONFIG_DRIVER_WEXT=y >> .config
  40. $(DESTDIR)$(BINDIR)/%: %
  41. install -D $(<) $(@)
  42. install: $(addprefix $(DESTDIR)$(BINDIR)/,$(BINALL))
  43. $(MAKE) -C ../src install
  44. OBJS = config.o
  45. OBJS += notify.o
  46. OBJS += bss.o
  47. OBJS += eap_register.o
  48. OBJS += ../src/utils/common.o
  49. OBJS += ../src/utils/wpa_debug.o
  50. OBJS += ../src/utils/wpabuf.o
  51. OBJS_p = wpa_passphrase.o
  52. OBJS_p += ../src/utils/common.o
  53. OBJS_p += ../src/utils/wpa_debug.o
  54. OBJS_p += ../src/utils/wpabuf.o
  55. OBJS_c = wpa_cli.o ../src/common/wpa_ctrl.o
  56. OBJS_c += ../src/utils/wpa_debug.o
  57. OBJS_c += ../src/utils/common.o
  58. ifndef CONFIG_OS
  59. ifdef CONFIG_NATIVE_WINDOWS
  60. CONFIG_OS=win32
  61. else
  62. CONFIG_OS=unix
  63. endif
  64. endif
  65. ifeq ($(CONFIG_OS), internal)
  66. CFLAGS += -DOS_NO_C_LIB_DEFINES
  67. endif
  68. OBJS += ../src/utils/os_$(CONFIG_OS).o
  69. OBJS_p += ../src/utils/os_$(CONFIG_OS).o
  70. OBJS_c += ../src/utils/os_$(CONFIG_OS).o
  71. ifdef CONFIG_WPA_TRACE
  72. CFLAGS += -DWPA_TRACE
  73. OBJS += ../src/utils/trace.o
  74. OBJS_p += ../src/utils/trace.o
  75. OBJS_c += ../src/utils/trace.o
  76. OBJS_priv += ../src/utils/trace.o
  77. LDFLAGS += -rdynamic
  78. CFLAGS += -funwind-tables
  79. ifdef CONFIG_WPA_TRACE_BFD
  80. CFLAGS += -DWPA_TRACE_BFD
  81. LIBS += -lbfd
  82. LIBS_p += -lbfd
  83. LIBS_c += -lbfd
  84. endif
  85. endif
  86. ifndef CONFIG_ELOOP
  87. CONFIG_ELOOP=eloop
  88. endif
  89. OBJS += ../src/utils/$(CONFIG_ELOOP).o
  90. OBJS_c += ../src/utils/$(CONFIG_ELOOP).o
  91. ifdef CONFIG_ELOOP_POLL
  92. CFLAGS += -DCONFIG_ELOOP_POLL
  93. endif
  94. ifdef CONFIG_EAPOL_TEST
  95. CFLAGS += -Werror -DEAPOL_TEST
  96. endif
  97. ifdef CONFIG_HT_OVERRIDES
  98. CFLAGS += -DCONFIG_HT_OVERRIDES
  99. endif
  100. ifndef CONFIG_BACKEND
  101. CONFIG_BACKEND=file
  102. endif
  103. ifeq ($(CONFIG_BACKEND), file)
  104. OBJS += config_file.o
  105. ifndef CONFIG_NO_CONFIG_BLOBS
  106. NEED_BASE64=y
  107. endif
  108. CFLAGS += -DCONFIG_BACKEND_FILE
  109. endif
  110. ifeq ($(CONFIG_BACKEND), winreg)
  111. OBJS += config_winreg.o
  112. endif
  113. ifeq ($(CONFIG_BACKEND), none)
  114. OBJS += config_none.o
  115. endif
  116. ifdef CONFIG_NO_CONFIG_WRITE
  117. CFLAGS += -DCONFIG_NO_CONFIG_WRITE
  118. endif
  119. ifdef CONFIG_NO_CONFIG_BLOBS
  120. CFLAGS += -DCONFIG_NO_CONFIG_BLOBS
  121. endif
  122. ifdef CONFIG_NO_SCAN_PROCESSING
  123. CFLAGS += -DCONFIG_NO_SCAN_PROCESSING
  124. endif
  125. ifdef CONFIG_IEEE80211W
  126. CFLAGS += -DCONFIG_IEEE80211W
  127. NEED_SHA256=y
  128. NEED_AES_OMAC1=y
  129. endif
  130. ifdef CONFIG_IEEE80211R
  131. CFLAGS += -DCONFIG_IEEE80211R
  132. OBJS += ../src/rsn_supp/wpa_ft.o
  133. NEED_80211_COMMON=y
  134. NEED_SHA256=y
  135. NEED_AES_OMAC1=y
  136. endif
  137. ifdef CONFIG_IEEE80211V
  138. CFLAGS += -DCONFIG_IEEE80211V
  139. OBJS += wnm_sta.o
  140. endif
  141. ifdef CONFIG_TDLS
  142. CFLAGS += -DCONFIG_TDLS
  143. OBJS += ../src/rsn_supp/tdls.o
  144. NEED_SHA256=y
  145. NEED_AES_OMAC1=y
  146. endif
  147. ifdef CONFIG_TDLS_TESTING
  148. CFLAGS += -DCONFIG_TDLS_TESTING
  149. endif
  150. ifdef CONFIG_PEERKEY
  151. CFLAGS += -DCONFIG_PEERKEY
  152. endif
  153. ifndef CONFIG_NO_WPA
  154. OBJS += ../src/rsn_supp/wpa.o
  155. OBJS += ../src/rsn_supp/preauth.o
  156. OBJS += ../src/rsn_supp/pmksa_cache.o
  157. OBJS += ../src/rsn_supp/peerkey.o
  158. OBJS += ../src/rsn_supp/wpa_ie.o
  159. OBJS += ../src/common/wpa_common.o
  160. NEED_AES=y
  161. NEED_SHA1=y
  162. NEED_MD5=y
  163. NEED_RC4=y
  164. else
  165. CFLAGS += -DCONFIG_NO_WPA -DCONFIG_NO_WPA2
  166. endif
  167. ifdef CONFIG_IBSS_RSN
  168. NEED_RSN_AUTHENTICATOR=y
  169. CFLAGS += -DCONFIG_IBSS_RSN
  170. OBJS += ibss_rsn.o
  171. endif
  172. ifdef CONFIG_P2P
  173. OBJS += p2p_supplicant.o
  174. OBJS += ../src/p2p/p2p.o
  175. OBJS += ../src/p2p/p2p_utils.o
  176. OBJS += ../src/p2p/p2p_parse.o
  177. OBJS += ../src/p2p/p2p_build.o
  178. OBJS += ../src/p2p/p2p_go_neg.o
  179. OBJS += ../src/p2p/p2p_sd.o
  180. OBJS += ../src/p2p/p2p_pd.o
  181. OBJS += ../src/p2p/p2p_invitation.o
  182. OBJS += ../src/p2p/p2p_dev_disc.o
  183. OBJS += ../src/p2p/p2p_group.o
  184. OBJS += ../src/ap/p2p_hostapd.o
  185. CFLAGS += -DCONFIG_P2P
  186. NEED_GAS=y
  187. NEED_OFFCHANNEL=y
  188. NEED_80211_COMMON=y
  189. CONFIG_WPS=y
  190. CONFIG_AP=y
  191. ifdef CONFIG_P2P_STRICT
  192. CFLAGS += -DCONFIG_P2P_STRICT
  193. endif
  194. endif
  195. ifdef CONFIG_HS20
  196. OBJS += hs20_supplicant.o
  197. CFLAGS += -DCONFIG_HS20
  198. CONFIG_INTERWORKING=y
  199. endif
  200. ifdef CONFIG_INTERWORKING
  201. OBJS += interworking.o
  202. CFLAGS += -DCONFIG_INTERWORKING
  203. NEED_GAS=y
  204. endif
  205. ifdef CONFIG_NO_WPA2
  206. CFLAGS += -DCONFIG_NO_WPA2
  207. endif
  208. include ../src/drivers/drivers.mak
  209. ifdef CONFIG_AP
  210. OBJS_d += $(DRV_BOTH_OBJS)
  211. CFLAGS += $(DRV_BOTH_CFLAGS)
  212. LDFLAGS += $(DRV_BOTH_LDFLAGS)
  213. LIBS += $(DRV_BOTH_LIBS)
  214. else
  215. NEED_AP_MLME=
  216. OBJS_d += $(DRV_WPA_OBJS)
  217. CFLAGS += $(DRV_WPA_CFLAGS)
  218. LDFLAGS += $(DRV_WPA_LDFLAGS)
  219. LIBS += $(DRV_WPA_LIBS)
  220. endif
  221. ifndef CONFIG_L2_PACKET
  222. CONFIG_L2_PACKET=linux
  223. endif
  224. OBJS_l2 += ../src/l2_packet/l2_packet_$(CONFIG_L2_PACKET).o
  225. ifeq ($(CONFIG_L2_PACKET), pcap)
  226. ifdef CONFIG_WINPCAP
  227. CFLAGS += -DCONFIG_WINPCAP
  228. LIBS += -lwpcap -lpacket
  229. LIBS_w += -lwpcap
  230. else
  231. LIBS += -ldnet -lpcap
  232. endif
  233. endif
  234. ifeq ($(CONFIG_L2_PACKET), winpcap)
  235. LIBS += -lwpcap -lpacket
  236. LIBS_w += -lwpcap
  237. endif
  238. ifeq ($(CONFIG_L2_PACKET), freebsd)
  239. LIBS += -lpcap
  240. endif
  241. ifdef CONFIG_EAP_TLS
  242. # EAP-TLS
  243. ifeq ($(CONFIG_EAP_TLS), dyn)
  244. CFLAGS += -DEAP_TLS_DYNAMIC
  245. EAPDYN += ../src/eap_peer/eap_tls.so
  246. else
  247. CFLAGS += -DEAP_TLS
  248. OBJS += ../src/eap_peer/eap_tls.o
  249. OBJS_h += ../src/eap_server/eap_server_tls.o
  250. endif
  251. TLS_FUNCS=y
  252. CONFIG_IEEE8021X_EAPOL=y
  253. endif
  254. ifdef CONFIG_EAP_PEAP
  255. # EAP-PEAP
  256. ifeq ($(CONFIG_EAP_PEAP), dyn)
  257. CFLAGS += -DEAP_PEAP_DYNAMIC
  258. EAPDYN += ../src/eap_peer/eap_peap.so
  259. else
  260. CFLAGS += -DEAP_PEAP
  261. OBJS += ../src/eap_peer/eap_peap.o
  262. OBJS += ../src/eap_common/eap_peap_common.o
  263. OBJS_h += ../src/eap_server/eap_server_peap.o
  264. endif
  265. TLS_FUNCS=y
  266. CONFIG_IEEE8021X_EAPOL=y
  267. endif
  268. ifdef CONFIG_EAP_TTLS
  269. # EAP-TTLS
  270. ifeq ($(CONFIG_EAP_TTLS), dyn)
  271. CFLAGS += -DEAP_TTLS_DYNAMIC
  272. EAPDYN += ../src/eap_peer/eap_ttls.so
  273. else
  274. CFLAGS += -DEAP_TTLS
  275. OBJS += ../src/eap_peer/eap_ttls.o
  276. OBJS_h += ../src/eap_server/eap_server_ttls.o
  277. endif
  278. MS_FUNCS=y
  279. TLS_FUNCS=y
  280. CHAP=y
  281. CONFIG_IEEE8021X_EAPOL=y
  282. endif
  283. ifdef CONFIG_EAP_MD5
  284. # EAP-MD5
  285. ifeq ($(CONFIG_EAP_MD5), dyn)
  286. CFLAGS += -DEAP_MD5_DYNAMIC
  287. EAPDYN += ../src/eap_peer/eap_md5.so
  288. else
  289. CFLAGS += -DEAP_MD5
  290. OBJS += ../src/eap_peer/eap_md5.o
  291. OBJS_h += ../src/eap_server/eap_server_md5.o
  292. endif
  293. CHAP=y
  294. CONFIG_IEEE8021X_EAPOL=y
  295. endif
  296. # backwards compatibility for old spelling
  297. ifdef CONFIG_MSCHAPV2
  298. ifndef CONFIG_EAP_MSCHAPV2
  299. CONFIG_EAP_MSCHAPV2=y
  300. endif
  301. endif
  302. ifdef CONFIG_EAP_MSCHAPV2
  303. # EAP-MSCHAPv2
  304. ifeq ($(CONFIG_EAP_MSCHAPV2), dyn)
  305. CFLAGS += -DEAP_MSCHAPv2_DYNAMIC
  306. EAPDYN += ../src/eap_peer/eap_mschapv2.so
  307. EAPDYN += ../src/eap_peer/mschapv2.so
  308. else
  309. CFLAGS += -DEAP_MSCHAPv2
  310. OBJS += ../src/eap_peer/eap_mschapv2.o
  311. OBJS += ../src/eap_peer/mschapv2.o
  312. OBJS_h += ../src/eap_server/eap_server_mschapv2.o
  313. endif
  314. MS_FUNCS=y
  315. CONFIG_IEEE8021X_EAPOL=y
  316. endif
  317. ifdef CONFIG_EAP_GTC
  318. # EAP-GTC
  319. ifeq ($(CONFIG_EAP_GTC), dyn)
  320. CFLAGS += -DEAP_GTC_DYNAMIC
  321. EAPDYN += ../src/eap_peer/eap_gtc.so
  322. else
  323. CFLAGS += -DEAP_GTC
  324. OBJS += ../src/eap_peer/eap_gtc.o
  325. OBJS_h += ../src/eap_server/eap_server_gtc.o
  326. endif
  327. CONFIG_IEEE8021X_EAPOL=y
  328. endif
  329. ifdef CONFIG_EAP_OTP
  330. # EAP-OTP
  331. ifeq ($(CONFIG_EAP_OTP), dyn)
  332. CFLAGS += -DEAP_OTP_DYNAMIC
  333. EAPDYN += ../src/eap_peer/eap_otp.so
  334. else
  335. CFLAGS += -DEAP_OTP
  336. OBJS += ../src/eap_peer/eap_otp.o
  337. endif
  338. CONFIG_IEEE8021X_EAPOL=y
  339. endif
  340. ifdef CONFIG_EAP_SIM
  341. # EAP-SIM
  342. ifeq ($(CONFIG_EAP_SIM), dyn)
  343. CFLAGS += -DEAP_SIM_DYNAMIC
  344. EAPDYN += ../src/eap_peer/eap_sim.so
  345. else
  346. CFLAGS += -DEAP_SIM
  347. OBJS += ../src/eap_peer/eap_sim.o
  348. OBJS_h += ../src/eap_server/eap_server_sim.o
  349. endif
  350. CONFIG_IEEE8021X_EAPOL=y
  351. CONFIG_EAP_SIM_COMMON=y
  352. NEED_AES_CBC=y
  353. endif
  354. ifdef CONFIG_EAP_LEAP
  355. # EAP-LEAP
  356. ifeq ($(CONFIG_EAP_LEAP), dyn)
  357. CFLAGS += -DEAP_LEAP_DYNAMIC
  358. EAPDYN += ../src/eap_peer/eap_leap.so
  359. else
  360. CFLAGS += -DEAP_LEAP
  361. OBJS += ../src/eap_peer/eap_leap.o
  362. endif
  363. MS_FUNCS=y
  364. CONFIG_IEEE8021X_EAPOL=y
  365. endif
  366. ifdef CONFIG_EAP_PSK
  367. # EAP-PSK
  368. ifeq ($(CONFIG_EAP_PSK), dyn)
  369. CFLAGS += -DEAP_PSK_DYNAMIC
  370. EAPDYN += ../src/eap_peer/eap_psk.so
  371. else
  372. CFLAGS += -DEAP_PSK
  373. OBJS += ../src/eap_peer/eap_psk.o ../src/eap_common/eap_psk_common.o
  374. OBJS_h += ../src/eap_server/eap_server_psk.o
  375. endif
  376. CONFIG_IEEE8021X_EAPOL=y
  377. NEED_AES=y
  378. NEED_AES_OMAC1=y
  379. NEED_AES_ENCBLOCK=y
  380. NEED_AES_EAX=y
  381. endif
  382. ifdef CONFIG_EAP_AKA
  383. # EAP-AKA
  384. ifeq ($(CONFIG_EAP_AKA), dyn)
  385. CFLAGS += -DEAP_AKA_DYNAMIC
  386. EAPDYN += ../src/eap_peer/eap_aka.so
  387. else
  388. CFLAGS += -DEAP_AKA
  389. OBJS += ../src/eap_peer/eap_aka.o
  390. OBJS_h += ../src/eap_server/eap_server_aka.o
  391. endif
  392. CONFIG_IEEE8021X_EAPOL=y
  393. CONFIG_EAP_SIM_COMMON=y
  394. NEED_AES_CBC=y
  395. endif
  396. ifdef CONFIG_EAP_AKA_PRIME
  397. # EAP-AKA'
  398. ifeq ($(CONFIG_EAP_AKA_PRIME), dyn)
  399. CFLAGS += -DEAP_AKA_PRIME_DYNAMIC
  400. else
  401. CFLAGS += -DEAP_AKA_PRIME
  402. endif
  403. NEED_SHA256=y
  404. endif
  405. ifdef CONFIG_EAP_SIM_COMMON
  406. OBJS += ../src/eap_common/eap_sim_common.o
  407. OBJS_h += ../src/eap_server/eap_sim_db.o
  408. NEED_AES=y
  409. NEED_FIPS186_2_PRF=y
  410. endif
  411. ifdef CONFIG_EAP_FAST
  412. # EAP-FAST
  413. ifeq ($(CONFIG_EAP_FAST), dyn)
  414. CFLAGS += -DEAP_FAST_DYNAMIC
  415. EAPDYN += ../src/eap_peer/eap_fast.so
  416. EAPDYN += ../src/eap_common/eap_fast_common.o
  417. else
  418. CFLAGS += -DEAP_FAST
  419. OBJS += ../src/eap_peer/eap_fast.o ../src/eap_peer/eap_fast_pac.o
  420. OBJS += ../src/eap_common/eap_fast_common.o
  421. OBJS_h += ../src/eap_server/eap_server_fast.o
  422. endif
  423. TLS_FUNCS=y
  424. CONFIG_IEEE8021X_EAPOL=y
  425. NEED_T_PRF=y
  426. endif
  427. ifdef CONFIG_EAP_PAX
  428. # EAP-PAX
  429. ifeq ($(CONFIG_EAP_PAX), dyn)
  430. CFLAGS += -DEAP_PAX_DYNAMIC
  431. EAPDYN += ../src/eap_peer/eap_pax.so
  432. else
  433. CFLAGS += -DEAP_PAX
  434. OBJS += ../src/eap_peer/eap_pax.o ../src/eap_common/eap_pax_common.o
  435. OBJS_h += ../src/eap_server/eap_server_pax.o
  436. endif
  437. CONFIG_IEEE8021X_EAPOL=y
  438. endif
  439. ifdef CONFIG_EAP_SAKE
  440. # EAP-SAKE
  441. ifeq ($(CONFIG_EAP_SAKE), dyn)
  442. CFLAGS += -DEAP_SAKE_DYNAMIC
  443. EAPDYN += ../src/eap_peer/eap_sake.so
  444. else
  445. CFLAGS += -DEAP_SAKE
  446. OBJS += ../src/eap_peer/eap_sake.o ../src/eap_common/eap_sake_common.o
  447. OBJS_h += ../src/eap_server/eap_server_sake.o
  448. endif
  449. CONFIG_IEEE8021X_EAPOL=y
  450. endif
  451. ifdef CONFIG_EAP_GPSK
  452. # EAP-GPSK
  453. ifeq ($(CONFIG_EAP_GPSK), dyn)
  454. CFLAGS += -DEAP_GPSK_DYNAMIC
  455. EAPDYN += ../src/eap_peer/eap_gpsk.so
  456. else
  457. CFLAGS += -DEAP_GPSK
  458. OBJS += ../src/eap_peer/eap_gpsk.o ../src/eap_common/eap_gpsk_common.o
  459. OBJS_h += ../src/eap_server/eap_server_gpsk.o
  460. endif
  461. CONFIG_IEEE8021X_EAPOL=y
  462. ifdef CONFIG_EAP_GPSK_SHA256
  463. CFLAGS += -DEAP_GPSK_SHA256
  464. endif
  465. NEED_SHA256=y
  466. NEED_AES_OMAC1=y
  467. endif
  468. ifdef CONFIG_EAP_PWD
  469. CFLAGS += -DEAP_PWD
  470. OBJS += ../src/eap_peer/eap_pwd.o ../src/eap_common/eap_pwd_common.o
  471. OBJS_h += ../src/eap_server/eap_pwd.o
  472. CONFIG_IEEE8021X_EAPOL=y
  473. NEED_SHA256=y
  474. endif
  475. ifdef CONFIG_WPS
  476. ifdef CONFIG_WPS2
  477. CFLAGS += -DCONFIG_WPS2
  478. endif
  479. # EAP-WSC
  480. CFLAGS += -DCONFIG_WPS -DEAP_WSC
  481. OBJS += wps_supplicant.o
  482. OBJS += ../src/utils/uuid.o
  483. OBJS += ../src/eap_peer/eap_wsc.o ../src/eap_common/eap_wsc_common.o
  484. OBJS += ../src/wps/wps.o
  485. OBJS += ../src/wps/wps_common.o
  486. OBJS += ../src/wps/wps_attr_parse.o
  487. OBJS += ../src/wps/wps_attr_build.o
  488. OBJS += ../src/wps/wps_attr_process.o
  489. OBJS += ../src/wps/wps_dev_attr.o
  490. OBJS += ../src/wps/wps_enrollee.o
  491. OBJS += ../src/wps/wps_registrar.o
  492. OBJS_h += ../src/eap_server/eap_server_wsc.o
  493. CONFIG_IEEE8021X_EAPOL=y
  494. NEED_DH_GROUPS=y
  495. NEED_SHA256=y
  496. NEED_BASE64=y
  497. NEED_80211_COMMON=y
  498. NEED_AES_CBC=y
  499. NEED_MODEXP=y
  500. ifdef CONFIG_WPS_UFD
  501. CFLAGS += -DCONFIG_WPS_UFD
  502. OBJS += ../src/wps/wps_ufd.o
  503. NEED_WPS_OOB=y
  504. endif
  505. ifdef CONFIG_WPS_NFC
  506. CFLAGS += -DCONFIG_WPS_NFC
  507. OBJS += ../src/wps/ndef.o
  508. OBJS += ../src/wps/wps_nfc.o
  509. NEED_WPS_OOB=y
  510. ifdef CONFIG_WPS_NFC_PN531
  511. PN531_PATH ?= /usr/local/src/nfc
  512. CFLAGS += -DCONFIG_WPS_NFC_PN531
  513. CFLAGS += -I${PN531_PATH}/inc
  514. OBJS += ../src/wps/wps_nfc_pn531.o
  515. LIBS += ${PN531_PATH}/lib/wpsnfc.dll
  516. LIBS += ${PN531_PATH}/lib/libnfc_mapping_pn53x.dll
  517. endif
  518. endif
  519. ifdef NEED_WPS_OOB
  520. CFLAGS += -DCONFIG_WPS_OOB
  521. endif
  522. ifdef CONFIG_WPS_ER
  523. CONFIG_WPS_UPNP=y
  524. CFLAGS += -DCONFIG_WPS_ER
  525. OBJS += ../src/wps/wps_er.o
  526. OBJS += ../src/wps/wps_er_ssdp.o
  527. endif
  528. ifdef CONFIG_WPS_UPNP
  529. CFLAGS += -DCONFIG_WPS_UPNP
  530. OBJS += ../src/wps/wps_upnp.o
  531. OBJS += ../src/wps/wps_upnp_ssdp.o
  532. OBJS += ../src/wps/wps_upnp_web.o
  533. OBJS += ../src/wps/wps_upnp_event.o
  534. OBJS += ../src/wps/wps_upnp_ap.o
  535. OBJS += ../src/wps/upnp_xml.o
  536. OBJS += ../src/wps/httpread.o
  537. OBJS += ../src/wps/http_client.o
  538. OBJS += ../src/wps/http_server.o
  539. endif
  540. ifdef CONFIG_WPS_STRICT
  541. CFLAGS += -DCONFIG_WPS_STRICT
  542. OBJS += ../src/wps/wps_validate.o
  543. endif
  544. ifdef CONFIG_WPS_TESTING
  545. CFLAGS += -DCONFIG_WPS_TESTING
  546. endif
  547. ifdef CONFIG_WPS_REG_DISABLE_OPEN
  548. CFLAGS += -DCONFIG_WPS_REG_DISABLE_OPEN
  549. endif
  550. endif
  551. ifdef CONFIG_EAP_IKEV2
  552. # EAP-IKEv2
  553. ifeq ($(CONFIG_EAP_IKEV2), dyn)
  554. CFLAGS += -DEAP_IKEV2_DYNAMIC
  555. EAPDYN += ../src/eap_peer/eap_ikev2.so ../src/eap_peer/ikev2.o
  556. EAPDYN += ../src/eap_common/eap_ikev2_common.o ../src/eap_common/ikev2_common.o
  557. else
  558. CFLAGS += -DEAP_IKEV2
  559. OBJS += ../src/eap_peer/eap_ikev2.o ../src/eap_peer/ikev2.o
  560. OBJS += ../src/eap_common/eap_ikev2_common.o ../src/eap_common/ikev2_common.o
  561. OBJS_h += ../src/eap_server/eap_server_ikev2.o
  562. OBJS_h += ../src/eap_server/ikev2.o
  563. endif
  564. CONFIG_IEEE8021X_EAPOL=y
  565. NEED_DH_GROUPS=y
  566. NEED_DH_GROUPS_ALL=y
  567. NEED_MODEXP=y
  568. NEED_CIPHER=y
  569. endif
  570. ifdef CONFIG_EAP_VENDOR_TEST
  571. ifeq ($(CONFIG_EAP_VENDOR_TEST), dyn)
  572. CFLAGS += -DEAP_VENDOR_TEST_DYNAMIC
  573. EAPDYN += ../src/eap_peer/eap_vendor_test.so
  574. else
  575. CFLAGS += -DEAP_VENDOR_TEST
  576. OBJS += ../src/eap_peer/eap_vendor_test.o
  577. OBJS_h += ../src/eap_server/eap_server_vendor_test.o
  578. endif
  579. CONFIG_IEEE8021X_EAPOL=y
  580. endif
  581. ifdef CONFIG_EAP_TNC
  582. # EAP-TNC
  583. CFLAGS += -DEAP_TNC
  584. OBJS += ../src/eap_peer/eap_tnc.o
  585. OBJS += ../src/eap_peer/tncc.o
  586. OBJS_h += ../src/eap_server/eap_server_tnc.o
  587. OBJS_h += ../src/eap_server/tncs.o
  588. NEED_BASE64=y
  589. ifndef CONFIG_NATIVE_WINDOWS
  590. ifndef CONFIG_DRIVER_BSD
  591. LIBS += -ldl
  592. endif
  593. endif
  594. endif
  595. ifdef CONFIG_IEEE8021X_EAPOL
  596. # IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication)
  597. CFLAGS += -DIEEE8021X_EAPOL
  598. OBJS += ../src/eapol_supp/eapol_supp_sm.o
  599. OBJS += ../src/eap_peer/eap.o ../src/eap_peer/eap_methods.o
  600. NEED_EAP_COMMON=y
  601. ifdef CONFIG_DYNAMIC_EAP_METHODS
  602. CFLAGS += -DCONFIG_DYNAMIC_EAP_METHODS
  603. LIBS += -ldl -rdynamic
  604. endif
  605. endif
  606. ifdef CONFIG_AP
  607. NEED_80211_COMMON=y
  608. NEED_EAP_COMMON=y
  609. NEED_RSN_AUTHENTICATOR=y
  610. CFLAGS += -DCONFIG_AP
  611. OBJS += ap.o
  612. CFLAGS += -DCONFIG_NO_RADIUS
  613. CFLAGS += -DCONFIG_NO_ACCOUNTING
  614. CFLAGS += -DCONFIG_NO_VLAN
  615. OBJS += ../src/ap/hostapd.o
  616. OBJS += ../src/ap/wpa_auth_glue.o
  617. OBJS += ../src/ap/utils.o
  618. OBJS += ../src/ap/authsrv.o
  619. OBJS += ../src/ap/ap_config.o
  620. OBJS += ../src/utils/ip_addr.o
  621. OBJS += ../src/ap/sta_info.o
  622. OBJS += ../src/ap/tkip_countermeasures.o
  623. OBJS += ../src/ap/ap_mlme.o
  624. OBJS += ../src/ap/ieee802_1x.o
  625. OBJS += ../src/eapol_auth/eapol_auth_sm.o
  626. OBJS += ../src/ap/ieee802_11_auth.o
  627. OBJS += ../src/ap/ieee802_11_shared.o
  628. OBJS += ../src/ap/drv_callbacks.o
  629. OBJS += ../src/ap/ap_drv_ops.o
  630. OBJS += ../src/ap/beacon.o
  631. ifdef CONFIG_IEEE80211N
  632. OBJS += ../src/ap/ieee802_11_ht.o
  633. endif
  634. ifdef CONFIG_CTRL_IFACE
  635. OBJS += ../src/ap/ctrl_iface_ap.o
  636. endif
  637. CFLAGS += -DEAP_SERVER -DEAP_SERVER_IDENTITY
  638. OBJS += ../src/eap_server/eap_server.o
  639. OBJS += ../src/eap_server/eap_server_identity.o
  640. OBJS += ../src/eap_server/eap_server_methods.o
  641. ifdef CONFIG_IEEE80211N
  642. CFLAGS += -DCONFIG_IEEE80211N
  643. endif
  644. ifdef CONFIG_WNM
  645. CFLAGS += -DCONFIG_WNM
  646. endif
  647. ifdef NEED_AP_MLME
  648. OBJS += ../src/ap/wmm.o
  649. OBJS += ../src/ap/ap_list.o
  650. OBJS += ../src/ap/ieee802_11.o
  651. OBJS += ../src/ap/hw_features.o
  652. CFLAGS += -DNEED_AP_MLME
  653. endif
  654. ifdef CONFIG_WPS
  655. CFLAGS += -DEAP_SERVER_WSC
  656. OBJS += ../src/ap/wps_hostapd.o
  657. OBJS += ../src/eap_server/eap_server_wsc.o
  658. endif
  659. ifdef CONFIG_INTERWORKING
  660. OBJS += ../src/ap/gas_serv.o
  661. endif
  662. ifdef CONFIG_HS20
  663. OBJS += ../src/ap/hs20.o
  664. endif
  665. endif
  666. ifdef NEED_RSN_AUTHENTICATOR
  667. CFLAGS += -DCONFIG_NO_RADIUS
  668. NEED_AES_WRAP=y
  669. OBJS += ../src/ap/wpa_auth.o
  670. OBJS += ../src/ap/wpa_auth_ie.o
  671. OBJS += ../src/ap/pmksa_cache_auth.o
  672. ifdef CONFIG_IEEE80211R
  673. OBJS += ../src/ap/wpa_auth_ft.o
  674. endif
  675. ifdef CONFIG_PEERKEY
  676. OBJS += ../src/ap/peerkey_auth.o
  677. endif
  678. endif
  679. ifdef CONFIG_EAP_SERVER
  680. CFLAGS += -DEAP_SERVER
  681. OBJS_h += ../src/eap_server/eap_server.o
  682. OBJS_h += ../src/eap_server/eap_server_identity.o
  683. OBJS_h += ../src/eap_server/eap_server_methods.o
  684. endif
  685. ifdef CONFIG_RADIUS_CLIENT
  686. OBJS_h += ../src/utils/ip_addr.o
  687. OBJS_h += ../src/radius/radius.o
  688. OBJS_h += ../src/radius/radius_client.o
  689. endif
  690. ifdef CONFIG_AUTHENTICATOR
  691. OBJS_h += ../src/eapol_auth/eapol_auth_sm.o
  692. OBJS_h += ../src/ap/ieee802_1x.o
  693. endif
  694. ifdef CONFIG_WPA_AUTHENTICATOR
  695. OBJS_h += ../src/ap/wpa_auth.o
  696. OBJS_h += ../src/ap/wpa_auth_ie.o
  697. OBJS_h += ../src/ap/pmksa_cache_auth.o
  698. ifdef CONFIG_IEEE80211R
  699. OBJS_h += ../src/ap/wpa_auth_ft.o
  700. endif
  701. ifdef CONFIG_PEERKEY
  702. OBJS_h += ../src/ap/peerkey_auth.o
  703. endif
  704. endif
  705. ifdef CONFIG_PCSC
  706. # PC/SC interface for smartcards (USIM, GSM SIM)
  707. CFLAGS += -DPCSC_FUNCS -I/usr/include/PCSC
  708. OBJS += ../src/utils/pcsc_funcs.o
  709. # -lpthread may not be needed depending on how pcsc-lite was configured
  710. ifdef CONFIG_NATIVE_WINDOWS
  711. #Once MinGW gets support for WinScard, -lwinscard could be used instead of the
  712. #dynamic symbol loading that is now used in pcsc_funcs.c
  713. #LIBS += -lwinscard
  714. else
  715. LIBS += -lpcsclite -lpthread
  716. endif
  717. endif
  718. ifdef CONFIG_SIM_SIMULATOR
  719. CFLAGS += -DCONFIG_SIM_SIMULATOR
  720. NEED_MILENAGE=y
  721. endif
  722. ifdef CONFIG_USIM_SIMULATOR
  723. CFLAGS += -DCONFIG_USIM_SIMULATOR
  724. NEED_MILENAGE=y
  725. endif
  726. ifdef NEED_MILENAGE
  727. OBJS += ../src/crypto/milenage.o
  728. NEED_AES_ENCBLOCK=y
  729. endif
  730. ifdef CONFIG_PKCS12
  731. CFLAGS += -DPKCS12_FUNCS
  732. endif
  733. ifdef CONFIG_SMARTCARD
  734. CFLAGS += -DCONFIG_SMARTCARD
  735. endif
  736. ifdef MS_FUNCS
  737. OBJS += ../src/crypto/ms_funcs.o
  738. NEED_DES=y
  739. NEED_MD4=y
  740. endif
  741. ifdef CHAP
  742. OBJS += ../src/eap_common/chap.o
  743. endif
  744. ifdef TLS_FUNCS
  745. NEED_DES=y
  746. # Shared TLS functions (needed for EAP_TLS, EAP_PEAP, EAP_TTLS, and EAP_FAST)
  747. OBJS += ../src/eap_peer/eap_tls_common.o
  748. OBJS_h += ../src/eap_server/eap_server_tls_common.o
  749. NEED_TLS_PRF=y
  750. endif
  751. ifndef CONFIG_TLS
  752. CONFIG_TLS=openssl
  753. endif
  754. ifdef CONFIG_TLSV11
  755. CFLAGS += -DCONFIG_TLSV11
  756. endif
  757. ifdef CONFIG_TLSV12
  758. CFLAGS += -DCONFIG_TLSV12
  759. NEED_SHA256=y
  760. endif
  761. ifeq ($(CONFIG_TLS), openssl)
  762. ifdef TLS_FUNCS
  763. CFLAGS += -DEAP_TLS_OPENSSL
  764. OBJS += ../src/crypto/tls_openssl.o
  765. LIBS += -lssl
  766. endif
  767. OBJS += ../src/crypto/crypto_openssl.o
  768. OBJS_p += ../src/crypto/crypto_openssl.o
  769. ifdef NEED_FIPS186_2_PRF
  770. OBJS += ../src/crypto/fips_prf_openssl.o
  771. endif
  772. LIBS += -lcrypto
  773. LIBS_p += -lcrypto
  774. endif
  775. ifeq ($(CONFIG_TLS), gnutls)
  776. ifdef TLS_FUNCS
  777. OBJS += ../src/crypto/tls_gnutls.o
  778. LIBS += -lgnutls -lgpg-error
  779. endif
  780. OBJS += ../src/crypto/crypto_gnutls.o
  781. OBJS_p += ../src/crypto/crypto_gnutls.o
  782. ifdef NEED_FIPS186_2_PRF
  783. OBJS += ../src/crypto/fips_prf_gnutls.o
  784. endif
  785. LIBS += -lgcrypt
  786. LIBS_p += -lgcrypt
  787. CONFIG_INTERNAL_SHA256=y
  788. CONFIG_INTERNAL_RC4=y
  789. CONFIG_INTERNAL_DH_GROUP5=y
  790. endif
  791. ifeq ($(CONFIG_TLS), schannel)
  792. ifdef TLS_FUNCS
  793. OBJS += ../src/crypto/tls_schannel.o
  794. endif
  795. OBJS += ../src/crypto/crypto_cryptoapi.o
  796. OBJS_p += ../src/crypto/crypto_cryptoapi.o
  797. ifdef NEED_FIPS186_2_PRF
  798. OBJS += ../src/crypto/fips_prf_cryptoapi.o
  799. endif
  800. CONFIG_INTERNAL_SHA256=y
  801. CONFIG_INTERNAL_RC4=y
  802. CONFIG_INTERNAL_DH_GROUP5=y
  803. endif
  804. ifeq ($(CONFIG_TLS), nss)
  805. ifdef TLS_FUNCS
  806. OBJS += ../src/crypto/tls_nss.o
  807. LIBS += -lssl3
  808. endif
  809. OBJS += ../src/crypto/crypto_nss.o
  810. OBJS_p += ../src/crypto/crypto_nss.o
  811. ifdef NEED_FIPS186_2_PRF
  812. OBJS += ../src/crypto/fips_prf_nss.o
  813. endif
  814. LIBS += -lnss3
  815. LIBS_p += -lnss3
  816. CONFIG_INTERNAL_MD4=y
  817. CONFIG_INTERNAL_DH_GROUP5=y
  818. endif
  819. ifeq ($(CONFIG_TLS), internal)
  820. ifndef CONFIG_CRYPTO
  821. CONFIG_CRYPTO=internal
  822. endif
  823. ifdef TLS_FUNCS
  824. OBJS += ../src/crypto/crypto_internal-rsa.o
  825. OBJS += ../src/crypto/tls_internal.o
  826. OBJS += ../src/tls/tlsv1_common.o
  827. OBJS += ../src/tls/tlsv1_record.o
  828. OBJS += ../src/tls/tlsv1_cred.o
  829. OBJS += ../src/tls/tlsv1_client.o
  830. OBJS += ../src/tls/tlsv1_client_write.o
  831. OBJS += ../src/tls/tlsv1_client_read.o
  832. OBJS += ../src/tls/asn1.o
  833. OBJS += ../src/tls/rsa.o
  834. OBJS += ../src/tls/x509v3.o
  835. OBJS += ../src/tls/pkcs1.o
  836. OBJS += ../src/tls/pkcs5.o
  837. OBJS += ../src/tls/pkcs8.o
  838. NEED_SHA256=y
  839. NEED_BASE64=y
  840. NEED_TLS_PRF=y
  841. ifdef CONFIG_TLSV12
  842. NEED_TLS_PRF_SHA256=y
  843. endif
  844. NEED_MODEXP=y
  845. NEED_CIPHER=y
  846. CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
  847. endif
  848. ifdef NEED_CIPHER
  849. NEED_DES=y
  850. OBJS += ../src/crypto/crypto_internal-cipher.o
  851. endif
  852. ifdef NEED_MODEXP
  853. OBJS += ../src/crypto/crypto_internal-modexp.o
  854. OBJS += ../src/tls/bignum.o
  855. endif
  856. ifeq ($(CONFIG_CRYPTO), libtomcrypt)
  857. OBJS += ../src/crypto/crypto_libtomcrypt.o
  858. OBJS_p += ../src/crypto/crypto_libtomcrypt.o
  859. LIBS += -ltomcrypt -ltfm
  860. LIBS_p += -ltomcrypt -ltfm
  861. CONFIG_INTERNAL_SHA256=y
  862. CONFIG_INTERNAL_RC4=y
  863. CONFIG_INTERNAL_DH_GROUP5=y
  864. endif
  865. ifeq ($(CONFIG_CRYPTO), internal)
  866. OBJS += ../src/crypto/crypto_internal.o
  867. OBJS_p += ../src/crypto/crypto_internal.o
  868. NEED_AES_ENC=y
  869. CFLAGS += -DCONFIG_CRYPTO_INTERNAL
  870. ifdef CONFIG_INTERNAL_LIBTOMMATH
  871. CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
  872. ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST
  873. CFLAGS += -DLTM_FAST
  874. endif
  875. else
  876. LIBS += -ltommath
  877. LIBS_p += -ltommath
  878. endif
  879. CONFIG_INTERNAL_AES=y
  880. CONFIG_INTERNAL_DES=y
  881. CONFIG_INTERNAL_SHA1=y
  882. CONFIG_INTERNAL_MD4=y
  883. CONFIG_INTERNAL_MD5=y
  884. CONFIG_INTERNAL_SHA256=y
  885. CONFIG_INTERNAL_RC4=y
  886. CONFIG_INTERNAL_DH_GROUP5=y
  887. endif
  888. ifeq ($(CONFIG_CRYPTO), cryptoapi)
  889. OBJS += ../src/crypto/crypto_cryptoapi.o
  890. OBJS_p += ../src/crypto/crypto_cryptoapi.o
  891. CFLAGS += -DCONFIG_CRYPTO_CRYPTOAPI
  892. CONFIG_INTERNAL_SHA256=y
  893. CONFIG_INTERNAL_RC4=y
  894. endif
  895. endif
  896. ifeq ($(CONFIG_TLS), none)
  897. ifdef TLS_FUNCS
  898. OBJS += ../src/crypto/tls_none.o
  899. CFLAGS += -DEAP_TLS_NONE
  900. CONFIG_INTERNAL_AES=y
  901. CONFIG_INTERNAL_SHA1=y
  902. CONFIG_INTERNAL_MD5=y
  903. endif
  904. OBJS += ../src/crypto/crypto_none.o
  905. OBJS_p += ../src/crypto/crypto_none.o
  906. CONFIG_INTERNAL_SHA256=y
  907. CONFIG_INTERNAL_RC4=y
  908. endif
  909. ifdef TLS_FUNCS
  910. ifdef CONFIG_SMARTCARD
  911. ifndef CONFIG_NATIVE_WINDOWS
  912. ifneq ($(CONFIG_L2_PACKET), freebsd)
  913. LIBS += -ldl
  914. endif
  915. endif
  916. endif
  917. endif
  918. ifndef TLS_FUNCS
  919. OBJS += ../src/crypto/tls_none.o
  920. ifeq ($(CONFIG_TLS), internal)
  921. CONFIG_INTERNAL_AES=y
  922. CONFIG_INTERNAL_SHA1=y
  923. CONFIG_INTERNAL_MD5=y
  924. CONFIG_INTERNAL_RC4=y
  925. endif
  926. endif
  927. AESOBJS = # none so far (see below)
  928. ifdef CONFIG_INTERNAL_AES
  929. AESOBJS += ../src/crypto/aes-internal.o ../src/crypto/aes-internal-dec.o
  930. endif
  931. AESOBJS += ../src/crypto/aes-unwrap.o
  932. ifdef NEED_AES_EAX
  933. AESOBJS += ../src/crypto/aes-eax.o
  934. NEED_AES_CTR=y
  935. endif
  936. ifdef NEED_AES_CTR
  937. AESOBJS += ../src/crypto/aes-ctr.o
  938. endif
  939. ifdef NEED_AES_ENCBLOCK
  940. AESOBJS += ../src/crypto/aes-encblock.o
  941. endif
  942. ifdef NEED_AES_OMAC1
  943. NEED_AES_ENC=y
  944. AESOBJS += ../src/crypto/aes-omac1.o
  945. endif
  946. ifdef NEED_AES_WRAP
  947. NEED_AES_ENC=y
  948. AESOBJS += ../src/crypto/aes-wrap.o
  949. endif
  950. ifdef NEED_AES_CBC
  951. NEED_AES_ENC=y
  952. AESOBJS += ../src/crypto/aes-cbc.o
  953. endif
  954. ifdef NEED_AES_ENC
  955. ifdef CONFIG_INTERNAL_AES
  956. AESOBJS += ../src/crypto/aes-internal-enc.o
  957. endif
  958. endif
  959. ifdef NEED_AES
  960. OBJS += $(AESOBJS)
  961. endif
  962. ifdef NEED_SHA1
  963. SHA1OBJS += ../src/crypto/sha1.o
  964. ifdef CONFIG_INTERNAL_SHA1
  965. SHA1OBJS += ../src/crypto/sha1-internal.o
  966. ifdef NEED_FIPS186_2_PRF
  967. SHA1OBJS += ../src/crypto/fips_prf_internal.o
  968. endif
  969. endif
  970. ifdef CONFIG_NO_WPA_PASSPHRASE
  971. CFLAGS += -DCONFIG_NO_PBKDF2
  972. else
  973. SHA1OBJS += ../src/crypto/sha1-pbkdf2.o
  974. endif
  975. ifdef NEED_T_PRF
  976. SHA1OBJS += ../src/crypto/sha1-tprf.o
  977. endif
  978. ifdef NEED_TLS_PRF
  979. SHA1OBJS += ../src/crypto/sha1-tlsprf.o
  980. endif
  981. endif
  982. MD5OBJS = ../src/crypto/md5.o
  983. ifdef NEED_MD5
  984. ifdef CONFIG_INTERNAL_MD5
  985. MD5OBJS += ../src/crypto/md5-internal.o
  986. endif
  987. ifdef CONFIG_FIPS
  988. MD5OBJS += ../src/crypto/md5-non-fips.o
  989. endif
  990. OBJS += $(MD5OBJS)
  991. OBJS_p += $(MD5OBJS)
  992. endif
  993. ifdef NEED_MD4
  994. ifdef CONFIG_INTERNAL_MD4
  995. OBJS += ../src/crypto/md4-internal.o
  996. endif
  997. endif
  998. DESOBJS = # none needed when not internal
  999. ifdef NEED_DES
  1000. ifdef CONFIG_INTERNAL_DES
  1001. DESOBJS += ../src/crypto/des-internal.o
  1002. endif
  1003. endif
  1004. ifdef NEED_RC4
  1005. ifdef CONFIG_INTERNAL_RC4
  1006. OBJS += ../src/crypto/rc4.o
  1007. endif
  1008. endif
  1009. SHA256OBJS = # none by default
  1010. ifdef NEED_SHA256
  1011. CFLAGS += -DCONFIG_SHA256
  1012. SHA256OBJS += ../src/crypto/sha256.o
  1013. ifdef CONFIG_INTERNAL_SHA256
  1014. SHA256OBJS += ../src/crypto/sha256-internal.o
  1015. endif
  1016. ifdef NEED_TLS_PRF_SHA256
  1017. SHA256OBJS += ../src/crypto/sha256-tlsprf.o
  1018. endif
  1019. OBJS += $(SHA256OBJS)
  1020. endif
  1021. ifdef NEED_DH_GROUPS
  1022. OBJS += ../src/crypto/dh_groups.o
  1023. endif
  1024. ifdef NEED_DH_GROUPS_ALL
  1025. CFLAGS += -DALL_DH_GROUPS
  1026. endif
  1027. ifdef CONFIG_INTERNAL_DH_GROUP5
  1028. ifdef NEED_DH_GROUPS
  1029. OBJS += ../src/crypto/dh_group5.o
  1030. endif
  1031. endif
  1032. ifdef CONFIG_NO_RANDOM_POOL
  1033. CFLAGS += -DCONFIG_NO_RANDOM_POOL
  1034. else
  1035. OBJS += ../src/crypto/random.o
  1036. endif
  1037. ifdef CONFIG_CTRL_IFACE
  1038. ifeq ($(CONFIG_CTRL_IFACE), y)
  1039. ifdef CONFIG_NATIVE_WINDOWS
  1040. CONFIG_CTRL_IFACE=named_pipe
  1041. else
  1042. CONFIG_CTRL_IFACE=unix
  1043. endif
  1044. endif
  1045. CFLAGS += -DCONFIG_CTRL_IFACE
  1046. ifeq ($(CONFIG_CTRL_IFACE), unix)
  1047. CFLAGS += -DCONFIG_CTRL_IFACE_UNIX
  1048. endif
  1049. ifeq ($(CONFIG_CTRL_IFACE), udp)
  1050. CFLAGS += -DCONFIG_CTRL_IFACE_UDP
  1051. endif
  1052. ifeq ($(CONFIG_CTRL_IFACE), named_pipe)
  1053. CFLAGS += -DCONFIG_CTRL_IFACE_NAMED_PIPE
  1054. endif
  1055. OBJS += ctrl_iface.o ctrl_iface_$(CONFIG_CTRL_IFACE).o
  1056. endif
  1057. ifdef CONFIG_CTRL_IFACE_DBUS
  1058. DBUS=y
  1059. DBUS_CFLAGS += -DCONFIG_CTRL_IFACE_DBUS -DDBUS_API_SUBJECT_TO_CHANGE
  1060. DBUS_OBJS += dbus/dbus_old.o dbus/dbus_old_handlers.o
  1061. ifdef CONFIG_WPS
  1062. DBUS_OBJS += dbus/dbus_old_handlers_wps.o
  1063. endif
  1064. DBUS_OBJS += dbus/dbus_dict_helpers.o
  1065. ifndef DBUS_LIBS
  1066. DBUS_LIBS := $(shell $(PKG_CONFIG) --libs dbus-1)
  1067. endif
  1068. ifndef DBUS_INCLUDE
  1069. DBUS_INCLUDE := $(shell $(PKG_CONFIG) --cflags dbus-1)
  1070. endif
  1071. DBUS_CFLAGS += $(DBUS_INCLUDE)
  1072. endif
  1073. ifdef CONFIG_CTRL_IFACE_DBUS_NEW
  1074. DBUS=y
  1075. DBUS_CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_NEW
  1076. DBUS_OBJS ?= dbus/dbus_dict_helpers.o
  1077. DBUS_OBJS += dbus/dbus_new_helpers.o
  1078. DBUS_OBJS += dbus/dbus_new.o dbus/dbus_new_handlers.o
  1079. ifdef CONFIG_WPS
  1080. DBUS_OBJS += dbus/dbus_new_handlers_wps.o
  1081. endif
  1082. ifdef CONFIG_P2P
  1083. DBUS_OBJS += dbus/dbus_new_handlers_p2p.o
  1084. endif
  1085. ifndef DBUS_LIBS
  1086. DBUS_LIBS := $(shell $(PKG_CONFIG) --libs dbus-1)
  1087. endif
  1088. ifndef DBUS_INCLUDE
  1089. DBUS_INCLUDE := $(shell $(PKG_CONFIG) --cflags dbus-1)
  1090. endif
  1091. ifdef CONFIG_CTRL_IFACE_DBUS_INTRO
  1092. DBUS_OBJS += dbus/dbus_new_introspect.o
  1093. DBUS_CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_INTRO
  1094. endif
  1095. DBUS_CFLAGS += $(DBUS_INCLUDE)
  1096. endif
  1097. ifdef DBUS
  1098. DBUS_CFLAGS += -DCONFIG_DBUS
  1099. DBUS_OBJS += dbus/dbus_common.o
  1100. endif
  1101. OBJS += $(DBUS_OBJS)
  1102. CFLAGS += $(DBUS_CFLAGS)
  1103. LIBS += $(DBUS_LIBS)
  1104. ifdef CONFIG_READLINE
  1105. OBJS_c += ../src/utils/edit_readline.o
  1106. LIBS_c += -lncurses -lreadline
  1107. else
  1108. ifdef CONFIG_WPA_CLI_EDIT
  1109. OBJS_c += ../src/utils/edit.o
  1110. else
  1111. OBJS_c += ../src/utils/edit_simple.o
  1112. endif
  1113. endif
  1114. ifdef CONFIG_NATIVE_WINDOWS
  1115. CFLAGS += -DCONFIG_NATIVE_WINDOWS
  1116. LIBS += -lws2_32 -lgdi32 -lcrypt32
  1117. LIBS_c += -lws2_32
  1118. LIBS_p += -lws2_32 -lgdi32
  1119. ifeq ($(CONFIG_CRYPTO), cryptoapi)
  1120. LIBS_p += -lcrypt32
  1121. endif
  1122. endif
  1123. ifdef CONFIG_NO_STDOUT_DEBUG
  1124. CFLAGS += -DCONFIG_NO_STDOUT_DEBUG
  1125. ifndef CONFIG_CTRL_IFACE
  1126. CFLAGS += -DCONFIG_NO_WPA_MSG
  1127. endif
  1128. endif
  1129. ifdef CONFIG_IPV6
  1130. # for eapol_test only
  1131. CFLAGS += -DCONFIG_IPV6
  1132. endif
  1133. ifdef NEED_BASE64
  1134. OBJS += ../src/utils/base64.o
  1135. endif
  1136. ifdef NEED_SME
  1137. NEED_80211_COMMON=y
  1138. OBJS += sme.o
  1139. CFLAGS += -DCONFIG_SME
  1140. endif
  1141. ifdef NEED_80211_COMMON
  1142. OBJS += ../src/common/ieee802_11_common.o
  1143. endif
  1144. ifdef NEED_EAP_COMMON
  1145. OBJS += ../src/eap_common/eap_common.o
  1146. endif
  1147. ifndef CONFIG_MAIN
  1148. CONFIG_MAIN=main
  1149. endif
  1150. ifdef CONFIG_DEBUG_SYSLOG
  1151. CFLAGS += -DCONFIG_DEBUG_SYSLOG
  1152. ifdef CONFIG_DEBUG_SYSLOG_FACILITY
  1153. CFLAGS += -DLOG_HOSTAPD="$(CONFIG_DEBUG_SYSLOG_FACILITY)"
  1154. endif
  1155. endif
  1156. ifdef CONFIG_DEBUG_LINUX_TRACING
  1157. CFLAGS += -DCONFIG_DEBUG_LINUX_TRACING
  1158. endif
  1159. ifdef CONFIG_DEBUG_FILE
  1160. CFLAGS += -DCONFIG_DEBUG_FILE
  1161. endif
  1162. ifdef CONFIG_DELAYED_MIC_ERROR_REPORT
  1163. CFLAGS += -DCONFIG_DELAYED_MIC_ERROR_REPORT
  1164. endif
  1165. ifdef CONFIG_FIPS
  1166. CFLAGS += -DCONFIG_FIPS
  1167. endif
  1168. OBJS += $(SHA1OBJS) $(DESOBJS)
  1169. OBJS_p += $(SHA1OBJS)
  1170. OBJS_p += $(SHA256OBJS)
  1171. ifdef CONFIG_BGSCAN_SIMPLE
  1172. CFLAGS += -DCONFIG_BGSCAN_SIMPLE
  1173. OBJS += bgscan_simple.o
  1174. NEED_BGSCAN=y
  1175. endif
  1176. ifdef CONFIG_BGSCAN_LEARN
  1177. CFLAGS += -DCONFIG_BGSCAN_LEARN
  1178. OBJS += bgscan_learn.o
  1179. NEED_BGSCAN=y
  1180. endif
  1181. ifdef NEED_BGSCAN
  1182. CFLAGS += -DCONFIG_BGSCAN
  1183. OBJS += bgscan.o
  1184. endif
  1185. ifdef CONFIG_AUTOSCAN_EXPONENTIAL
  1186. CFLAGS += -DCONFIG_AUTOSCAN_EXPONENTIAL
  1187. OBJS += autoscan_exponential.o
  1188. NEED_AUTOSCAN=y
  1189. endif
  1190. ifdef CONFIG_AUTOSCAN_PERIODIC
  1191. CFLAGS += -DCONFIG_AUTOSCAN_PERIODIC
  1192. OBJS += autoscan_periodic.o
  1193. NEED_AUTOSCAN=y
  1194. endif
  1195. ifdef NEED_AUTOSCAN
  1196. CFLAGS += -DCONFIG_AUTOSCAN
  1197. OBJS += autoscan.o
  1198. endif
  1199. ifdef CONFIG_EXT_PASSWORD_TEST
  1200. OBJS += ../src/utils/ext_password_test.o
  1201. CFLAGS += -DCONFIG_EXT_PASSWORD_TEST
  1202. NEED_EXT_PASSWORD=y
  1203. endif
  1204. ifdef NEED_EXT_PASSWORD
  1205. OBJS += ../src/utils/ext_password.o
  1206. CFLAGS += -DCONFIG_EXT_PASSWORD
  1207. endif
  1208. ifdef NEED_GAS
  1209. OBJS += ../src/common/gas.o
  1210. OBJS += gas_query.o
  1211. CFLAGS += -DCONFIG_GAS
  1212. NEED_OFFCHANNEL=y
  1213. endif
  1214. ifdef NEED_OFFCHANNEL
  1215. OBJS += offchannel.o
  1216. CFLAGS += -DCONFIG_OFFCHANNEL
  1217. endif
  1218. OBJS += ../src/drivers/driver_common.o
  1219. OBJS_wpa_rm := ctrl_iface.o ctrl_iface_unix.o
  1220. OBJS_wpa := $(filter-out $(OBJS_wpa_rm),$(OBJS)) $(OBJS_h) tests/test_wpa.o
  1221. ifdef CONFIG_AUTHENTICATOR
  1222. OBJS_wpa += tests/link_test.o
  1223. endif
  1224. OBJS_wpa += $(OBJS_l2)
  1225. OBJS += wpa_supplicant.o events.o blacklist.o wpas_glue.o scan.o
  1226. OBJS_t := $(OBJS) $(OBJS_l2) eapol_test.o
  1227. OBJS_t += ../src/radius/radius_client.o
  1228. OBJS_t += ../src/radius/radius.o
  1229. ifndef CONFIG_AP
  1230. OBJS_t += ../src/utils/ip_addr.o
  1231. endif
  1232. OBJS_t2 := $(OBJS) $(OBJS_l2) preauth_test.o
  1233. OBJS_nfc := $(OBJS) $(OBJS_l2) nfc_pw_token.o
  1234. OBJS_nfc += $(OBJS_d) ../src/drivers/drivers.o
  1235. OBJS += $(CONFIG_MAIN).o
  1236. ifdef CONFIG_PRIVSEP
  1237. OBJS_priv += $(OBJS_d) ../src/drivers/drivers.o
  1238. OBJS_priv += $(OBJS_l2)
  1239. OBJS_priv += ../src/utils/os_$(CONFIG_OS).o
  1240. OBJS_priv += ../src/utils/$(CONFIG_ELOOP).o
  1241. OBJS_priv += ../src/utils/common.o
  1242. OBJS_priv += ../src/utils/wpa_debug.o
  1243. OBJS_priv += ../src/utils/wpabuf.o
  1244. OBJS_priv += wpa_priv.o
  1245. ifdef CONFIG_DRIVER_NL80211
  1246. OBJS_priv += ../src/common/ieee802_11_common.o
  1247. endif
  1248. ifdef CONFIG_DRIVER_TEST
  1249. OBJS_priv += $(SHA1OBJS)
  1250. OBJS_priv += $(MD5OBJS)
  1251. ifeq ($(CONFIG_TLS), openssl)
  1252. OBJS_priv += ../src/crypto/crypto_openssl.o
  1253. endif
  1254. ifeq ($(CONFIG_TLS), gnutls)
  1255. OBJS_priv += ../src/crypto/crypto_gnutls.o
  1256. endif
  1257. ifeq ($(CONFIG_TLS), nss)
  1258. OBJS_priv += ../src/crypto/crypto_nss.o
  1259. endif
  1260. ifeq ($(CONFIG_TLS), internal)
  1261. ifeq ($(CONFIG_CRYPTO), libtomcrypt)
  1262. OBJS_priv += ../src/crypto/crypto_libtomcrypt.o
  1263. else
  1264. OBJS_priv += ../src/crypto/crypto_internal.o
  1265. endif
  1266. endif
  1267. endif # CONFIG_DRIVER_TEST
  1268. OBJS += ../src/l2_packet/l2_packet_privsep.o
  1269. OBJS += ../src/drivers/driver_privsep.o
  1270. EXTRA_progs += wpa_priv
  1271. else
  1272. OBJS += $(OBJS_d) ../src/drivers/drivers.o
  1273. OBJS += $(OBJS_l2)
  1274. endif
  1275. ifdef CONFIG_NDIS_EVENTS_INTEGRATED
  1276. CFLAGS += -DCONFIG_NDIS_EVENTS_INTEGRATED
  1277. OBJS += ../src/drivers/ndis_events.o
  1278. EXTRALIBS += -loleaut32 -lole32 -luuid
  1279. ifdef PLATFORMSDKLIB
  1280. EXTRALIBS += $(PLATFORMSDKLIB)/WbemUuid.Lib
  1281. else
  1282. EXTRALIBS += WbemUuid.Lib
  1283. endif
  1284. endif
  1285. ifndef LDO
  1286. LDO=$(CC)
  1287. endif
  1288. Q=@
  1289. E=echo
  1290. ifeq ($(V), 1)
  1291. Q=
  1292. E=true
  1293. endif
  1294. dynamic_eap_methods: $(EAPDYN)
  1295. ../src/drivers/build.wpa_supplicant:
  1296. @if [ -f ../src/drivers/build.hostapd ]; then \
  1297. $(MAKE) -C ../src/drivers clean; \
  1298. fi
  1299. @touch ../src/drivers/build.wpa_supplicant
  1300. BCHECK=../src/drivers/build.wpa_supplicant
  1301. wpa_priv: $(BCHECK) $(OBJS_priv)
  1302. $(Q)$(LDO) $(LDFLAGS) -o wpa_priv $(OBJS_priv) $(LIBS)
  1303. @$(E) " LD " $@
  1304. $(OBJS_c) $(OBJS_t) $(OBJS_t2) $(OBJS) $(BCHECK) $(EXTRA_progs): .config
  1305. wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
  1306. $(Q)$(LDO) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS)
  1307. @$(E) " LD " $@
  1308. eapol_test: $(OBJS_t)
  1309. $(Q)$(LDO) $(LDFLAGS) -o eapol_test $(OBJS_t) $(LIBS)
  1310. @$(E) " LD " $@
  1311. preauth_test: $(OBJS_t2)
  1312. $(Q)$(LDO) $(LDFLAGS) -o preauth_test $(OBJS_t2) $(LIBS)
  1313. @$(E) " LD " $@
  1314. wpa_passphrase: $(OBJS_p)
  1315. $(Q)$(LDO) $(LDFLAGS) -o wpa_passphrase $(OBJS_p) $(LIBS_p)
  1316. @$(E) " LD " $@
  1317. wpa_cli: $(OBJS_c)
  1318. $(Q)$(LDO) $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
  1319. @$(E) " LD " $@
  1320. link_test: $(OBJS) $(OBJS_h) tests/link_test.o
  1321. $(Q)$(LDO) $(LDFLAGS) -o link_test $(OBJS) $(OBJS_h) tests/link_test.o $(LIBS)
  1322. @$(E) " LD " $@
  1323. test_wpa: $(OBJS_wpa) $(OBJS_h)
  1324. $(Q)$(LDO) $(LDFLAGS) -o test_wpa $(OBJS_wpa) $(LIBS)
  1325. @$(E) " LD " $@
  1326. nfc_pw_token: $(OBJS_nfc)
  1327. $(Q)$(LDO) $(LDFLAGS) -o nfc_pw_token $(OBJS_nfc) $(LIBS)
  1328. @$(E) " LD " $@
  1329. win_if_list: win_if_list.c
  1330. $(Q)$(LDO) $(LDFLAGS) -o $@ win_if_list.c $(CFLAGS) $(LIBS_w)
  1331. @$(E) " LD " $@
  1332. eap_psk.so: ../src/eap_peer/eap_psk.c ../src/eap_common/eap_psk_common.c
  1333. $(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
  1334. -Deap_peer_psk_register=eap_peer_method_dynamic_init
  1335. eap_pax.so: ../src/eap_peer/eap_pax.c ../src/eap_common/eap_pax_common.c
  1336. $(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
  1337. -Deap_peer_pax_register=eap_peer_method_dynamic_init
  1338. eap_sake.so: ../src/eap_peer/eap_sake.c ../src/eap_common/eap_sake_common.c
  1339. $(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
  1340. -Deap_peer_sake_register=eap_peer_method_dynamic_init
  1341. eap_wsc.so: ../src/eap_peer/eap_wsc.c ../src/eap_common/eap_wsc_common.c ../src/wps/wps.c
  1342. $(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
  1343. -Deap_peer_wsc_register=eap_peer_method_dynamic_init
  1344. 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
  1345. $(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
  1346. -Deap_peer_ikev2_register=eap_peer_method_dynamic_init
  1347. %.so: %.c
  1348. $(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $< \
  1349. -D$(*F:eap_%=eap_peer_%)_register=eap_peer_method_dynamic_init
  1350. %.o: %.c
  1351. $(Q)$(CC) -c -o $@ $(CFLAGS) $<
  1352. @$(E) " CC " $<
  1353. %.service: %.service.in
  1354. sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@
  1355. %@.service: %.service.arg.in
  1356. sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@
  1357. wpa_supplicant.exe: wpa_supplicant
  1358. mv -f $< $@
  1359. wpa_cli.exe: wpa_cli
  1360. mv -f $< $@
  1361. wpa_passphrase.exe: wpa_passphrase
  1362. mv -f $< $@
  1363. win_if_list.exe: win_if_list
  1364. mv -f $< $@
  1365. eapol_test.exe: eapol_test
  1366. mv -f $< $@
  1367. WINALL=wpa_supplicant.exe wpa_cli.exe wpa_passphrase.exe win_if_list.exe
  1368. windows-bin: $(WINALL)
  1369. $(STRIP) $(WINALL)
  1370. wpa_gui:
  1371. @echo "wpa_gui has been removed - see wpa_gui-qt4 for replacement"
  1372. wpa_gui-qt4/Makefile:
  1373. qmake -o wpa_gui-qt4/Makefile wpa_gui-qt4/wpa_gui.pro
  1374. wpa_gui-qt4/lang/wpa_gui_de.qm: wpa_gui-qt4/lang/wpa_gui_de.ts
  1375. lrelease wpa_gui-qt4/wpa_gui.pro
  1376. wpa_gui-qt4: wpa_gui-qt4/Makefile wpa_gui-qt4/lang/wpa_gui_de.qm
  1377. $(MAKE) -C wpa_gui-qt4
  1378. TEST_EAP_SIM_COMMON_OBJS = $(SHA1OBJS) $(MD5OBJS) \
  1379. ../src/utils/common.o ../src/utils/os_unix.o \
  1380. ../src/utils/wpa_debug.o $(AESOBJS) \
  1381. tests/test_eap_sim_common.o
  1382. test-eap_sim_common: $(TEST_EAP_SIM_COMMON_OBJS)
  1383. $(LDO) $(LDFLAGS) -o $@ $(TEST_EAP_SIM_COMMON_OBJS) $(LIBS)
  1384. ./test-eap_sim_common
  1385. rm test-eap_sim_common
  1386. tests: test-eap_sim_common
  1387. clean:
  1388. $(MAKE) -C ../src clean
  1389. $(MAKE) -C dbus clean
  1390. rm -f core *~ *.o *.d eap_*.so $(ALL) $(WINALL) eapol_test preauth_test
  1391. rm -f wpa_priv
  1392. rm -f nfc_pw_token
  1393. -include $(OBJS:%.o=%.d)