blob: 80e0ac8802bc9689c168678eb1a9bd0ad8e9d7df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
|
# Makefile for Microsoft nmake to build wpa_supplicant
# This can be run in Visual Studio 2005 Command Prompt
# Note: Make sure that cl.exe is configured to include Platform SDK
# include and lib directories (vsvars32.bat)
all: wpa_supplicant.exe wpa_cli.exe wpa_passphrase.exe wpasvc.exe win_if_list.exe
# Root directory for WinPcap developer's pack
# (http://www.winpcap.org/install/bin/WpdPack_3_1.zip)
WINPCAPDIR=C:\dev\WpdPack
# Root directory for OpenSSL
# (http://www.openssl.org/source/openssl-0.9.8a.tar.gz)
# Build and installed following instructions in INSTALL.W32
# Note: If EAP-FAST is included in the build, OpenSSL needs to be patched to
# support it (openssl-tls-extensions.patch)
# Alternatively, see README-Windows.txt for information about binary
# installation package for OpenSSL.
OPENSSLDIR=C:\dev\openssl
CC = cl
OBJDIR = objs
CFLAGS = /DCONFIG_NATIVE_WINDOWS
CFLAGS = $(CFLAGS) /DCONFIG_NDIS_EVENTS_INTEGRATED
CFLAGS = $(CFLAGS) /DCONFIG_ANSI_C_EXTRA
CFLAGS = $(CFLAGS) /DCONFIG_WINPCAP
CFLAGS = $(CFLAGS) /DIEEE8021X_EAPOL
CFLAGS = $(CFLAGS) /DPKCS12_FUNCS
CFLAGS = $(CFLAGS) /DEAP_MD5
CFLAGS = $(CFLAGS) /DEAP_TLS
CFLAGS = $(CFLAGS) /DEAP_MSCHAPv2
CFLAGS = $(CFLAGS) /DEAP_PEAP
CFLAGS = $(CFLAGS) /DEAP_TTLS
CFLAGS = $(CFLAGS) /DEAP_GTC
CFLAGS = $(CFLAGS) /DEAP_OTP
CFLAGS = $(CFLAGS) /DEAP_SIM
CFLAGS = $(CFLAGS) /DEAP_LEAP
CFLAGS = $(CFLAGS) /DEAP_PSK
CFLAGS = $(CFLAGS) /DEAP_AKA
#CFLAGS = $(CFLAGS) /DEAP_FAST
CFLAGS = $(CFLAGS) /DEAP_PAX
CFLAGS = $(CFLAGS) /DEAP_TNC
CFLAGS = $(CFLAGS) /DPCSC_FUNCS
CFLAGS = $(CFLAGS) /DCONFIG_CTRL_IFACE
CFLAGS = $(CFLAGS) /DCONFIG_CTRL_IFACE_NAMED_PIPE
CFLAGS = $(CFLAGS) /DCONFIG_DRIVER_NDIS
CFLAGS = $(CFLAGS) /I..\src /I..\src\utils
CFLAGS = $(CFLAGS) /I.
CFLAGS = $(CFLAGS) /DWIN32
CFLAGS = $(CFLAGS) /Fo$(OBJDIR)\\ /c
CFLAGS = $(CFLAGS) /W3
#CFLAGS = $(CFLAGS) /WX
# VS 2005 complains about lot of deprecated string functions; let's ignore them
# at least for now since snprintf and strncpy can be used in a safe way
CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE
OBJS = \
$(OBJDIR)\os_win32.obj \
$(OBJDIR)\eloop_win.obj \
$(OBJDIR)\sha1.obj \
$(OBJDIR)\sha1-tlsprf.obj \
$(OBJDIR)\sha1-pbkdf2.obj \
$(OBJDIR)\md5.obj \
$(OBJDIR)\aes-cbc.obj \
$(OBJDIR)\aes-ctr.obj \
$(OBJDIR)\aes-eax.obj \
$(OBJDIR)\aes-encblock.obj \
$(OBJDIR)\aes-omac1.obj \
$(OBJDIR)\aes-unwrap.obj \
$(OBJDIR)\aes-wrap.obj \
$(OBJDIR)\common.obj \
$(OBJDIR)\wpa_debug.obj \
$(OBJDIR)\wpabuf.obj \
$(OBJDIR)\wpa_supplicant.obj \
$(OBJDIR)\wpa.obj \
$(OBJDIR)\wpa_common.obj \
$(OBJDIR)\wpa_ie.obj \
$(OBJDIR)\preauth.obj \
$(OBJDIR)\pmksa_cache.obj \
$(OBJDIR)\eapol_supp_sm.obj \
$(OBJDIR)\eap.obj \
$(OBJDIR)\eap_common.obj \
$(OBJDIR)\chap.obj \
$(OBJDIR)\eap_methods.obj \
$(OBJDIR)\eap_md5.obj \
$(OBJDIR)\eap_tls.obj \
$(OBJDIR)\eap_tls_common.obj \
$(OBJDIR)\eap_mschapv2.obj \
$(OBJDIR)\mschapv2.obj \
$(OBJDIR)\eap_peap.obj \
$(OBJDIR)\eap_peap_common.obj \
$(OBJDIR)\eap_ttls.obj \
$(OBJDIR)\eap_gtc.obj \
$(OBJDIR)\eap_otp.obj \
$(OBJDIR)\eap_leap.obj \
$(OBJDIR)\eap_sim.obj \
$(OBJDIR)\eap_sim_common.obj \
$(OBJDIR)\eap_aka.obj \
$(OBJDIR)\eap_pax.obj \
$(OBJDIR)\eap_pax_common.obj \
$(OBJDIR)\eap_psk.obj \
$(OBJDIR)\eap_psk_common.obj \
$(OBJDIR)\eap_tnc.obj \
$(OBJDIR)\tncc.obj \
$(OBJDIR)\base64.obj \
$(OBJDIR)\ctrl_iface.obj \
$(OBJDIR)\ctrl_iface_named_pipe.obj \
$(OBJDIR)\driver_ndis.obj \
$(OBJDIR)\driver_ndis_.obj \
$(OBJDIR)\scan_helpers.obj \
$(OBJDIR)\events.obj \
$(OBJDIR)\blacklist.obj \
$(OBJDIR)\scan.obj \
$(OBJDIR)\wpas_glue.obj \
$(OBJDIR)\eap_register.obj \
$(OBJDIR)\config.obj \
$(OBJDIR)\l2_packet_winpcap.obj \
$(OBJDIR)\tls_openssl.obj \
$(OBJDIR)\ms_funcs.obj \
$(OBJDIR)\crypto_openssl.obj \
$(OBJDIR)\fips_prf_openssl.obj \
$(OBJDIR)\pcsc_funcs.obj \
$(OBJDIR)\notify.obj \
$(OBJDIR)\ndis_events.obj
# OBJS = $(OBJS) $(OBJDIR)\eap_fast.obj
OBJS_t = $(OBJS) \
$(OBJDIR)\eapol_test.obj \
$(OBJDIR)\radius.obj \
$(OBJDIR)\radius_client.obj \
$(OBJDIR)\config_file.obj $(OBJDIR)\base64.obj
OBJS_t2 = $(OBJS) \
$(OBJDIR)\preauth_test.obj \
$(OBJDIR)\config_file.obj $(OBJDIR)\base64.obj
OBJS2 = $(OBJDIR)\drivers.obj \
$(OBJDIR)\config_file.obj \
$(OBJS2) $(OBJDIR)\main.obj
OBJS3 = $(OBJDIR)\drivers.obj \
$(OBJDIR)\config_winreg.obj \
$(OBJS3) $(OBJDIR)\main_winsvc.obj
OBJS_c = \
$(OBJDIR)\os_win32.obj \
$(OBJDIR)\wpa_cli.obj \
$(OBJDIR)\wpa_ctrl.obj \
$(OBJDIR)\common.obj
OBJS_p = \
$(OBJDIR)\os_win32.obj \
$(OBJDIR)\common.obj \
$(OBJDIR)\wpa_debug.obj \
$(OBJDIR)\wpabuf.obj \
$(OBJDIR)\sha1.obj \
$(OBJDIR)\md5.obj \
$(OBJDIR)\crypto_openssl.obj \
$(OBJDIR)\sha1-pbkdf2.obj \
$(OBJDIR)\wpa_passphrase.obj
LIBS = wbemuuid.lib libcmt.lib kernel32.lib uuid.lib ole32.lib oleaut32.lib \
ws2_32.lib Advapi32.lib Crypt32.lib Winscard.lib \
Packet.lib wpcap.lib \
libeay32.lib ssleay32.lib
# If using Win32 OpenSSL binary installation from Shining Light Productions,
# replace the last line with this for dynamic libraries
# libeay32MT.lib ssleay32MT.lib
# and this for static libraries
# libeay32MT.lib ssleay32MT.lib Gdi32.lib User32.lib
CFLAGS = $(CFLAGS) /I"$(WINPCAPDIR)/Include" /I"$(OPENSSLDIR)\include"
LFLAGS = /libpath:"$(WINPCAPDIR)\Lib" /libpath:"$(OPENSSLDIR)\lib"
wpa_supplicant.exe: $(OBJDIR) $(OBJS) $(OBJS2)
link.exe /out:wpa_supplicant.exe $(LFLAGS) $(OBJS) $(OBJS2) $(LIBS)
wpasvc.exe: $(OBJDIR) $(OBJS) $(OBJS3)
link.exe /out:wpasvc.exe $(LFLAGS) $(OBJS) $(OBJS3) $(LIBS)
wpa_cli.exe: $(OBJDIR) $(OBJS_c)
link.exe /out:wpa_cli.exe $(LFLAGS) $(OBJS_c) $(LIBS)
wpa_passphrase.exe: $(OBJDIR) $(OBJS_p)
link.exe /out:wpa_passphrase.exe $(LFLAGS) $(OBJS_p) $(LIBS)
eapol_test.exe: $(OBJDIR) $(OBJS_t)
link.exe /out:eapol_test.exe $(LFLAGS) $(OBJS_t) $(LIBS)
preauth_test.exe: $(OBJDIR) $(OBJS_t2)
link.exe /out:preauth_test.exe $(LFLAGS) $(OBJS_t2) $(LIBS)
win_if_list.exe: $(OBJDIR) $(OBJDIR)\win_if_list.obj
link.exe /out:win_if_list.exe $(LFLAGS) $(OBJDIR)\win_if_list.obj $(LIBS)
{..\src\utils}.c{$(OBJDIR)}.obj::
$(CC) $(CFLAGS) $<
{..\src\common}.c{$(OBJDIR)}.obj::
$(CC) $(CFLAGS) $<
{..\src\rsn_supp}.c{$(OBJDIR)}.obj::
$(CC) $(CFLAGS) $<
{..\src\eapol_supp}.c{$(OBJDIR)}.obj::
$(CC) $(CFLAGS) $<
{..\src\crypto}.c{$(OBJDIR)}.obj::
$(CC) $(CFLAGS) $<
{..\src\eap_peer}.c{$(OBJDIR)}.obj::
$(CC) $(CFLAGS) $<
{..\src\eap_common}.c{$(OBJDIR)}.obj::
$(CC) $(CFLAGS) $<
{..\src\drivers}.c{$(OBJDIR)}.obj::
$(CC) $(CFLAGS) $<
{..\src\l2_packet}.c{$(OBJDIR)}.obj::
$(CC) $(CFLAGS) $<
{.\}.c{$(OBJDIR)}.obj::
$(CC) $(CFLAGS) $<
{.\}.cpp{$(OBJDIR)}.obj::
$(CC) $(CFLAGS) $<
$(OBJDIR):
if not exist "$(OBJDIR)" mkdir "$(OBJDIR)"
clean:
erase $(OBJDIR)\*.obj wpa_supplicant.exe
|