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