6 CFLAGS
= -MMD
-O2
-Wall
-g
9 export LIBDIR ?
= /usr
/local
/lib
/
10 export BINDIR ?
= /usr
/local
/sbin
/
13 CFLAGS
+= -I..
/src
/utils
15 ALL
=wpa_supplicant wpa_passphrase wpa_cli
17 all: verify_config
$(ALL
) dynamic_eap_methods
20 # If NOT EXISTS .config
21 # echo 'Building wpa_supplicant requires a configuration file'
22 # echo '(.config). See README for more instructions. You can'; \
23 # echo 'run "cp defconfig .config" to create an example'; \
24 # echo 'configuration.'; \
29 # @if [ -f .config ]; then \
30 # echo '.config exists - did not replace it'; \
33 # echo CONFIG_DRIVER_HOSTAP=y >> .config
34 # echo CONFIG_DRIVER_WEXT=y >> .config
37 cp wpa_supplicant
$(BINDIR
)/WirelessManager
38 # mkdir -p $(DESTDIR)$(BINDIR)
39 # for i in $(ALL); do cp $$i $(DESTDIR)$(BINDIR)/$$i; done
40 # $(MAKE) -C ../src install
45 OBJS
+= eap_register.o
46 OBJS
+= ..
/src
/utils
/common.o
47 OBJS
+= ..
/src
/utils
/wpa_debug.o
48 OBJS
+= ..
/src
/utils
/wpabuf.o
49 OBJS_p
= wpa_passphrase.o
50 OBJS_p
+= ..
/src
/utils
/common.o
51 OBJS_p
+= ..
/src
/utils
/wpa_debug.o
52 OBJS_p
+= ..
/src
/utils
/wpabuf.o
53 OBJS_c
= wpa_cli.o ..
/src
/common
/wpa_ctrl.o
58 ifdef CONFIG_NATIVE_WINDOWS
65 ifeq ($(CONFIG_OS
), amiga
)
66 CFLAGS
+= -D__USE_INLINE__
-D__USE_BASETYPE__
-Wno-pointer-sign
-DMUI_GUI
69 OBJS
+= wpa_gui_
$(CONFIG_OS
).o
72 ifeq ($(CONFIG_OS
), internal
)
73 CFLAGS
+= -DOS_NO_C_LIB_DEFINES
76 OBJS
+= ..
/src
/utils
/os_
$(CONFIG_OS
).o
77 OBJS_p
+= ..
/src
/utils
/os_
$(CONFIG_OS
).o
78 OBJS_c
+= ..
/src
/utils
/os_
$(CONFIG_OS
).o
80 ifdef CONFIG_WPA_TRACE
82 OBJS
+= ..
/src
/utils
/trace.o
83 OBJS_p
+= ..
/src
/utils
/trace.o
84 OBJS_c
+= ..
/src
/utils
/trace.o
85 OBJS_c
+= ..
/src
/utils
/wpa_debug.o
87 CFLAGS
+= -funwind-tables
88 ifdef CONFIG_WPA_TRACE_BFD
89 CFLAGS
+= -DWPA_TRACE_BFD
99 OBJS
+= ..
/src
/utils
/$(CONFIG_ELOOP
).o
102 ifdef CONFIG_EAPOL_TEST
103 CFLAGS
+= -Werror
-DEAPOL_TEST
106 ifndef CONFIG_BACKEND
110 ifeq ($(CONFIG_BACKEND
), file
)
111 OBJS
+= config_file.o
112 ifndef CONFIG_NO_CONFIG_BLOBS
115 CFLAGS
+= -DCONFIG_BACKEND_FILE
118 ifeq ($(CONFIG_BACKEND
), winreg
)
119 OBJS
+= config_winreg.o
122 ifeq ($(CONFIG_BACKEND
), none
)
123 OBJS
+= config_none.o
126 ifdef CONFIG_NO_CONFIG_WRITE
127 CFLAGS
+= -DCONFIG_NO_CONFIG_WRITE
130 ifdef CONFIG_NO_CONFIG_BLOBS
131 CFLAGS
+= -DCONFIG_NO_CONFIG_BLOBS
134 ifdef CONFIG_NO_SCAN_PROCESSING
135 CFLAGS
+= -DCONFIG_NO_SCAN_PROCESSING
138 ifdef CONFIG_IEEE80211W
139 CFLAGS
+= -DCONFIG_IEEE80211W
144 ifdef CONFIG_IEEE80211R
145 CFLAGS
+= -DCONFIG_IEEE80211R
146 OBJS
+= ..
/src
/rsn_supp
/wpa_ft.o
153 CFLAGS
+= -DCONFIG_PEERKEY
157 OBJS
+= ..
/src
/rsn_supp
/wpa.o
158 OBJS
+= ..
/src
/rsn_supp
/preauth.o
159 OBJS
+= ..
/src
/rsn_supp
/pmksa_cache.o
160 OBJS
+= ..
/src
/rsn_supp
/peerkey.o
161 OBJS
+= ..
/src
/rsn_supp
/wpa_ie.o
162 OBJS
+= ..
/src
/common
/wpa_common.o
168 CFLAGS
+= -DCONFIG_NO_WPA
-DCONFIG_NO_WPA2
171 ifdef CONFIG_IBSS_RSN
172 NEED_RSN_AUTHENTICATOR
=y
173 CFLAGS
+= -DCONFIG_IBSS_RSN
178 CFLAGS
+= -DCONFIG_NO_WPA2
181 include ..
/src
/drivers
/drivers.mak
183 OBJS_d
+= $(DRV_BOTH_OBJS
)
184 CFLAGS
+= $(DRV_BOTH_CFLAGS
)
185 LDFLAGS
+= $(DRV_BOTH_LDFLAGS
)
186 LIBS
+= $(DRV_BOTH_LIBS
)
189 OBJS_d
+= $(DRV_WPA_OBJS
)
190 CFLAGS
+= $(DRV_WPA_CFLAGS
)
191 LDFLAGS
+= $(DRV_WPA_LDFLAGS
)
192 LIBS
+= $(DRV_WPA_LIBS
)
195 ifndef CONFIG_L2_PACKET
196 CONFIG_L2_PACKET
=linux
199 OBJS_l2
+= ..
/src
/l2_packet
/l2_packet_
$(CONFIG_L2_PACKET
).o
201 ifeq ($(CONFIG_L2_PACKET
), pcap
)
203 CFLAGS
+= -DCONFIG_WINPCAP
204 LIBS
+= -lwpcap
-lpacket
207 LIBS
+= -ldnet
-lpcap
211 ifeq ($(CONFIG_L2_PACKET
), winpcap
)
212 LIBS
+= -lwpcap
-lpacket
216 ifeq ($(CONFIG_L2_PACKET
), freebsd
)
222 ifeq ($(CONFIG_EAP_TLS
), dyn
)
223 CFLAGS
+= -DEAP_TLS_DYNAMIC
224 EAPDYN
+= ..
/src
/eap_peer
/eap_tls.so
227 OBJS
+= ..
/src
/eap_peer
/eap_tls.o
228 OBJS_h
+= ..
/src
/eap_server
/eap_server_tls.o
231 CONFIG_IEEE8021X_EAPOL
=y
234 ifdef CONFIG_EAP_PEAP
236 ifeq ($(CONFIG_EAP_PEAP
), dyn
)
237 CFLAGS
+= -DEAP_PEAP_DYNAMIC
238 EAPDYN
+= ..
/src
/eap_peer
/eap_peap.so
241 OBJS
+= ..
/src
/eap_peer
/eap_peap.o
242 OBJS
+= ..
/src
/eap_common
/eap_peap_common.o
243 OBJS_h
+= ..
/src
/eap_server
/eap_server_peap.o
246 CONFIG_IEEE8021X_EAPOL
=y
249 ifdef CONFIG_EAP_TTLS
251 ifeq ($(CONFIG_EAP_TTLS
), dyn
)
252 CFLAGS
+= -DEAP_TTLS_DYNAMIC
253 EAPDYN
+= ..
/src
/eap_peer
/eap_ttls.so
256 OBJS
+= ..
/src
/eap_peer
/eap_ttls.o
257 OBJS_h
+= ..
/src
/eap_server
/eap_server_ttls.o
262 CONFIG_IEEE8021X_EAPOL
=y
267 ifeq ($(CONFIG_EAP_MD5
), dyn
)
268 CFLAGS
+= -DEAP_MD5_DYNAMIC
269 EAPDYN
+= ..
/src
/eap_peer
/eap_md5.so
272 OBJS
+= ..
/src
/eap_peer
/eap_md5.o
273 OBJS_h
+= ..
/src
/eap_server
/eap_server_md5.o
276 CONFIG_IEEE8021X_EAPOL
=y
279 # backwards compatibility for old spelling
280 ifdef CONFIG_MSCHAPV2
281 ifndef CONFIG_EAP_MSCHAPV2
282 CONFIG_EAP_MSCHAPV2
=y
286 ifdef CONFIG_EAP_MSCHAPV2
288 ifeq ($(CONFIG_EAP_MSCHAPV2
), dyn
)
289 CFLAGS
+= -DEAP_MSCHAPv2_DYNAMIC
290 EAPDYN
+= ..
/src
/eap_peer
/eap_mschapv2.so
291 EAPDYN
+= ..
/src
/eap_peer
/mschapv2.so
293 CFLAGS
+= -DEAP_MSCHAPv2
294 OBJS
+= ..
/src
/eap_peer
/eap_mschapv2.o
295 OBJS
+= ..
/src
/eap_peer
/mschapv2.o
296 OBJS_h
+= ..
/src
/eap_server
/eap_server_mschapv2.o
299 CONFIG_IEEE8021X_EAPOL
=y
304 ifeq ($(CONFIG_EAP_GTC
), dyn
)
305 CFLAGS
+= -DEAP_GTC_DYNAMIC
306 EAPDYN
+= ..
/src
/eap_peer
/eap_gtc.so
309 OBJS
+= ..
/src
/eap_peer
/eap_gtc.o
310 OBJS_h
+= ..
/src
/eap_server
/eap_server_gtc.o
312 CONFIG_IEEE8021X_EAPOL
=y
317 ifeq ($(CONFIG_EAP_OTP
), dyn
)
318 CFLAGS
+= -DEAP_OTP_DYNAMIC
319 EAPDYN
+= ..
/src
/eap_peer
/eap_otp.so
322 OBJS
+= ..
/src
/eap_peer
/eap_otp.o
324 CONFIG_IEEE8021X_EAPOL
=y
329 ifeq ($(CONFIG_EAP_SIM
), dyn
)
330 CFLAGS
+= -DEAP_SIM_DYNAMIC
331 EAPDYN
+= ..
/src
/eap_peer
/eap_sim.so
334 OBJS
+= ..
/src
/eap_peer
/eap_sim.o
335 OBJS_h
+= ..
/src
/eap_server
/eap_server_sim.o
337 CONFIG_IEEE8021X_EAPOL
=y
338 CONFIG_EAP_SIM_COMMON
=y
342 ifdef CONFIG_EAP_LEAP
344 ifeq ($(CONFIG_EAP_LEAP
), dyn
)
345 CFLAGS
+= -DEAP_LEAP_DYNAMIC
346 EAPDYN
+= ..
/src
/eap_peer
/eap_leap.so
349 OBJS
+= ..
/src
/eap_peer
/eap_leap.o
352 CONFIG_IEEE8021X_EAPOL
=y
357 ifeq ($(CONFIG_EAP_PSK
), dyn
)
358 CFLAGS
+= -DEAP_PSK_DYNAMIC
359 EAPDYN
+= ..
/src
/eap_peer
/eap_psk.so
362 OBJS
+= ..
/src
/eap_peer
/eap_psk.o ..
/src
/eap_common
/eap_psk_common.o
363 OBJS_h
+= ..
/src
/eap_server
/eap_server_psk.o
365 CONFIG_IEEE8021X_EAPOL
=y
374 ifeq ($(CONFIG_EAP_AKA
), dyn
)
375 CFLAGS
+= -DEAP_AKA_DYNAMIC
376 EAPDYN
+= ..
/src
/eap_peer
/eap_aka.so
379 OBJS
+= ..
/src
/eap_peer
/eap_aka.o
380 OBJS_h
+= ..
/src
/eap_server
/eap_server_aka.o
382 CONFIG_IEEE8021X_EAPOL
=y
383 CONFIG_EAP_SIM_COMMON
=y
387 ifdef CONFIG_EAP_AKA_PRIME
389 ifeq ($(CONFIG_EAP_AKA_PRIME
), dyn
)
390 CFLAGS
+= -DEAP_AKA_PRIME_DYNAMIC
392 CFLAGS
+= -DEAP_AKA_PRIME
397 ifdef CONFIG_EAP_SIM_COMMON
398 OBJS
+= ..
/src
/eap_common
/eap_sim_common.o
399 OBJS_h
+= ..
/src
/eap_server
/eap_sim_db.o
404 ifdef CONFIG_EAP_FAST
406 ifeq ($(CONFIG_EAP_FAST
), dyn
)
407 CFLAGS
+= -DEAP_FAST_DYNAMIC
408 EAPDYN
+= ..
/src
/eap_peer
/eap_fast.so
409 EAPDYN
+= ..
/src
/eap_common
/eap_fast_common.o
412 OBJS
+= ..
/src
/eap_peer
/eap_fast.o ..
/src
/eap_peer
/eap_fast_pac.o
413 OBJS
+= ..
/src
/eap_common
/eap_fast_common.o
414 OBJS_h
+= ..
/src
/eap_server
/eap_server_fast.o
417 CONFIG_IEEE8021X_EAPOL
=y
423 ifeq ($(CONFIG_EAP_PAX
), dyn
)
424 CFLAGS
+= -DEAP_PAX_DYNAMIC
425 EAPDYN
+= ..
/src
/eap_peer
/eap_pax.so
428 OBJS
+= ..
/src
/eap_peer
/eap_pax.o ..
/src
/eap_common
/eap_pax_common.o
429 OBJS_h
+= ..
/src
/eap_server
/eap_server_pax.o
431 CONFIG_IEEE8021X_EAPOL
=y
434 ifdef CONFIG_EAP_SAKE
436 ifeq ($(CONFIG_EAP_SAKE
), dyn
)
437 CFLAGS
+= -DEAP_SAKE_DYNAMIC
438 EAPDYN
+= ..
/src
/eap_peer
/eap_sake.so
441 OBJS
+= ..
/src
/eap_peer
/eap_sake.o ..
/src
/eap_common
/eap_sake_common.o
442 OBJS_h
+= ..
/src
/eap_server
/eap_server_sake.o
444 CONFIG_IEEE8021X_EAPOL
=y
447 ifdef CONFIG_EAP_GPSK
449 ifeq ($(CONFIG_EAP_GPSK
), dyn
)
450 CFLAGS
+= -DEAP_GPSK_DYNAMIC
451 EAPDYN
+= ..
/src
/eap_peer
/eap_gpsk.so
454 OBJS
+= ..
/src
/eap_peer
/eap_gpsk.o ..
/src
/eap_common
/eap_gpsk_common.o
455 OBJS_h
+= ..
/src
/eap_server
/eap_server_gpsk.o
457 CONFIG_IEEE8021X_EAPOL
=y
458 ifdef CONFIG_EAP_GPSK_SHA256
459 CFLAGS
+= -DEAP_GPSK_SHA256
467 CFLAGS
+= -DCONFIG_WPS
-DEAP_WSC
468 OBJS
+= wps_supplicant.o
469 OBJS
+= ..
/src
/utils
/uuid.o
470 OBJS
+= ..
/src
/eap_peer
/eap_wsc.o ..
/src
/eap_common
/eap_wsc_common.o
471 OBJS
+= ..
/src
/wps
/wps.o
472 OBJS
+= ..
/src
/wps
/wps_common.o
473 OBJS
+= ..
/src
/wps
/wps_attr_parse.o
474 OBJS
+= ..
/src
/wps
/wps_attr_build.o
475 OBJS
+= ..
/src
/wps
/wps_attr_process.o
476 OBJS
+= ..
/src
/wps
/wps_dev_attr.o
477 OBJS
+= ..
/src
/wps
/wps_enrollee.o
478 OBJS
+= ..
/src
/wps
/wps_registrar.o
479 OBJS_h
+= ..
/src
/eap_server
/eap_server_wsc.o
480 CONFIG_IEEE8021X_EAPOL
=y
489 CFLAGS
+= -DCONFIG_WPS_UFD
490 OBJS
+= ..
/src
/wps
/wps_ufd.o
495 CFLAGS
+= -DCONFIG_WPS_NFC
496 OBJS
+= ..
/src
/wps
/ndef.o
497 OBJS
+= ..
/src
/wps
/wps_nfc.o
499 ifdef CONFIG_WPS_NFC_PN531
500 PN531_PATH ?
= /usr
/local
/src
/nfc
501 CFLAGS
+= -DCONFIG_WPS_NFC_PN531
502 CFLAGS
+= -I
${PN531_PATH}/inc
503 OBJS
+= ..
/src
/wps
/wps_nfc_pn531.o
504 LIBS
+= ${PN531_PATH}/lib
/wpsnfc.dll
505 LIBS
+= ${PN531_PATH}/lib
/libnfc_mapping_pn53x.dll
510 CFLAGS
+= -DCONFIG_WPS_OOB
515 CFLAGS
+= -DCONFIG_WPS_ER
516 OBJS
+= ..
/src
/wps
/wps_er.o
517 OBJS
+= ..
/src
/wps
/wps_er_ssdp.o
520 ifdef CONFIG_WPS_UPNP
521 CFLAGS
+= -DCONFIG_WPS_UPNP
522 OBJS
+= ..
/src
/wps
/wps_upnp.o
523 OBJS
+= ..
/src
/wps
/wps_upnp_ssdp.o
524 OBJS
+= ..
/src
/wps
/wps_upnp_web.o
525 OBJS
+= ..
/src
/wps
/wps_upnp_event.o
526 OBJS
+= ..
/src
/wps
/wps_upnp_ap.o
527 OBJS
+= ..
/src
/wps
/upnp_xml.o
528 OBJS
+= ..
/src
/wps
/httpread.o
529 OBJS
+= ..
/src
/wps
/http_client.o
530 OBJS
+= ..
/src
/wps
/http_server.o
535 ifdef CONFIG_EAP_IKEV2
537 ifeq ($(CONFIG_EAP_IKEV2
), dyn
)
538 CFLAGS
+= -DEAP_IKEV2_DYNAMIC
539 EAPDYN
+= ..
/src
/eap_peer
/eap_ikev2.so ..
/src
/eap_peer
/ikev2.o
540 EAPDYN
+= ..
/src
/eap_common
/eap_ikev2_common.o ..
/src
/eap_common
/ikev2_common.o
542 CFLAGS
+= -DEAP_IKEV2
543 OBJS
+= ..
/src
/eap_peer
/eap_ikev2.o ..
/src
/eap_peer
/ikev2.o
544 OBJS
+= ..
/src
/eap_common
/eap_ikev2_common.o ..
/src
/eap_common
/ikev2_common.o
545 OBJS_h
+= ..
/src
/eap_server
/eap_server_ikev2.o
546 OBJS_h
+= ..
/src
/eap_server
/ikev2.o
548 CONFIG_IEEE8021X_EAPOL
=y
555 ifdef CONFIG_EAP_VENDOR_TEST
556 ifeq ($(CONFIG_EAP_VENDOR_TEST
), dyn
)
557 CFLAGS
+= -DEAP_VENDOR_TEST_DYNAMIC
558 EAPDYN
+= ..
/src
/eap_peer
/eap_vendor_test.so
560 CFLAGS
+= -DEAP_VENDOR_TEST
561 OBJS
+= ..
/src
/eap_peer
/eap_vendor_test.o
562 OBJS_h
+= ..
/src
/eap_server
/eap_server_vendor_test.o
564 CONFIG_IEEE8021X_EAPOL
=y
570 OBJS
+= ..
/src
/eap_peer
/eap_tnc.o
571 OBJS
+= ..
/src
/eap_peer
/tncc.o
572 OBJS_h
+= ..
/src
/eap_server
/eap_server_tnc.o
573 OBJS_h
+= ..
/src
/eap_server
/tncs.o
575 ifndef CONFIG_NATIVE_WINDOWS
576 ifndef CONFIG_DRIVER_BSD
582 ifdef CONFIG_IEEE8021X_EAPOL
583 # IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication)
584 CFLAGS
+= -DIEEE8021X_EAPOL
585 OBJS
+= ..
/src
/eapol_supp
/eapol_supp_sm.o
586 OBJS
+= ..
/src
/eap_peer
/eap.o ..
/src
/eap_peer
/eap_methods.o
588 ifdef CONFIG_DYNAMIC_EAP_METHODS
589 CFLAGS
+= -DCONFIG_DYNAMIC_EAP_METHODS
590 LIBS
+= -ldl
-rdynamic
597 NEED_RSN_AUTHENTICATOR
=y
598 CFLAGS
+= -DCONFIG_AP
600 CFLAGS
+= -DCONFIG_NO_RADIUS
601 CFLAGS
+= -DCONFIG_NO_ACCOUNTING
602 CFLAGS
+= -DCONFIG_NO_VLAN
603 OBJS
+= ..
/src
/ap
/hostapd.o
604 OBJS
+= ..
/src
/ap
/wpa_auth_glue.o
605 OBJS
+= ..
/src
/ap
/utils.o
606 OBJS
+= ..
/src
/ap
/authsrv.o
607 OBJS
+= ..
/src
/ap
/ap_config.o
608 OBJS
+= ..
/src
/utils
/ip_addr.o
609 OBJS
+= ..
/src
/ap
/sta_info.o
610 OBJS
+= ..
/src
/ap
/tkip_countermeasures.o
611 OBJS
+= ..
/src
/ap
/ap_mlme.o
612 OBJS
+= ..
/src
/ap
/ieee802_1x.o
613 OBJS
+= ..
/src
/eapol_auth
/eapol_auth_sm.o
614 OBJS
+= ..
/src
/ap
/ieee802_11_auth.o
615 OBJS
+= ..
/src
/ap
/drv_callbacks.o
616 OBJS
+= ..
/src
/ap
/ap_drv_ops.o
617 ifdef CONFIG_CTRL_IFACE
618 OBJS
+= ..
/src
/ap
/ctrl_iface_ap.o
621 CFLAGS
+= -DEAP_SERVER
-DEAP_SERVER_IDENTITY
622 OBJS
+= ..
/src
/eap_server
/eap_server.o
623 OBJS
+= ..
/src
/eap_server
/eap_server_identity.o
624 OBJS
+= ..
/src
/eap_server
/eap_server_methods.o
626 ifdef CONFIG_IEEE80211N
627 CFLAGS
+= -DCONFIG_IEEE80211N
631 OBJS
+= ..
/src
/ap
/beacon.o
632 OBJS
+= ..
/src
/ap
/wmm.o
633 OBJS
+= ..
/src
/ap
/ap_list.o
634 OBJS
+= ..
/src
/ap
/ieee802_11.o
635 OBJS
+= ..
/src
/ap
/hw_features.o
636 ifdef CONFIG_IEEE80211N
637 OBJS
+= ..
/src
/ap
/ieee802_11_ht.o
639 CFLAGS
+= -DNEED_AP_MLME
642 CFLAGS
+= -DEAP_SERVER_WSC
643 OBJS
+= ..
/src
/ap
/wps_hostapd.o
644 OBJS
+= ..
/src
/eap_server
/eap_server_wsc.o
648 ifdef NEED_RSN_AUTHENTICATOR
649 CFLAGS
+= -DCONFIG_NO_RADIUS
651 OBJS
+= ..
/src
/ap
/wpa_auth.o
652 OBJS
+= ..
/src
/ap
/wpa_auth_ie.o
653 OBJS
+= ..
/src
/ap
/pmksa_cache_auth.o
654 ifdef CONFIG_IEEE80211R
655 OBJS
+= ..
/src
/ap
/wpa_auth_ft.o
658 OBJS
+= ..
/src
/ap
/peerkey_auth.o
662 ifdef CONFIG_EAP_SERVER
663 CFLAGS
+= -DEAP_SERVER
664 OBJS_h
+= ..
/src
/eap_server
/eap_server.o
665 OBJS_h
+= ..
/src
/eap_server
/eap_server_identity.o
666 OBJS_h
+= ..
/src
/eap_server
/eap_server_methods.o
669 ifdef CONFIG_RADIUS_CLIENT
670 OBJS_h
+= ..
/src
/utils
/ip_addr.o
671 OBJS_h
+= ..
/src
/radius
/radius.o
672 OBJS_h
+= ..
/src
/radius
/radius_client.o
675 ifdef CONFIG_AUTHENTICATOR
676 OBJS_h
+= ..
/src
/eapol_auth
/eapol_auth_sm.o
677 OBJS_h
+= ..
/src
/ap
/ieee802_1x.o
680 ifdef CONFIG_WPA_AUTHENTICATOR
681 OBJS_h
+= ..
/src
/ap
/wpa_auth.o
682 OBJS_h
+= ..
/src
/ap
/wpa_auth_ie.o
683 OBJS_h
+= ..
/src
/ap
/pmksa_cache_auth.o
684 ifdef CONFIG_IEEE80211R
685 OBJS_h
+= ..
/src
/ap
/wpa_auth_ft.o
688 OBJS_h
+= ..
/src
/ap
/peerkey_auth.o
693 # PC/SC interface for smartcards (USIM, GSM SIM)
694 CFLAGS
+= -DPCSC_FUNCS
-I
/usr
/include/PCSC
695 OBJS
+= ..
/src
/utils
/pcsc_funcs.o
696 # -lpthread may not be needed depending on how pcsc-lite was configured
697 ifdef CONFIG_NATIVE_WINDOWS
698 #Once MinGW gets support for WinScard, -lwinscard could be used instead of the
699 #dynamic symbol loading that is now used in pcsc_funcs.c
702 LIBS
+= -lpcsclite
-lpthread
706 ifdef CONFIG_SIM_SIMULATOR
707 CFLAGS
+= -DCONFIG_SIM_SIMULATOR
711 ifdef CONFIG_USIM_SIMULATOR
712 CFLAGS
+= -DCONFIG_USIM_SIMULATOR
717 OBJS
+= ..
/src
/crypto
/milenage.o
721 CFLAGS
+= -DPKCS12_FUNCS
724 ifdef CONFIG_SMARTCARD
725 CFLAGS
+= -DCONFIG_SMARTCARD
729 OBJS
+= ..
/src
/crypto
/ms_funcs.o
735 OBJS
+= ..
/src
/eap_common
/chap.o
740 # Shared TLS functions (needed for EAP_TLS, EAP_PEAP, EAP_TTLS, and EAP_FAST)
741 OBJS
+= ..
/src
/eap_peer
/eap_tls_common.o
742 OBJS_h
+= ..
/src
/eap_server
/eap_server_tls_common.o
750 ifeq ($(CONFIG_TLS
), openssl
)
752 CFLAGS
+= -DEAP_TLS_OPENSSL
753 OBJS
+= ..
/src
/crypto
/tls_openssl.o
756 OBJS
+= ..
/src
/crypto
/crypto_openssl.o
757 OBJS_p
+= ..
/src
/crypto
/crypto_openssl.o
758 ifdef NEED_FIPS186_2_PRF
759 OBJS
+= ..
/src
/crypto
/fips_prf_openssl.o
765 ifeq ($(CONFIG_TLS
), gnutls
)
767 OBJS
+= ..
/src
/crypto
/tls_gnutls.o
768 LIBS
+= -lgnutls
-lgpg-error
769 ifdef CONFIG_GNUTLS_EXTRA
770 CFLAGS
+= -DCONFIG_GNUTLS_EXTRA
771 LIBS
+= -lgnutls-extra
774 OBJS
+= ..
/src
/crypto
/crypto_gnutls.o
775 OBJS_p
+= ..
/src
/crypto
/crypto_gnutls.o
776 ifdef NEED_FIPS186_2_PRF
777 OBJS
+= ..
/src
/crypto
/fips_prf_gnutls.o
781 CONFIG_INTERNAL_SHA256
=y
782 CONFIG_INTERNAL_RC4
=y
783 CONFIG_INTERNAL_DH_GROUP5
=y
786 ifeq ($(CONFIG_TLS
), schannel
)
788 OBJS
+= ..
/src
/crypto
/tls_schannel.o
790 OBJS
+= ..
/src
/crypto
/crypto_cryptoapi.o
791 OBJS_p
+= ..
/src
/crypto
/crypto_cryptoapi.o
792 ifdef NEED_FIPS186_2_PRF
793 OBJS
+= ..
/src
/crypto
/fips_prf_cryptoapi.o
795 CONFIG_INTERNAL_SHA256
=y
796 CONFIG_INTERNAL_RC4
=y
797 CONFIG_INTERNAL_DH_GROUP5
=y
800 ifeq ($(CONFIG_TLS
), nss
)
802 OBJS
+= ..
/src
/crypto
/tls_nss.o
805 OBJS
+= ..
/src
/crypto
/crypto_nss.o
806 OBJS_p
+= ..
/src
/crypto
/crypto_nss.o
807 ifdef NEED_FIPS186_2_PRF
808 OBJS
+= ..
/src
/crypto
/fips_prf_nss.o
812 CONFIG_INTERNAL_MD4
=y
813 CONFIG_INTERNAL_DH_GROUP5
=y
816 ifeq ($(CONFIG_TLS
), internal
)
818 CONFIG_CRYPTO
=internal
821 OBJS
+= ..
/src
/crypto
/crypto_internal-rsa.o
822 OBJS
+= ..
/src
/crypto
/tls_internal.o
823 OBJS
+= ..
/src
/tls
/tlsv1_common.o
824 OBJS
+= ..
/src
/tls
/tlsv1_record.o
825 OBJS
+= ..
/src
/tls
/tlsv1_cred.o
826 OBJS
+= ..
/src
/tls
/tlsv1_client.o
827 OBJS
+= ..
/src
/tls
/tlsv1_client_write.o
828 OBJS
+= ..
/src
/tls
/tlsv1_client_read.o
829 OBJS
+= ..
/src
/tls
/asn1.o
830 OBJS
+= ..
/src
/tls
/rsa.o
831 OBJS
+= ..
/src
/tls
/x509v3.o
832 OBJS
+= ..
/src
/tls
/pkcs1.o
833 OBJS
+= ..
/src
/tls
/pkcs5.o
834 OBJS
+= ..
/src
/tls
/pkcs8.o
840 CFLAGS
+= -DCONFIG_TLS_INTERNAL_CLIENT
844 OBJS
+= ..
/src
/crypto
/crypto_internal-cipher.o
847 OBJS
+= ..
/src
/crypto
/crypto_internal-modexp.o
848 OBJS
+= ..
/src
/tls
/bignum.o
850 ifeq ($(CONFIG_CRYPTO
), libtomcrypt
)
851 OBJS
+= ..
/src
/crypto
/crypto_libtomcrypt.o
852 OBJS_p
+= ..
/src
/crypto
/crypto_libtomcrypt.o
853 LIBS
+= -ltomcrypt
-ltfm
854 LIBS_p
+= -ltomcrypt
-ltfm
855 CONFIG_INTERNAL_SHA256
=y
856 CONFIG_INTERNAL_RC4
=y
857 CONFIG_INTERNAL_DH_GROUP5
=y
859 ifeq ($(CONFIG_CRYPTO
), internal
)
860 OBJS
+= ..
/src
/crypto
/crypto_internal.o
861 OBJS_p
+= ..
/src
/crypto
/crypto_internal.o
863 CFLAGS
+= -DCONFIG_CRYPTO_INTERNAL
864 ifdef CONFIG_INTERNAL_LIBTOMMATH
865 CFLAGS
+= -DCONFIG_INTERNAL_LIBTOMMATH
866 ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST
873 CONFIG_INTERNAL_AES
=y
874 CONFIG_INTERNAL_DES
=y
875 CONFIG_INTERNAL_SHA1
=y
876 CONFIG_INTERNAL_MD4
=y
877 CONFIG_INTERNAL_MD5
=y
878 CONFIG_INTERNAL_SHA256
=y
879 CONFIG_INTERNAL_RC4
=y
880 CONFIG_INTERNAL_DH_GROUP5
=y
882 ifeq ($(CONFIG_CRYPTO
), cryptoapi
)
883 OBJS
+= ..
/src
/crypto
/crypto_cryptoapi.o
884 OBJS_p
+= ..
/src
/crypto
/crypto_cryptoapi.o
885 CFLAGS
+= -DCONFIG_CRYPTO_CRYPTOAPI
886 CONFIG_INTERNAL_SHA256
=y
887 CONFIG_INTERNAL_RC4
=y
891 ifeq ($(CONFIG_TLS
), none
)
893 OBJS
+= ..
/src
/crypto
/tls_none.o
894 CFLAGS
+= -DEAP_TLS_NONE
895 CONFIG_INTERNAL_AES
=y
896 CONFIG_INTERNAL_SHA1
=y
897 CONFIG_INTERNAL_MD5
=y
899 OBJS
+= ..
/src
/crypto
/crypto_none.o
900 OBJS_p
+= ..
/src
/crypto
/crypto_none.o
901 CONFIG_INTERNAL_SHA256
=y
902 CONFIG_INTERNAL_RC4
=y
906 ifdef CONFIG_SMARTCARD
907 ifndef CONFIG_NATIVE_WINDOWS
908 ifneq ($(CONFIG_L2_PACKET
), freebsd
)
916 OBJS
+= ..
/src
/crypto
/tls_none.o
917 ifeq ($(CONFIG_TLS
), internal
)
918 CONFIG_INTERNAL_AES
=y
919 CONFIG_INTERNAL_SHA1
=y
920 CONFIG_INTERNAL_MD5
=y
921 CONFIG_INTERNAL_RC4
=y
925 AESOBJS
= # none so far (see below)
926 ifdef CONFIG_INTERNAL_AES
927 AESOBJS
+= ..
/src
/crypto
/aes-internal.o ..
/src
/crypto
/aes-internal-dec.o
930 AESOBJS
+= ..
/src
/crypto
/aes-unwrap.o
932 AESOBJS
+= ..
/src
/crypto
/aes-eax.o
936 AESOBJS
+= ..
/src
/crypto
/aes-ctr.o
938 ifdef NEED_AES_ENCBLOCK
939 AESOBJS
+= ..
/src
/crypto
/aes-encblock.o
943 AESOBJS
+= ..
/src
/crypto
/aes-omac1.o
947 AESOBJS
+= ..
/src
/crypto
/aes-wrap.o
951 AESOBJS
+= ..
/src
/crypto
/aes-cbc.o
954 ifdef CONFIG_INTERNAL_AES
955 AESOBJS
+= ..
/src
/crypto
/aes-internal-enc.o
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
970 ifndef CONFIG_NO_WPA_PASSPHRASE
971 SHA1OBJS
+= ..
/src
/crypto
/sha1-pbkdf2.o
974 SHA1OBJS
+= ..
/src
/crypto
/sha1-tprf.o
977 SHA1OBJS
+= ..
/src
/crypto
/sha1-tlsprf.o
981 MD5OBJS
= ..
/src
/crypto
/md5.o
983 ifdef CONFIG_INTERNAL_MD5
984 MD5OBJS
+= ..
/src
/crypto
/md5-internal.o
987 MD5OBJS
+= ..
/src
/crypto
/md5-non-fips.o
994 ifdef CONFIG_INTERNAL_MD4
995 OBJS
+= ..
/src
/crypto
/md4-internal.o
999 DESOBJS
= # none needed when not internal
1001 ifdef CONFIG_INTERNAL_DES
1002 DESOBJS
+= ..
/src
/crypto
/des-internal.o
1007 ifdef CONFIG_INTERNAL_RC4
1008 OBJS
+= ..
/src
/crypto
/rc4.o
1012 SHA256OBJS
= # none by default
1014 CFLAGS
+= -DCONFIG_SHA256
1015 SHA256OBJS
+= ..
/src
/crypto
/sha256.o
1016 ifdef CONFIG_INTERNAL_SHA256
1017 SHA256OBJS
+= ..
/src
/crypto
/sha256-internal.o
1019 OBJS
+= $(SHA256OBJS
)
1022 ifdef NEED_DH_GROUPS
1023 OBJS
+= ..
/src
/crypto
/dh_groups.o
1025 ifdef NEED_DH_GROUPS_ALL
1026 CFLAGS
+= -DALL_DH_GROUPS
1028 ifdef CONFIG_INTERNAL_DH_GROUP5
1029 ifdef NEED_DH_GROUPS
1030 OBJS
+= ..
/src
/crypto
/dh_group5.o
1034 ifdef CONFIG_CTRL_IFACE
1035 ifeq ($(CONFIG_CTRL_IFACE
), y
)
1036 ifdef CONFIG_NATIVE_WINDOWS
1037 CONFIG_CTRL_IFACE
=named_pipe
1039 CONFIG_CTRL_IFACE
=unix
1042 CFLAGS
+= -DCONFIG_CTRL_IFACE
1043 ifeq ($(CONFIG_CTRL_IFACE
), unix
)
1044 CFLAGS
+= -DCONFIG_CTRL_IFACE_UNIX
1046 ifeq ($(CONFIG_CTRL_IFACE
), udp
)
1047 CFLAGS
+= -DCONFIG_CTRL_IFACE_UDP
1049 ifeq ($(CONFIG_CTRL_IFACE
), named_pipe
)
1050 CFLAGS
+= -DCONFIG_CTRL_IFACE_NAMED_PIPE
1052 OBJS
+= ctrl_iface.o ctrl_iface_
$(CONFIG_CTRL_IFACE
).o
1055 ifdef CONFIG_CTRL_IFACE_DBUS
1057 DBUS_CFLAGS
+= -DCONFIG_CTRL_IFACE_DBUS
-DDBUS_API_SUBJECT_TO_CHANGE
1058 DBUS_OBJS
+= dbus
/dbus_old.o dbus
/dbus_old_handlers.o
1060 DBUS_OBJS
+= dbus
/dbus_old_handlers_wps.o
1062 DBUS_OBJS
+= dbus
/dbus_dict_helpers.o
1064 DBUS_LIBS
:= $(shell pkg-config
--libs dbus-1
)
1067 DBUS_INCLUDE
:= $(shell pkg-config
--cflags dbus-1
)
1069 dbus_version
=$(subst .
, ,$(shell pkg-config
--modversion dbus-1
))
1070 DBUS_VERSION_MAJOR
=$(word 1,$(dbus_version
))
1071 DBUS_VERSION_MINOR
=$(word 2,$(dbus_version
))
1072 ifeq ($(DBUS_VERSION_MAJOR
),)
1073 DBUS_VERSION_MAJOR
=0
1075 ifeq ($(DBUS_VERSION_MINOR
),)
1076 DBUS_VERSION_MINOR
=0
1078 DBUS_INCLUDE
+= -DDBUS_VERSION_MAJOR
=$(DBUS_VERSION_MAJOR
)
1079 DBUS_INCLUDE
+= -DDBUS_VERSION_MINOR
=$(DBUS_VERSION_MINOR
)
1080 DBUS_CFLAGS
+= $(DBUS_INCLUDE
)
1083 ifdef CONFIG_CTRL_IFACE_DBUS_NEW
1085 DBUS_CFLAGS
+= -DCONFIG_CTRL_IFACE_DBUS_NEW
1086 DBUS_OBJS ?
= dbus
/dbus_dict_helpers.o
1087 DBUS_OBJS
+= dbus
/dbus_new_helpers.o
1088 DBUS_OBJS
+= dbus
/dbus_new.o dbus
/dbus_new_handlers.o
1090 DBUS_OBJS
+= dbus
/dbus_new_handlers_wps.o
1093 DBUS_LIBS
:= $(shell pkg-config
--libs dbus-1
)
1096 DBUS_INCLUDE
:= $(shell pkg-config
--cflags dbus-1
)
1098 ifdef CONFIG_CTRL_IFACE_DBUS_INTRO
1099 DBUS_OBJS
+= dbus
/dbus_new_introspect.o
1100 DBUS_CFLAGS
+= -DCONFIG_CTRL_IFACE_DBUS_INTRO
1102 DBUS_CFLAGS
+= $(DBUS_INCLUDE
)
1106 DBUS_CFLAGS
+= -DCONFIG_DBUS
1107 DBUS_OBJS
+= dbus
/dbus_common.o
1110 OBJS
+= $(DBUS_OBJS
)
1111 CFLAGS
+= $(DBUS_CFLAGS
)
1112 LIBS
+= $(DBUS_LIBS
)
1114 ifdef CONFIG_READLINE
1115 CFLAGS
+= -DCONFIG_READLINE
1116 LIBS_c
+= -lncurses
-lreadline
1119 ifdef CONFIG_NATIVE_WINDOWS
1120 CFLAGS
+= -DCONFIG_NATIVE_WINDOWS
1121 LIBS
+= -lws2_32
-lgdi32
-lcrypt32
1123 LIBS_p
+= -lws2_32
-lgdi32
1124 ifeq ($(CONFIG_CRYPTO
), cryptoapi
)
1129 ifdef CONFIG_NO_STDOUT_DEBUG
1130 CFLAGS
+= -DCONFIG_NO_STDOUT_DEBUG
1131 ifndef CONFIG_CTRL_IFACE
1132 CFLAGS
+= -DCONFIG_NO_WPA_MSG
1137 # for eapol_test only
1138 CFLAGS
+= -DCONFIG_IPV6
1142 OBJS
+= ..
/src
/utils
/base64.o
1148 CFLAGS
+= -DCONFIG_SME
1151 ifdef CONFIG_CLIENT_MLME
1153 CFLAGS
+= -DCONFIG_CLIENT_MLME
1157 ifdef NEED_80211_COMMON
1158 OBJS
+= ..
/src
/common
/ieee802_11_common.o
1161 ifdef NEED_EAP_COMMON
1162 OBJS
+= ..
/src
/eap_common
/eap_common.o
1169 ifdef CONFIG_DEBUG_SYSLOG
1170 CFLAGS
+= -DCONFIG_DEBUG_SYSLOG
1173 ifdef CONFIG_DEBUG_FILE
1174 CFLAGS
+= -DCONFIG_DEBUG_FILE
1177 ifdef CONFIG_DELAYED_MIC_ERROR_REPORT
1178 CFLAGS
+= -DCONFIG_DELAYED_MIC_ERROR_REPORT
1182 CFLAGS
+= -DCONFIG_FIPS
1185 OBJS
+= $(SHA1OBJS
) $(DESOBJS
)
1187 OBJS_p
+= $(SHA1OBJS
)
1189 ifdef CONFIG_BGSCAN_SIMPLE
1190 CFLAGS
+= -DCONFIG_BGSCAN_SIMPLE
1191 OBJS
+= bgscan_simple.o
1196 CFLAGS
+= -DCONFIG_BGSCAN
1200 OBJS_wpa_rm
:= ctrl_iface.o mlme.o ctrl_iface_unix.o
1201 OBJS_wpa
:= $(filter-out $(OBJS_wpa_rm
),$(OBJS
)) $(OBJS_h
) tests
/test_wpa.o
1202 ifdef CONFIG_AUTHENTICATOR
1203 OBJS_wpa
+= tests
/link_test.o
1205 OBJS_wpa
+= $(OBJS_l2
)
1206 OBJS
+= wpa_supplicant.o events.o blacklist.o wpas_glue.o scan.o
1207 OBJS_t
:= $(OBJS
) $(OBJS_l2
) eapol_test.o
1208 OBJS_t
+= ..
/src
/radius
/radius_client.o
1209 OBJS_t
+= ..
/src
/radius
/radius.o
1211 OBJS_t
+= ..
/src
/utils
/ip_addr.o
1213 OBJS_t2
:= $(OBJS
) $(OBJS_l2
) preauth_test.o
1214 OBJS
+= $(CONFIG_MAIN
).o
1216 ifdef CONFIG_PRIVSEP
1217 OBJS_priv
+= $(OBJS_d
) ..
/src
/drivers
/drivers.o
1218 OBJS_priv
+= $(OBJS_l2
)
1219 OBJS_priv
+= ..
/src
/utils
/os_
$(CONFIG_OS
).o
1220 OBJS_priv
+= ..
/src
/utils
/$(CONFIG_ELOOP
).o
1221 OBJS_priv
+= ..
/src
/utils
/common.o
1222 OBJS_priv
+= ..
/src
/utils
/wpa_debug.o
1223 OBJS_priv
+= ..
/src
/utils
/wpabuf.o
1224 OBJS_priv
+= wpa_priv.o
1225 ifdef CONFIG_DRIVER_TEST
1226 OBJS_priv
+= $(SHA1OBJS
)
1227 OBJS_priv
+= $(MD5OBJS
)
1228 ifeq ($(CONFIG_TLS
), openssl
)
1229 OBJS_priv
+= ..
/src
/crypto
/crypto_openssl.o
1231 ifeq ($(CONFIG_TLS
), gnutls
)
1232 OBJS_priv
+= ..
/src
/crypto
/crypto_gnutls.o
1234 ifeq ($(CONFIG_TLS
), nss
)
1235 OBJS_priv
+= ..
/src
/crypto
/crypto_nss.o
1237 ifeq ($(CONFIG_TLS
), internal
)
1238 ifeq ($(CONFIG_CRYPTO
), libtomcrypt
)
1239 OBJS_priv
+= ..
/src
/crypto
/crypto_libtomcrypt.o
1241 OBJS_priv
+= ..
/src
/crypto
/crypto_internal.o
1244 endif # CONFIG_DRIVER_TEST
1245 OBJS
+= ..
/src
/l2_packet
/l2_packet_privsep.o
1246 OBJS
+= ..
/src
/drivers
/driver_privsep.o
1247 EXTRA_progs
+= wpa_priv
1249 OBJS
+= $(OBJS_d
) ..
/src
/drivers
/drivers.o
1253 ifdef CONFIG_NDIS_EVENTS_INTEGRATED
1254 CFLAGS
+= -DCONFIG_NDIS_EVENTS_INTEGRATED
1255 OBJS
+= ..
/src
/drivers
/ndis_events.o
1256 EXTRALIBS
+= -loleaut32
-lole32
-luuid
1257 ifdef PLATFORMSDKLIB
1258 EXTRALIBS
+= $(PLATFORMSDKLIB
)/WbemUuid.Lib
1260 EXTRALIBS
+= WbemUuid.Lib
1268 dynamic_eap_methods
: $(EAPDYN
)
1270 ..
/src
/drivers
/build.wpa_supplicant
:
1271 # @if [ -f ../src/drivers/build.hostapd ]; then \
1272 # $(MAKE) -C ../src/drivers clean; \
1274 @touch ..
/src
/drivers
/build.wpa_supplicant
1276 #BCHECK=../src/drivers/build.wpa_supplicant
1279 wpa_priv
: $(BCHECK
) $(OBJS_priv
)
1280 $(LDO
) $(LDFLAGS
) -o wpa_priv
$(OBJS_priv
) $(LIBS
)
1282 wpa_supplicant
: .config
$(BCHECK
) $(OBJS
) $(EXTRA_progs
)
1283 $(LDO
) $(LDFLAGS
) -o wpa_supplicant
$(OBJS
) $(LIBS
) $(EXTRALIBS
)
1285 eapol_test
: .config
$(OBJS_t
)
1286 $(LDO
) $(LDFLAGS
) -o eapol_test
$(OBJS_t
) $(LIBS
)
1288 preauth_test
: .config
$(OBJS_t2
)
1289 $(LDO
) $(LDFLAGS
) -o preauth_test
$(OBJS_t2
) $(LIBS
)
1291 wpa_passphrase
: $(OBJS_p
)
1292 $(LDO
) $(LDFLAGS
) -o wpa_passphrase
$(OBJS_p
) $(LIBS_p
)
1295 $(LDO
) $(LDFLAGS
) -o wpa_cli
$(OBJS_c
) $(LIBS_c
)
1297 link_test
: $(OBJS
) $(OBJS_h
) tests
/link_test.o
1298 $(LDO
) $(LDFLAGS
) -o link_test
$(OBJS
) $(OBJS_h
) tests
/link_test.o
$(LIBS
)
1300 test_wpa
: $(OBJS_wpa
) $(OBJS_h
)
1301 $(LDO
) $(LDFLAGS
) -o test_wpa
$(OBJS_wpa
) $(LIBS
)
1303 win_if_list
: win_if_list.c
1304 $(LDO
) $(LDFLAGS
) -o
$@ win_if_list.c
$(CFLAGS
) $(LIBS_w
)
1306 eap_psk.so
: ..
/src
/eap_peer
/eap_psk.c ..
/src
/eap_common
/eap_psk_common.c
1307 $(CC
) $(LDFLAGS
) -o
$@
$(CFLAGS
) -shared
-rdynamic
-fPIC
$^ \
1308 -Deap_peer_psk_register
=eap_peer_method_dynamic_init
1310 eap_pax.so
: ..
/src
/eap_peer
/eap_pax.c ..
/src
/eap_common
/eap_pax_common.c
1311 $(CC
) $(LDFLAGS
) -o
$@
$(CFLAGS
) -shared
-rdynamic
-fPIC
$^ \
1312 -Deap_peer_pax_register
=eap_peer_method_dynamic_init
1314 eap_sake.so
: ..
/src
/eap_peer
/eap_sake.c ..
/src
/eap_common
/eap_sake_common.c
1315 $(CC
) $(LDFLAGS
) -o
$@
$(CFLAGS
) -shared
-rdynamic
-fPIC
$^ \
1316 -Deap_peer_sake_register
=eap_peer_method_dynamic_init
1318 eap_wsc.so
: ..
/src
/eap_peer
/eap_wsc.c ..
/src
/eap_common
/eap_wsc_common.c ..
/src
/wps
/wps.c
1319 $(CC
) $(LDFLAGS
) -o
$@
$(CFLAGS
) -shared
-rdynamic
-fPIC
$^ \
1320 -Deap_peer_wsc_register
=eap_peer_method_dynamic_init
1322 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
1323 $(CC
) $(LDFLAGS
) -o
$@
$(CFLAGS
) -shared
-rdynamic
-fPIC
$^ \
1324 -Deap_peer_ikev2_register
=eap_peer_method_dynamic_init
1327 $(CC
) $(LDFLAGS
) -o
$@
$(CFLAGS
) -shared
-rdynamic
-fPIC
$< \
1328 -D
$(*F
:eap_
%=eap_peer_
%)_register
=eap_peer_method_dynamic_init
1338 $(Q
)$(CC
) -c
-o
$@
$(CFLAGS
) $<
1341 wpa_supplicant.exe
: wpa_supplicant
1343 wpa_cli.exe
: wpa_cli
1345 wpa_passphrase.exe
: wpa_passphrase
1347 win_if_list.exe
: win_if_list
1349 eapol_test.exe
: eapol_test
1352 #WirelessManager: wpa_supplicant
1355 WINALL
=wpa_supplicant.exe wpa_cli.exe wpa_passphrase.exe win_if_list.exe
1357 windows-bin
: $(WINALL
)
1361 qmake
-o wpa_gui
/Makefile wpa_gui
/wpa_gui.pro
1363 wpa_gui
: wpa_gui
/Makefile
1366 wpa_gui-qt4
/Makefile
:
1367 qmake
-o wpa_gui-qt4
/Makefile wpa_gui-qt4
/wpa_gui.pro
1369 wpa_gui-qt4
/lang
/wpa_gui_de.qm
: wpa_gui-qt4
/lang
/wpa_gui_de.ts
1370 lrelease wpa_gui-qt4
/wpa_gui.pro
1372 wpa_gui-qt4
: wpa_gui-qt4
/Makefile wpa_gui-qt4
/lang
/wpa_gui_de.qm
1373 $(MAKE
) -C wpa_gui-qt4
1375 TEST_EAP_SIM_COMMON_OBJS
= $(SHA1OBJS
) $(MD5OBJS
) \
1376 ..
/src
/utils
/common.o ..
/src
/utils
/os_unix.o \
1377 ..
/src
/utils
/wpa_debug.o
$(AESOBJS
) \
1378 tests
/test_eap_sim_common.o
1379 test-eap_sim_common
: $(TEST_EAP_SIM_COMMON_OBJS
)
1380 $(LDO
) $(LDFLAGS
) -o
$@
$(TEST_EAP_SIM_COMMON_OBJS
) $(LIBS
)
1381 .
/test-eap_sim_common
1382 rm test-eap_sim_common
1384 tests
: test-eap_sim_common
1387 $(MAKE
) -C ..
/src
clean
1388 $(MAKE
) -C dbus
clean
1389 rm -f core
*.o
*.d eap_
*.so
$(ALL
) $(WINALL
) eapol_test preauth_test
1392 -include $(OBJS
:%.o
=%.d
)