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