]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.vc
Fix memory leak in wxXmlNode::operator=().
[wxWidgets.git] / samples / console / makefile.vc
CommitLineData
f82b7036
KO
1# =========================================================================\r
2# This makefile was generated by\r
00eef16d 3# Bakefile 0.2.9 (http://www.bakefile.org)\r
f82b7036
KO
4# Do not modify, all changes will be overwritten!\r
5# =========================================================================\r
6\r
7!include <../../build/msw/config.vc>\r
8\r
9# -------------------------------------------------------------------------\r
10# Do not modify the rest of this file!\r
11# -------------------------------------------------------------------------\r
12\r
13### Variables: ###\r
14\r
15WX_RELEASE_NODOT = 29\r
16COMPILER_PREFIX = vc\r
17OBJS = \\r
14b682f7 18 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(ARCH_SUFFIX)
f82b7036 19LIBDIRNAME = \\r
14b682f7 20 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)$(ARCH_SUFFIX)_$(LIBTYPE_SUFFIX)$(CFG)
f82b7036
KO
21SETUPHDIR = \\r
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
23CONSOLE_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \\r
24 $(__DEBUGINFO_0) /Fd$(OBJS)\console.pdb $(____DEBUGRUNTIME_3_p) \\r
49a63afb
VZ
25 $(__OPTIMIZEFLAG_6) /D_CRT_SECURE_NO_DEPRECATE=1 \\r
26 /D_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1 \\r
22a3b6e4
VZ
27 $(__NO_VC_CRTDBG_p) /D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
28 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
29 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
30 $(__MSLU_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include \
31 $(____CAIRO_INCLUDEDIR_FILENAMES_p) /W4 /I. $(__DLLFLAG_p) /D_CONSOLE \
32 /DwxUSE_GUI=0 $(__RTTIFLAG_11) $(__EXCEPTIONSFLAG_12) $(CPPFLAGS) \
33 $(CXXFLAGS)
f82b7036
KO
34CONSOLE_OBJECTS = \\r
35 $(OBJS)\console_console.obj\r
36\r
37### Conditionally set variables: ###\r
38\r
22a3b6e4
VZ
39!if "$(TOOLKIT)" == "GTK"
40WIN32_TOOLKIT_LOWERCASE = gtk
41!endif
42!if "$(TOOLKIT)" == "MSW"
43WIN32_TOOLKIT_LOWERCASE = msw
44!endif
14b682f7
VZ
45!if "$(TARGET_CPU)" == "AMD64"
46ARCH_SUFFIX = _x64
47!endif
48!if "$(TARGET_CPU)" == "IA64"
49ARCH_SUFFIX = _ia64
50!endif
51!if "$(TARGET_CPU)" == "X64"
52ARCH_SUFFIX = _x64
53!endif
54!if "$(TARGET_CPU)" == "amd64"
55ARCH_SUFFIX = _x64
56!endif
57!if "$(TARGET_CPU)" == "ia64"
58ARCH_SUFFIX = _ia64
59!endif
60!if "$(TARGET_CPU)" == "x64"
61ARCH_SUFFIX = _x64
62!endif
f82b7036
KO
63!if "$(USE_GUI)" == "0"\r
64PORTNAME = base\r
65!endif\r
66!if "$(USE_GUI)" == "1"\r
22a3b6e4
VZ
67PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
68!endif
69!if "$(TOOLKIT)" == "MAC"
70WXBASEPORT = _carbon
71!endif
14b682f7
VZ
72!if "$(OFFICIAL_BUILD)" == "1"
73COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
22a3b6e4 74!endif\r
f82b7036
KO
75!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
76WXDEBUGFLAG = d\r
77!endif\r
78!if "$(DEBUG_RUNTIME_LIBS)" == "1"\r
79WXDEBUGFLAG = d\r
80!endif\r
81!if "$(UNICODE)" == "1"\r
82WXUNICODEFLAG = u\r
83!endif\r
84!if "$(WXUNIV)" == "1"\r
85WXUNIVNAME = univ\r
86!endif\r
f82b7036
KO
87!if "$(SHARED)" == "1"\r
88WXDLLFLAG = dll\r
89!endif\r
90!if "$(SHARED)" == "0"\r
91LIBTYPE_SUFFIX = lib\r
92!endif\r
93!if "$(SHARED)" == "1"\r
94LIBTYPE_SUFFIX = dll\r
95!endif\r
96!if "$(TARGET_CPU)" == "AMD64"\r
94b6ce7f 97LINK_TARGET_CPU = /MACHINE:X64\r
f82b7036
KO
98!endif\r
99!if "$(TARGET_CPU)" == "IA64"\r
100LINK_TARGET_CPU = /MACHINE:IA64\r
101!endif\r
14b682f7
VZ
102!if "$(TARGET_CPU)" == "X64"
103LINK_TARGET_CPU = /MACHINE:X64
104!endif
f82b7036 105!if "$(TARGET_CPU)" == "amd64"\r
94b6ce7f 106LINK_TARGET_CPU = /MACHINE:X64\r
f82b7036
KO
107!endif\r
108!if "$(TARGET_CPU)" == "ia64"\r
109LINK_TARGET_CPU = /MACHINE:IA64\r
110!endif\r
14b682f7
VZ
111!if "$(TARGET_CPU)" == "x64"
112LINK_TARGET_CPU = /MACHINE:X64
113!endif
f82b7036
KO
114!if "$(MONOLITHIC)" == "0"\r
115EXTRALIBS_FOR_BASE = \r
116!endif\r
117!if "$(MONOLITHIC)" == "1"\r
51ec29ea 118EXTRALIBS_FOR_BASE = \r
f82b7036
KO
119!endif\r
120!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
121__DEBUGINFO_0 = /Zi\r
122!endif\r
123!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
124__DEBUGINFO_0 = \r
125!endif\r
126!if "$(DEBUG_INFO)" == "0"\r
127__DEBUGINFO_0 = \r
128!endif\r
129!if "$(DEBUG_INFO)" == "1"\r
130__DEBUGINFO_0 = /Zi\r
131!endif\r
132!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
133__DEBUGINFO_1 = /DEBUG\r
134!endif\r
135!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
136__DEBUGINFO_1 = \r
137!endif\r
138!if "$(DEBUG_INFO)" == "0"\r
139__DEBUGINFO_1 = \r
140!endif\r
141!if "$(DEBUG_INFO)" == "1"\r
142__DEBUGINFO_1 = /DEBUG\r
143!endif\r
144!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
145__DEBUGINFO_2 = $(__DEBUGRUNTIME_5)\r
146!endif\r
147!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
148__DEBUGINFO_2 = \r
149!endif\r
150!if "$(DEBUG_INFO)" == "0"\r
151__DEBUGINFO_2 = \r
152!endif\r
153!if "$(DEBUG_INFO)" == "1"\r
154__DEBUGINFO_2 = $(__DEBUGRUNTIME_5)\r
155!endif\r
156!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
157____DEBUGRUNTIME_3_p = /D_DEBUG\r
158!endif\r
159!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
160____DEBUGRUNTIME_3_p = \r
161!endif\r
162!if "$(DEBUG_RUNTIME_LIBS)" == "0"\r
163____DEBUGRUNTIME_3_p = \r
164!endif\r
165!if "$(DEBUG_RUNTIME_LIBS)" == "1"\r
166____DEBUGRUNTIME_3_p = /D_DEBUG\r
167!endif\r
168!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
169__DEBUGRUNTIME_4 = d\r
170!endif\r
171!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
172__DEBUGRUNTIME_4 = \r
173!endif\r
174!if "$(DEBUG_RUNTIME_LIBS)" == "0"\r
175__DEBUGRUNTIME_4 = \r
176!endif\r
177!if "$(DEBUG_RUNTIME_LIBS)" == "1"\r
178__DEBUGRUNTIME_4 = d\r
179!endif\r
180!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
181__DEBUGRUNTIME_5 = \r
182!endif\r
183!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
184__DEBUGRUNTIME_5 = /opt:ref /opt:icf\r
185!endif\r
186!if "$(DEBUG_RUNTIME_LIBS)" == "0"\r
187__DEBUGRUNTIME_5 = /opt:ref /opt:icf\r
188!endif\r
189!if "$(DEBUG_RUNTIME_LIBS)" == "1"\r
190__DEBUGRUNTIME_5 = \r
191!endif\r
192!if "$(BUILD)" == "debug"\r
193__OPTIMIZEFLAG_6 = /Od\r
194!endif\r
195!if "$(BUILD)" == "release"\r
196__OPTIMIZEFLAG_6 = /O2\r
197!endif\r
198!if "$(USE_THREADS)" == "0"\r
199__THREADSFLAG_9 = L\r
200!endif\r
201!if "$(USE_THREADS)" == "1"\r
202__THREADSFLAG_9 = T\r
203!endif\r
204!if "$(RUNTIME_LIBS)" == "dynamic"\r
205__RUNTIME_LIBS_10 = D\r
206!endif\r
207!if "$(RUNTIME_LIBS)" == "static"\r
208__RUNTIME_LIBS_10 = $(__THREADSFLAG_9)\r
209!endif\r
210!if "$(USE_RTTI)" == "0"\r
211__RTTIFLAG_11 = \r
212!endif\r
213!if "$(USE_RTTI)" == "1"\r
214__RTTIFLAG_11 = /GR\r
215!endif\r
216!if "$(USE_EXCEPTIONS)" == "0"\r
217__EXCEPTIONSFLAG_12 = \r
218!endif\r
219!if "$(USE_EXCEPTIONS)" == "1"\r
220__EXCEPTIONSFLAG_12 = /EHsc\r
221!endif\r
222!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"\r
223__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__\r
224!endif\r
225!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"\r
226__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__\r
227!endif\r
228!if "$(WXUNIV)" == "1"\r
229__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__\r
230!endif\r
231!if "$(DEBUG_FLAG)" == "0"\r
232__DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0\r
233!endif\r
b796194b
VS
234!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
235__NDEBUG_DEFINE_p = /DNDEBUG\r
236!endif\r
237!if "$(DEBUG_RUNTIME_LIBS)" == "0"\r
238__NDEBUG_DEFINE_p = /DNDEBUG\r
239!endif\r
f82b7036
KO
240!if "$(USE_EXCEPTIONS)" == "0"\r
241__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS\r
242!endif\r
243!if "$(USE_RTTI)" == "0"\r
244__RTTI_DEFINE_p = /DwxNO_RTTI\r
245!endif\r
246!if "$(USE_THREADS)" == "0"\r
247__THREAD_DEFINE_p = /DwxNO_THREADS\r
248!endif\r
249!if "$(UNICODE)" == "0"\r
250__UNICODE_DEFINE_p = /DwxUSE_UNICODE=0\r
251!endif\r
252!if "$(UNICODE)" == "1"\r
253__UNICODE_DEFINE_p = /D_UNICODE\r
254!endif\r
255!if "$(MSLU)" == "1"\r
256__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1\r
257!endif\r
f82b7036
KO
258!if "$(USE_CAIRO)" == "1"\r
259____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo\r
260!endif\r
261!if "$(SHARED)" == "1"\r
262__DLLFLAG_p = /DWXUSINGDLL\r
263!endif\r
264!if "$(MONOLITHIC)" == "0"\r
265__WXLIB_NET_p = \\r
22a3b6e4 266 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
f82b7036
KO
267!endif\r
268!if "$(MONOLITHIC)" == "0"\r
269__WXLIB_BASE_p = \\r
22a3b6e4 270 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
f82b7036
KO
271!endif\r
272!if "$(MONOLITHIC)" == "1"\r
273__WXLIB_MONO_p = \\r
274 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
275!endif\r
57c74474
VZ
276!if "$(MONOLITHIC)" == "1"\r
277__LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)\r
278!endif\r
279!if "$(USE_GUI)" == "1"\r
280__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
281!endif\r
f82b7036
KO
282!if "$(MSLU)" == "1"\r
283__UNICOWS_LIB_p = unicows.lib\r
284!endif\r
f82b7036
KO
285!if "$(USE_CAIRO)" == "1"\r
286__CAIRO_LIB_p = cairo.lib\r
287!endif\r
288!if "$(USE_CAIRO)" == "1"\r
289____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib\r
290!endif\r
291\r
292\r
293all: $(OBJS)\r
294$(OBJS):\r
295 -if not exist $(OBJS) mkdir $(OBJS)\r
296\r
297### Targets: ###\r
298\r
a05e050b 299all: $(OBJS)\console.exe\r
f82b7036
KO
300\r
301clean: \r
302 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
303 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
304 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r
305 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe\r
306 -if exist $(OBJS)\console.ilk del $(OBJS)\console.ilk\r
307 -if exist $(OBJS)\console.pdb del $(OBJS)\console.pdb\r
308\r
309$(OBJS)\console.exe: $(CONSOLE_OBJECTS)\r
310 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\console.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<\r
57c74474 311 $(CONSOLE_OBJECTS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_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 wininet.lib\r
f82b7036
KO
312<<\r
313\r
f82b7036
KO
314$(OBJS)\console_console.obj: .\console.cpp\r
315 $(CXX) /c /nologo /TP /Fo$@ $(CONSOLE_CXXFLAGS) .\console.cpp\r
316\r