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