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