]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/net/makefile.vc
added .chm support for Unix (Markus Sinner)
[wxWidgets.git] / contrib / build / net / makefile.vc
CommitLineData
15e8daec
VS
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7!include <../../../build/msw/config.vc>
15e8daec
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15e8daec 15NETUTILSDLL_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) \
a4ad36cd 16 /DWIN32 $(__DEBUGINFO_2) \
ec08d395
JS
17 /Fd$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils_vc$(VENDORTAG).pdb \
18 $(____DEBUGRUNTIME_2_p) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
19 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
20 /I..\..\src\net\..\..\..\include /I$(SETUPHDIR) /W4 \
21 /I..\..\src\net\..\..\include /DWXUSINGDLL /DWXMAKINGDLL_NETUTILS \
a4ad36cd
VS
22 $(CXXFLAGS) $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) /Yu"wx/wxprec.h" \
23 /Fp"$(OBJS)\wxprec_netutilsdll.pch"
15e8daec
VS
24NETUTILSDLL_OBJECTS = \
25 $(OBJS)\netutilsdll_dummy.obj \
26 $(OBJS)\netutilsdll_email.obj \
27 $(OBJS)\netutilsdll_smapi.obj \
28 $(OBJS)\netutilsdll_web.obj
a4ad36cd
VS
29NETUTILSLIB_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_15) \
30 /DWIN32 $(__DEBUGINFO_2) \
15e8daec 31 /Fd$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.pdb \
a4ad36cd 32 $(____DEBUGRUNTIME_14_p) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
ec08d395
JS
33 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
34 /I..\..\src\net\..\..\..\include /I$(SETUPHDIR) /W4 \
a4ad36cd
VS
35 /I..\..\src\net\..\..\include $(CXXFLAGS) $(__EXCEPTIONSFLAG) \
36 $(__EXCEPTIONSFLAG_0) /Yu"wx/wxprec.h" /Fp"$(OBJS)\wxprec_netutilslib.pch"
15e8daec
VS
37NETUTILSLIB_OBJECTS = \
38 $(OBJS)\netutilslib_dummy.obj \
39 $(OBJS)\netutilslib_email.obj \
40 $(OBJS)\netutilslib_smapi.obj \
41 $(OBJS)\netutilslib_web.obj
42OBJS = \
43 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
44SETUPHDIR = \
45 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
15e8daec
VS
46
47### Conditionally set variables: ###
48
75a0a7b7
VS
49!if "$(SHARED)" == "0"
50LIBDIRNAME = ..\..\src\net\..\..\..\lib\vc_lib$(CFG)
51!endif
52!if "$(SHARED)" == "1"
53LIBDIRNAME = ..\..\src\net\..\..\..\lib\vc_dll$(CFG)
54!endif
15e8daec
VS
55!if "$(USE_GUI)" == "0"
56PORTNAME = base
57!endif
58!if "$(USE_GUI)" == "1"
59PORTNAME = msw
60!endif
61!if "$(OFFICIAL_BUILD)" == "0"
62VENDORTAG = _$(VENDOR)
63!endif
64!if "$(OFFICIAL_BUILD)" == "1"
65VENDORTAG =
66!endif
67!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
68WXDEBUGFLAG = d
69!endif
70!if "$(DEBUG_FLAG)" == "1"
71WXDEBUGFLAG = d
72!endif
73!if "$(SHARED)" == "1"
74WXDLLFLAG = dll
75!endif
76!if "$(UNICODE)" == "1"
77WXUNICODEFLAG = u
78!endif
79!if "$(WXUNIV)" == "1"
80WXUNIVNAME = univ
81!endif
82!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
a4ad36cd 83__DEBUGINFO = d
15e8daec
VS
84!endif
85!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
86__DEBUGINFO =
87!endif
88!if "$(DEBUG_INFO)" == "0"
89__DEBUGINFO =
90!endif
91!if "$(DEBUG_INFO)" == "1"
a4ad36cd 92__DEBUGINFO = d
15e8daec
VS
93!endif
94!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
95__DEBUGINFO_1 = /DEBUG
96!endif
97!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
98__DEBUGINFO_1 =
99!endif
100!if "$(DEBUG_INFO)" == "0"
101__DEBUGINFO_1 =
102!endif
103!if "$(DEBUG_INFO)" == "1"
104__DEBUGINFO_1 = /DEBUG
105!endif
106!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
a4ad36cd 107__DEBUGINFO_2 = /Zi
15e8daec
VS
108!endif
109!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
110__DEBUGINFO_2 =
111!endif
112!if "$(DEBUG_INFO)" == "0"
113__DEBUGINFO_2 =
114!endif
115!if "$(DEBUG_INFO)" == "1"
a4ad36cd 116__DEBUGINFO_2 = /Zi
15e8daec
VS
117!endif
118!if "$(DEBUG_RUNTIME_LIBS)" == "0"
a4ad36cd 119__DEBUGRUNTIME_15 =
15e8daec
VS
120!endif
121!if "$(DEBUG_RUNTIME_LIBS)" == "1"
a4ad36cd 122__DEBUGRUNTIME_15 = d
15e8daec
VS
123!endif
124!if "$(DEBUG_RUNTIME_LIBS)" == "default"
a4ad36cd 125__DEBUGRUNTIME_15 = $(__DEBUGINFO)
15e8daec
VS
126!endif
127!if "$(DEBUG_RUNTIME_LIBS)" == "0"
128__DEBUGRUNTIME_3 =
129!endif
130!if "$(DEBUG_RUNTIME_LIBS)" == "1"
131__DEBUGRUNTIME_3 = d
132!endif
133!if "$(DEBUG_RUNTIME_LIBS)" == "default"
a4ad36cd 134__DEBUGRUNTIME_3 = $(__DEBUGINFO)
15e8daec
VS
135!endif
136!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
137__DEBUG_DEFINE_p = /D__WXDEBUG__
138!endif
139!if "$(DEBUG_FLAG)" == "1"
140__DEBUG_DEFINE_p = /D__WXDEBUG__
141!endif
a4ad36cd
VS
142!if "$(USE_EXCEPTIONS)" == "0"
143__EXCEPTIONSFLAG =
144!endif
145!if "$(USE_EXCEPTIONS)" == "1"
146__EXCEPTIONSFLAG = /GR
147!endif
148!if "$(USE_EXCEPTIONS)" == "0"
149__EXCEPTIONSFLAG_0 =
150!endif
151!if "$(USE_EXCEPTIONS)" == "1"
152__EXCEPTIONSFLAG_0 = /GX
153!endif
15e8daec
VS
154!if "$(USE_GUI)" == "1"
155__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
156!endif
157!if "$(USE_GUI)" == "1"
158__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
159!endif
160!if "$(USE_GUI)" == "1"
161__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
162!endif
ec08d395
JS
163!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
164__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
165!endif
166!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
167__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
168!endif
15e8daec
VS
169!if "$(BUILD)" == "debug"
170__OPTIMIZEFLAG = /Od
171!endif
172!if "$(BUILD)" == "release"
173__OPTIMIZEFLAG = /O2
174!endif
175!if "$(RUNTIME_LIBS)" == "dynamic"
176__RUNTIME_LIBS = D
177!endif
178!if "$(RUNTIME_LIBS)" == "static"
179__RUNTIME_LIBS = T
180!endif
181!if "$(UNICODE)" == "1"
ec08d395 182__UNICODE_DEFINE_p = /D_UNICODE
15e8daec 183!endif
2265a2d5
VS
184!if "$(MSLU)" == "1"
185__UNICOWS_LIB_p = unicows.lib
186!endif
15e8daec
VS
187!if "$(MONOLITHIC)" == "0"
188__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
189!endif
190!if "$(MONOLITHIC)" == "0"
191__WXLIB_CORE_p = \
192 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
193!endif
194!if "$(MONOLITHIC)" == "1"
195__WXLIB_MONO_p = \
196 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
197!endif
198!if "$(WXUNIV)" == "1"
199__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
200!endif
201!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
202____DEBUGINFO = /D_DEBUG
203!endif
204!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
205____DEBUGINFO =
206!endif
207!if "$(DEBUG_INFO)" == "0"
208____DEBUGINFO =
209!endif
210!if "$(DEBUG_INFO)" == "1"
211____DEBUGINFO = /D_DEBUG
212!endif
213!if "$(DEBUG_RUNTIME_LIBS)" == "0"
a4ad36cd 214____DEBUGRUNTIME_14_p =
15e8daec
VS
215!endif
216!if "$(DEBUG_RUNTIME_LIBS)" == "1"
a4ad36cd 217____DEBUGRUNTIME_14_p = /D_DEBUG
15e8daec
VS
218!endif
219!if "$(DEBUG_RUNTIME_LIBS)" == "default"
a4ad36cd 220____DEBUGRUNTIME_14_p = $(____DEBUGINFO)
15e8daec
VS
221!endif
222!if "$(DEBUG_RUNTIME_LIBS)" == "0"
223____DEBUGRUNTIME_2_p =
224!endif
225!if "$(DEBUG_RUNTIME_LIBS)" == "1"
226____DEBUGRUNTIME_2_p = /D_DEBUG
227!endif
228!if "$(DEBUG_RUNTIME_LIBS)" == "default"
229____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
230!endif
231!if "$(SHARED)" == "1"
232__netutilsdll___depname = \
ec08d395 233 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils_vc$(VENDORTAG).dll
15e8daec
VS
234!endif
235!if "$(SHARED)" == "0"
236__netutilslib___depname = \
237 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.lib
238!endif
239
240
241all: $(OBJS)
242$(OBJS):
243 -if not exist $(OBJS) mkdir $(OBJS)
244
245### Targets: ###
246
247all: $(__netutilsdll___depname) $(__netutilslib___depname)
248
249$(OBJS)\netutilsdll_dummy.obj: ../../src/net\..\..\..\src\msw\dummy.cpp
250 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSDLL_CXXFLAGS) /Ycwx/wxprec.h $**
251
252$(OBJS)\netutilsdll_email.obj: ../../src/net\email.cpp
253 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSDLL_CXXFLAGS) $**
254
255$(OBJS)\netutilsdll_smapi.obj: ../../src/net\smapi.cpp
256 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSDLL_CXXFLAGS) $**
257
258$(OBJS)\netutilsdll_web.obj: ../../src/net\web.cpp
259 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSDLL_CXXFLAGS) $**
260
261$(OBJS)\netutilslib_dummy.obj: ../../src/net\..\..\..\src\msw\dummy.cpp
262 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSLIB_CXXFLAGS) /Ycwx/wxprec.h $**
263
264$(OBJS)\netutilslib_email.obj: ../../src/net\email.cpp
265 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSLIB_CXXFLAGS) $**
266
267$(OBJS)\netutilslib_smapi.obj: ../../src/net\smapi.cpp
268 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSLIB_CXXFLAGS) $**
269
270$(OBJS)\netutilslib_web.obj: ../../src/net\web.cpp
271 $(CXX) /c /nologo /TP /Fo$@ $(NETUTILSLIB_CXXFLAGS) $**
272
273clean:
274 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
275 -if exist $(OBJS)\*.res del $(OBJS)\*.res
ec08d395
JS
276 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils_vc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils_vc$(VENDORTAG).dll
277 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils_vc$(VENDORTAG).ilk del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils_vc$(VENDORTAG).ilk
278 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils_vc$(VENDORTAG).pdb del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils_vc$(VENDORTAG).pdb
15e8daec
VS
279 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.lib
280 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.lib
281
282!if "$(SHARED)" == "1"
ec08d395 283$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils_vc$(VENDORTAG).dll: $(OBJS)\netutilsdll_dummy.obj $(NETUTILSDLL_OBJECTS)
15e8daec 284 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
ec08d395 285 $(NETUTILSDLL_OBJECTS) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) /IMPLIB:$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.lib
15e8daec
VS
286<<
287!endif
288
289!if "$(SHARED)" == "0"
75a0a7b7 290$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.lib: $(OBJS)\netutilslib_dummy.obj $(NETUTILSLIB_OBJECTS)
15e8daec
VS
291 if exist $@ del $@
292 lib /NOLOGO /OUT:$@ @<<
293 $(NETUTILSLIB_OBJECTS)
294<<
295!endif