]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/net/makefile.vc
18af8b45b1e09f4d75cc1fdfe4a2c2aa9839c09e
[wxWidgets.git] / contrib / build / net / makefile.vc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 !include <../../../build/msw/config.vc>
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 27
16 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
17 OBJS = \
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = ..\..\src\net\..\..\..\lib\vc_$(LIBTYPE_SUFFIX)$(CFG)
20 SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 NETUTILSDLL_CXXFLAGS = /M$(__RUNTIME_LIBS_9)$(__DEBUGRUNTIME) /DWIN32 \
23 $(__DEBUGINFO_1) \
24 /Fd$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_vc$(VENDORTAG).pdb \
25 $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
26 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
28 $(__MSLU_DEFINE_p) /I..\..\src\net\..\..\..\include /I$(SETUPHDIR) /W4 \
29 /I..\..\src\net\..\..\include /DWXUSINGDLL /DWXMAKINGDLL_NETUTILS \
30 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) /Yu"wx/wxprec.h" \
31 /Fp"$(OBJS)\wxprec_netutilsdll.pch" $(CPPFLAGS) $(CXXFLAGS)
32 NETUTILSDLL_OBJECTS = \
33 $(OBJS)\netutilsdll_dummy.obj \
34 $(OBJS)\netutilsdll_version.res \
35 $(OBJS)\netutilsdll_email.obj \
36 $(OBJS)\netutilsdll_smapi.obj \
37 $(OBJS)\netutilsdll_web.obj
38 NETUTILSLIB_CXXFLAGS = /M$(__RUNTIME_LIBS_22)$(__DEBUGRUNTIME) /DWIN32 \
39 $(__DEBUGINFO_1) \
40 /Fd$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.pdb \
41 $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
42 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
43 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
44 $(__MSLU_DEFINE_p) /I..\..\src\net\..\..\..\include /I$(SETUPHDIR) /W4 \
45 /I..\..\src\net\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
46 /Yu"wx/wxprec.h" /Fp"$(OBJS)\wxprec_netutilslib.pch" $(CPPFLAGS) \
47 $(CXXFLAGS)
48 NETUTILSLIB_OBJECTS = \
49 $(OBJS)\netutilslib_dummy.obj \
50 $(OBJS)\netutilslib_email.obj \
51 $(OBJS)\netutilslib_smapi.obj \
52 $(OBJS)\netutilslib_web.obj
53
54 ### Conditionally set variables: ###
55
56 !if "$(USE_GUI)" == "0"
57 PORTNAME = base
58 !endif
59 !if "$(USE_GUI)" == "1"
60 PORTNAME = msw
61 !endif
62 !if "$(OFFICIAL_BUILD)" == "0"
63 VENDORTAG = _$(VENDOR)
64 !endif
65 !if "$(OFFICIAL_BUILD)" == "1"
66 VENDORTAG =
67 !endif
68 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
69 WXDEBUGFLAG = d
70 !endif
71 !if "$(DEBUG_FLAG)" == "1"
72 WXDEBUGFLAG = d
73 !endif
74 !if "$(UNICODE)" == "1"
75 WXUNICODEFLAG = u
76 !endif
77 !if "$(WXUNIV)" == "1"
78 WXUNIVNAME = univ
79 !endif
80 !if "$(SHARED)" == "1"
81 WXDLLFLAG = dll
82 !endif
83 !if "$(SHARED)" == "0"
84 LIBTYPE_SUFFIX = lib
85 !endif
86 !if "$(SHARED)" == "1"
87 LIBTYPE_SUFFIX = dll
88 !endif
89 !if "$(MONOLITHIC)" == "0"
90 EXTRALIBS_FOR_BASE =
91 !endif
92 !if "$(MONOLITHIC)" == "1"
93 EXTRALIBS_FOR_BASE =
94 !endif
95 !if "$(SHARED)" == "1"
96 __netutilsdll___depname = \
97 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_vc$(VENDORTAG).dll
98 !endif
99 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
100 __DEBUGINFO_2 = /DEBUG
101 !endif
102 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
103 __DEBUGINFO_2 =
104 !endif
105 !if "$(DEBUG_INFO)" == "0"
106 __DEBUGINFO_2 =
107 !endif
108 !if "$(DEBUG_INFO)" == "1"
109 __DEBUGINFO_2 = /DEBUG
110 !endif
111 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
112 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
113 !endif
114 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
115 ____DEBUGRUNTIME_3_p_1 =
116 !endif
117 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
118 ____DEBUGRUNTIME_3_p_1 =
119 !endif
120 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
121 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
122 !endif
123 !if "$(RUNTIME_LIBS)" == "dynamic"
124 __RUNTIME_LIBS_9 = D
125 !endif
126 !if "$(RUNTIME_LIBS)" == "static"
127 __RUNTIME_LIBS_9 = $(__THREADSFLAG)
128 !endif
129 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
130 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
131 !endif
132 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
133 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
134 !endif
135 !if "$(WXUNIV)" == "1"
136 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
137 !endif
138 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
139 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
140 !endif
141 !if "$(DEBUG_FLAG)" == "1"
142 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
143 !endif
144 !if "$(USE_EXCEPTIONS)" == "0"
145 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
146 !endif
147 !if "$(USE_RTTI)" == "0"
148 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
149 !endif
150 !if "$(USE_THREADS)" == "0"
151 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
152 !endif
153 !if "$(UNICODE)" == "1"
154 __UNICODE_DEFINE_p_1 = /d _UNICODE
155 !endif
156 !if "$(MSLU)" == "1"
157 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
158 !endif
159 !if "$(MONOLITHIC)" == "1"
160 __WXLIB_MONO_p = \
161 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
162 !endif
163 !if "$(USE_GUI)" == "1"
164 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
165 !endif
166 !if "$(USE_GUI)" == "1"
167 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
168 !endif
169 !if "$(USE_GUI)" == "1"
170 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
171 !endif
172 !if "$(MSLU)" == "1"
173 __UNICOWS_LIB_p = unicows.lib
174 !endif
175 !if "$(MONOLITHIC)" == "0"
176 __WXLIB_CORE_p = \
177 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
178 !endif
179 !if "$(MONOLITHIC)" == "0"
180 __WXLIB_BASE_p = \
181 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
182 !endif
183 !if "$(SHARED)" == "0"
184 __netutilslib___depname = \
185 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib
186 !endif
187 !if "$(RUNTIME_LIBS)" == "dynamic"
188 __RUNTIME_LIBS_22 = D
189 !endif
190 !if "$(RUNTIME_LIBS)" == "static"
191 __RUNTIME_LIBS_22 = $(__THREADSFLAG)
192 !endif
193 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
194 __DEBUGINFO_1 = /Zi
195 !endif
196 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
197 __DEBUGINFO_1 =
198 !endif
199 !if "$(DEBUG_INFO)" == "0"
200 __DEBUGINFO_1 =
201 !endif
202 !if "$(DEBUG_INFO)" == "1"
203 __DEBUGINFO_1 = /Zi
204 !endif
205 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
206 ____DEBUGRUNTIME = /D_DEBUG
207 !endif
208 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
209 ____DEBUGRUNTIME =
210 !endif
211 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
212 ____DEBUGRUNTIME =
213 !endif
214 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
215 ____DEBUGRUNTIME = /D_DEBUG
216 !endif
217 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
218 __DEBUGRUNTIME = d
219 !endif
220 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
221 __DEBUGRUNTIME =
222 !endif
223 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
224 __DEBUGRUNTIME =
225 !endif
226 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
227 __DEBUGRUNTIME = d
228 !endif
229 !if "$(BUILD)" == "debug"
230 __OPTIMIZEFLAG = /Od
231 !endif
232 !if "$(BUILD)" == "release"
233 __OPTIMIZEFLAG = /O2
234 !endif
235 !if "$(USE_THREADS)" == "0"
236 __THREADSFLAG = L
237 !endif
238 !if "$(USE_THREADS)" == "1"
239 __THREADSFLAG = T
240 !endif
241 !if "$(USE_RTTI)" == "0"
242 __RTTIFLAG =
243 !endif
244 !if "$(USE_RTTI)" == "1"
245 __RTTIFLAG = /GR
246 !endif
247 !if "$(USE_EXCEPTIONS)" == "0"
248 __EXCEPTIONSFLAG =
249 !endif
250 !if "$(USE_EXCEPTIONS)" == "1"
251 __EXCEPTIONSFLAG = /EHsc
252 !endif
253 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
254 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
255 !endif
256 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
257 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
258 !endif
259 !if "$(WXUNIV)" == "1"
260 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
261 !endif
262 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
263 __DEBUG_DEFINE_p = /D__WXDEBUG__
264 !endif
265 !if "$(DEBUG_FLAG)" == "1"
266 __DEBUG_DEFINE_p = /D__WXDEBUG__
267 !endif
268 !if "$(USE_EXCEPTIONS)" == "0"
269 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
270 !endif
271 !if "$(USE_RTTI)" == "0"
272 __RTTI_DEFINE_p = /DwxNO_RTTI
273 !endif
274 !if "$(USE_THREADS)" == "0"
275 __THREAD_DEFINE_p = /DwxNO_THREADS
276 !endif
277 !if "$(UNICODE)" == "1"
278 __UNICODE_DEFINE_p = /D_UNICODE
279 !endif
280 !if "$(MSLU)" == "1"
281 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
282 !endif
283
284
285 all: $(OBJS)
286 $(OBJS):
287 -if not exist $(OBJS) mkdir $(OBJS)
288
289 ### Targets: ###
290
291 all: $(__netutilsdll___depname) $(__netutilslib___depname)
292
293 clean:
294 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
295 -if exist $(OBJS)\*.res del $(OBJS)\*.res
296 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
297 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_vc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_vc$(VENDORTAG).dll
298 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_vc$(VENDORTAG).ilk del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_vc$(VENDORTAG).ilk
299 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_vc$(VENDORTAG).pdb del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_vc$(VENDORTAG).pdb
300 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib
301 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib
302
303 !if "$(SHARED)" == "1"
304 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_vc$(VENDORTAG).dll: $(OBJS)\netutilsdll_dummy.obj $(NETUTILSDLL_OBJECTS) $(OBJS)\netutilsdll_version.res
305 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_2) /LIBPATH:$(LIBDIRNAME) @<<
306 $(NETUTILSDLL_OBJECTS) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib odbc32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) /IMPLIB:$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib
307 <<
308 !endif
309
310 !if "$(SHARED)" == "0"
311 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib: $(OBJS)\netutilslib_dummy.obj $(NETUTILSLIB_OBJECTS)
312 if exist $@ del $@
313 link /LIB /NOLOGO /OUT:$@ @<<
314 $(NETUTILSLIB_OBJECTS)
315 <<
316 !endif
317
318 $(OBJS)\netutilsdll_dummy.obj: ../../src/net\..\..\..\src\msw\dummy.cpp
319 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSDLL_CXXFLAGS) /Ycwx/wxprec.h $**
320
321 $(OBJS)\netutilsdll_version.res: ../../src/net\..\..\..\src\msw\version.rc
322 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_3_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) /i ..\..\src\net\..\..\..\include /i $(SETUPHDIR) /d WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_vc$(VENDORTAG) $**
323
324 $(OBJS)\netutilsdll_email.obj: ../../src/net\email.cpp
325 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSDLL_CXXFLAGS) $**
326
327 $(OBJS)\netutilsdll_smapi.obj: ../../src/net\smapi.cpp
328 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSDLL_CXXFLAGS) $**
329
330 $(OBJS)\netutilsdll_web.obj: ../../src/net\web.cpp
331 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSDLL_CXXFLAGS) $**
332
333 $(OBJS)\netutilslib_dummy.obj: ../../src/net\..\..\..\src\msw\dummy.cpp
334 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSLIB_CXXFLAGS) /Ycwx/wxprec.h $**
335
336 $(OBJS)\netutilslib_email.obj: ../../src/net\email.cpp
337 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSLIB_CXXFLAGS) $**
338
339 $(OBJS)\netutilslib_smapi.obj: ../../src/net\smapi.cpp
340 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSLIB_CXXFLAGS) $**
341
342 $(OBJS)\netutilslib_web.obj: ../../src/net\web.cpp
343 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSLIB_CXXFLAGS) $**
344