]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.vc
Use an even more informative error message in wxFSW unit test.
[wxWidgets.git] / samples / render / makefile.vc
CommitLineData
78808897
VZ
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.7 (http://www.bakefile.org)
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 = 29
16WX_VERSION_NODOT = $(WX_RELEASE_NODOT)1
17COMPILER_PREFIX = vc
18OBJS = \
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
20LIBDIRNAME = \
21 .\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
22SETUPHDIR = \
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
24RENDER_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME) /DWIN32 \
25 $(__DEBUGINFO) /Fd$(OBJS)\render.pdb $(__DEBUGINFO_2) $(____DEBUGRUNTIME) \
26 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
27 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
28 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
29 $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) \
30 /D_WINDOWS /I.\..\..\samples /DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
31 $(CPPFLAGS) $(CXXFLAGS)
32RENDER_OBJECTS = \
33 $(OBJS)\render_render.obj
34RENDER_RESOURCES = \
35 $(OBJS)\render_sample.res
36RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS_27)$(__DEBUGRUNTIME) /DWIN32 \
37 $(__DEBUGINFO) \
38 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.pdb \
39 $(__DEBUGINFO_19) $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) \
40 /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
41 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
42 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
43 /I$(SETUPHDIR) /I.\..\..\include /W4 /DWXUSINGDLL $(__RTTIFLAG) \
44 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
45RENDDLL_OBJECTS = \
46 $(OBJS)\renddll_renddll.obj
47
48### Conditionally set variables: ###
49
50!if "$(USE_GUI)" == "0"
51PORTNAME = base
52!endif
53!if "$(USE_GUI)" == "1"
54PORTNAME = msw
55!endif
56!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
57WXDEBUGFLAG = d
58!endif
59!if "$(DEBUG_RUNTIME_LIBS)" == "1"
60WXDEBUGFLAG = d
61!endif
62!if "$(UNICODE)" == "1"
63WXUNICODEFLAG = u
64!endif
65!if "$(WXUNIV)" == "1"
66WXUNIVNAME = univ
67!endif
68!if "$(TARGET_CPU)" == "AMD64"
69DIR_SUFFIX_CPU = _amd64
70!endif
71!if "$(TARGET_CPU)" == "IA64"
72DIR_SUFFIX_CPU = _ia64
73!endif
74!if "$(TARGET_CPU)" == "amd64"
75DIR_SUFFIX_CPU = _amd64
76!endif
77!if "$(TARGET_CPU)" == "ia64"
78DIR_SUFFIX_CPU = _ia64
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 "$(TARGET_CPU)" == "AMD64"
90LINK_TARGET_CPU = /MACHINE:AMD64
91!endif
92!if "$(TARGET_CPU)" == "IA64"
93LINK_TARGET_CPU = /MACHINE:IA64
94!endif
95!if "$(TARGET_CPU)" == "amd64"
96LINK_TARGET_CPU = /MACHINE:AMD64
97!endif
98!if "$(TARGET_CPU)" == "ia64"
99LINK_TARGET_CPU = /MACHINE:IA64
100!endif
101!if "$(MONOLITHIC)" == "0"
102EXTRALIBS_FOR_BASE =
103!endif
104!if "$(MONOLITHIC)" == "1"
105EXTRALIBS_FOR_BASE =
106!endif
107!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
108__DEBUGINFO_2 = $(__DEBUGRUNTIME_0)
109!endif
110!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
111__DEBUGINFO_2 =
112!endif
113!if "$(DEBUG_INFO)" == "0"
114__DEBUGINFO_2 =
115!endif
116!if "$(DEBUG_INFO)" == "1"
117__DEBUGINFO_2 = $(__DEBUGRUNTIME_0)
118!endif
119!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
120____DEBUGRUNTIME_3_p_1 = /d _DEBUG
121!endif
122!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
123____DEBUGRUNTIME_3_p_1 =
124!endif
125!if "$(DEBUG_RUNTIME_LIBS)" == "0"
126____DEBUGRUNTIME_3_p_1 =
127!endif
128!if "$(DEBUG_RUNTIME_LIBS)" == "1"
129____DEBUGRUNTIME_3_p_1 = /d _DEBUG
130!endif
131!if "$(RUNTIME_LIBS)" == "dynamic"
132__RUNTIME_LIBS_10 = D
133!endif
134!if "$(RUNTIME_LIBS)" == "static"
135__RUNTIME_LIBS_10 = $(__THREADSFLAG)
136!endif
137!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
138__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
139!endif
140!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
141__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
142!endif
143!if "$(WXUNIV)" == "1"
144__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
145!endif
146!if "$(DEBUG_FLAG)" == "0"
147__DEBUG_DEFINE_p_1 = /d wxDEBUG_LEVEL=0
148!endif
149!if "$(USE_EXCEPTIONS)" == "0"
150__EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
151!endif
152!if "$(USE_RTTI)" == "0"
153__RTTI_DEFINE_p_1 = /d wxNO_RTTI
154!endif
155!if "$(USE_THREADS)" == "0"
156__THREAD_DEFINE_p_1 = /d wxNO_THREADS
157!endif
158!if "$(UNICODE)" == "0"
159__UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
160!endif
161!if "$(UNICODE)" == "1"
162__UNICODE_DEFINE_p_1 = /d _UNICODE
163!endif
164!if "$(MSLU)" == "1"
165__MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
166!endif
167!if "$(USE_GDIPLUS)" == "1"
168__GFXCTX_DEFINE_p_1 = /d wxUSE_GRAPHICS_CONTEXT=1
169!endif
170!if "$(SHARED)" == "1"
171__DLLFLAG_p = /DWXUSINGDLL
172!endif
173!if "$(SHARED)" == "1"
174__DLLFLAG_p_1 = /d WXUSINGDLL
175!endif
176!if "$(SHARED)" == "1"
177__renddll___depname = \
178 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.dll
179!endif
180!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
181__DEBUGINFO_19 = $(__DEBUGRUNTIME_0)
182!endif
183!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
184__DEBUGINFO_19 =
185!endif
186!if "$(DEBUG_INFO)" == "0"
187__DEBUGINFO_19 =
188!endif
189!if "$(DEBUG_INFO)" == "1"
190__DEBUGINFO_19 = $(__DEBUGRUNTIME_0)
191!endif
192!if "$(RUNTIME_LIBS)" == "dynamic"
193__RUNTIME_LIBS_27 = D
194!endif
195!if "$(RUNTIME_LIBS)" == "static"
196__RUNTIME_LIBS_27 = $(__THREADSFLAG)
197!endif
198!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
199__DEBUGINFO = /Zi
200!endif
201!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
202__DEBUGINFO =
203!endif
204!if "$(DEBUG_INFO)" == "0"
205__DEBUGINFO =
206!endif
207!if "$(DEBUG_INFO)" == "1"
208__DEBUGINFO = /Zi
209!endif
210!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
211__DEBUGINFO_1 = /DEBUG
212!endif
213!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
214__DEBUGINFO_1 =
215!endif
216!if "$(DEBUG_INFO)" == "0"
217__DEBUGINFO_1 =
218!endif
219!if "$(DEBUG_INFO)" == "1"
220__DEBUGINFO_1 = /DEBUG
221!endif
222!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
223____DEBUGRUNTIME = /D_DEBUG
224!endif
225!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
226____DEBUGRUNTIME =
227!endif
228!if "$(DEBUG_RUNTIME_LIBS)" == "0"
229____DEBUGRUNTIME =
230!endif
231!if "$(DEBUG_RUNTIME_LIBS)" == "1"
232____DEBUGRUNTIME = /D_DEBUG
233!endif
234!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
235__DEBUGRUNTIME = d
236!endif
237!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
238__DEBUGRUNTIME =
239!endif
240!if "$(DEBUG_RUNTIME_LIBS)" == "0"
241__DEBUGRUNTIME =
242!endif
243!if "$(DEBUG_RUNTIME_LIBS)" == "1"
244__DEBUGRUNTIME = d
245!endif
246!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
247__DEBUGRUNTIME_0 =
248!endif
249!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
250__DEBUGRUNTIME_0 = /opt:ref /opt:icf
251!endif
252!if "$(DEBUG_RUNTIME_LIBS)" == "0"
253__DEBUGRUNTIME_0 = /opt:ref /opt:icf
254!endif
255!if "$(DEBUG_RUNTIME_LIBS)" == "1"
256__DEBUGRUNTIME_0 =
257!endif
258!if "$(BUILD)" == "debug"
259__OPTIMIZEFLAG = /Od
260!endif
261!if "$(BUILD)" == "release"
262__OPTIMIZEFLAG = /O2
263!endif
264!if "$(USE_THREADS)" == "0"
265__THREADSFLAG = L
266!endif
267!if "$(USE_THREADS)" == "1"
268__THREADSFLAG = T
269!endif
270!if "$(USE_RTTI)" == "0"
271__RTTIFLAG =
272!endif
273!if "$(USE_RTTI)" == "1"
274__RTTIFLAG = /GR
275!endif
276!if "$(USE_EXCEPTIONS)" == "0"
277__EXCEPTIONSFLAG =
278!endif
279!if "$(USE_EXCEPTIONS)" == "1"
280__EXCEPTIONSFLAG = /EHsc
281!endif
282!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
283__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
284!endif
285!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
286__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
287!endif
288!if "$(WXUNIV)" == "1"
289__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
290!endif
291!if "$(DEBUG_FLAG)" == "0"
292__DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
293!endif
294!if "$(USE_EXCEPTIONS)" == "0"
295__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
296!endif
297!if "$(USE_RTTI)" == "0"
298__RTTI_DEFINE_p = /DwxNO_RTTI
299!endif
300!if "$(USE_THREADS)" == "0"
301__THREAD_DEFINE_p = /DwxNO_THREADS
302!endif
303!if "$(UNICODE)" == "0"
304__UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
305!endif
306!if "$(UNICODE)" == "1"
307__UNICODE_DEFINE_p = /D_UNICODE
308!endif
309!if "$(MSLU)" == "1"
310__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
311!endif
312!if "$(USE_GDIPLUS)" == "1"
313__GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
314!endif
315!if "$(MONOLITHIC)" == "0"
316__WXLIB_CORE_p = \
317 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
318!endif
319!if "$(MONOLITHIC)" == "0"
320__WXLIB_BASE_p = \
321 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
322!endif
323!if "$(MONOLITHIC)" == "1"
324__WXLIB_MONO_p = \
325 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
326!endif
327!if "$(USE_GUI)" == "1"
328__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
329!endif
330!if "$(USE_GUI)" == "1"
331__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
332!endif
333!if "$(USE_GUI)" == "1"
334__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
335!endif
336!if "$(MSLU)" == "1"
337__UNICOWS_LIB_p = unicows.lib
338!endif
339!if "$(USE_GDIPLUS)" == "1"
340__GDIPLUS_LIB_p = gdiplus.lib
341!endif
342
343
344all: $(OBJS)
345$(OBJS):
346 -if not exist $(OBJS) mkdir $(OBJS)
347
348### Targets: ###
349
350all: $(OBJS)\render.exe $(__renddll___depname)
351
352clean:
353 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
354 -if exist $(OBJS)\*.res del $(OBJS)\*.res
355 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
356 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
357 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
358 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
359 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.dll
360 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.ilk
361 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.pdb
362
363$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
364 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\render.pdb" $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<
365 $(RENDER_OBJECTS) $(RENDER_RESOURCES) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__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) $(__GDIPLUS_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
366<<
367
368!if "$(SHARED)" == "1"
369$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
370 link /DLL /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.pdb" $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) $(LDFLAGS) @<<
371 $(RENDDLL_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__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) $(__GDIPLUS_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
372<<
373!endif
374
375$(OBJS)\render_sample.res: .\..\..\samples\sample.rc
376 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) $(__GFXCTX_DEFINE_p_1) /i $(SETUPHDIR) /i .\..\..\include /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples /d NOPCH .\..\..\samples\sample.rc
377
378$(OBJS)\render_render.obj: .\render.cpp
379 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) .\render.cpp
380
381$(OBJS)\renddll_renddll.obj: .\renddll.cpp
382 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) .\renddll.cpp
383