]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/build/net/makefile.vc
define _HPUX_SOURCE under HP-UX, otherwise many things are not defined in standard...
[wxWidgets.git] / contrib / build / net / makefile.vc
... / ...
CommitLineData
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
15WX_RELEASE_NODOT = 27
16WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
17OBJS = \
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19LIBDIRNAME = ..\..\src\net\..\..\..\lib\vc_$(LIBTYPE_SUFFIX)$(CFG)
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22NETUTILSDLL_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)
32NETUTILSDLL_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
38NETUTILSLIB_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)
48NETUTILSLIB_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"
57PORTNAME = base
58!endif
59!if "$(USE_GUI)" == "1"
60PORTNAME = msw
61!endif
62!if "$(OFFICIAL_BUILD)" == "0"
63VENDORTAG = _$(VENDOR)
64!endif
65!if "$(OFFICIAL_BUILD)" == "1"
66VENDORTAG =
67!endif
68!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
69WXDEBUGFLAG = d
70!endif
71!if "$(DEBUG_FLAG)" == "1"
72WXDEBUGFLAG = d
73!endif
74!if "$(UNICODE)" == "1"
75WXUNICODEFLAG = u
76!endif
77!if "$(WXUNIV)" == "1"
78WXUNIVNAME = univ
79!endif
80!if "$(SHARED)" == "1"
81WXDLLFLAG = dll
82!endif
83!if "$(SHARED)" == "0"
84LIBTYPE_SUFFIX = lib
85!endif
86!if "$(SHARED)" == "1"
87LIBTYPE_SUFFIX = dll
88!endif
89!if "$(MONOLITHIC)" == "0"
90EXTRALIBS_FOR_BASE =
91!endif
92!if "$(MONOLITHIC)" == "1"
93EXTRALIBS_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
285all: $(OBJS)
286$(OBJS):
287 -if not exist $(OBJS) mkdir $(OBJS)
288
289### Targets: ###
290
291all: $(__netutilsdll___depname) $(__netutilslib___depname)
292
293clean:
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