]> git.saurik.com Git - wxWidgets.git/blob - samples/opengl/penguin/makefile.vc
d3f7cac5af20fc773c870b1a73b8e11bbe3cc1e7
[wxWidgets.git] / samples / opengl / penguin / makefile.vc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (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
15 WX_RELEASE_NODOT = 29
16 COMPILER_PREFIX = vc
17 OBJS = \
18 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(ARCH_SUFFIX)
19 LIBDIRNAME = \
20 .\..\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)$(ARCH_SUFFIX)_$(LIBTYPE_SUFFIX)$(CFG)
21 SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 PENGUIN_CFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \
24 $(__DEBUGINFO_0) /Fd$(OBJS)\penguin.pdb $(____DEBUGRUNTIME_3_p) \
25 $(__OPTIMIZEFLAG_6) /D_CRT_SECURE_NO_DEPRECATE=1 \
26 /D_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1 \
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_WINDOWS \
32 /I.\..\..\..\samples /DNOPCH $(CPPFLAGS) $(CFLAGS)
33 PENGUIN_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \
34 $(__DEBUGINFO_0) /Fd$(OBJS)\penguin.pdb $(____DEBUGRUNTIME_3_p) \
35 $(__OPTIMIZEFLAG_6) /D_CRT_SECURE_NO_DEPRECATE=1 \
36 /D_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1 \
37 $(__NO_VC_CRTDBG_p) /D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
38 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
39 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
40 $(__MSLU_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\..\include \
41 $(____CAIRO_INCLUDEDIR_FILENAMES_p) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
42 /I.\..\..\..\samples /DNOPCH $(__RTTIFLAG_11) $(__EXCEPTIONSFLAG_12) \
43 $(CPPFLAGS) $(CXXFLAGS)
44 PENGUIN_OBJECTS = \
45 $(OBJS)\penguin_penguin.obj \
46 $(OBJS)\penguin_dxfrenderer.obj \
47 $(OBJS)\penguin_trackball.obj
48 PENGUIN_RESOURCES = \
49 $(OBJS)\penguin_sample.res
50
51 ### Conditionally set variables: ###
52
53 !if "$(TOOLKIT)" == "GTK"
54 WIN32_TOOLKIT_LOWERCASE = gtk
55 !endif
56 !if "$(TOOLKIT)" == "MSW"
57 WIN32_TOOLKIT_LOWERCASE = msw
58 !endif
59 !if "$(TARGET_CPU)" == "AMD64"
60 ARCH_SUFFIX = _x64
61 !endif
62 !if "$(TARGET_CPU)" == "IA64"
63 ARCH_SUFFIX = _ia64
64 !endif
65 !if "$(TARGET_CPU)" == "X64"
66 ARCH_SUFFIX = _x64
67 !endif
68 !if "$(TARGET_CPU)" == "amd64"
69 ARCH_SUFFIX = _x64
70 !endif
71 !if "$(TARGET_CPU)" == "ia64"
72 ARCH_SUFFIX = _ia64
73 !endif
74 !if "$(TARGET_CPU)" == "x64"
75 ARCH_SUFFIX = _x64
76 !endif
77 !if "$(USE_GUI)" == "0"
78 PORTNAME = base
79 !endif
80 !if "$(USE_GUI)" == "1"
81 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
82 !endif
83 !if "$(TOOLKIT)" == "MAC"
84 WXBASEPORT = _carbon
85 !endif
86 !if "$(OFFICIAL_BUILD)" == "1"
87 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
88 !endif
89 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
90 WXDEBUGFLAG = d
91 !endif
92 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
93 WXDEBUGFLAG = d
94 !endif
95 !if "$(UNICODE)" == "1"
96 WXUNICODEFLAG = u
97 !endif
98 !if "$(WXUNIV)" == "1"
99 WXUNIVNAME = univ
100 !endif
101 !if "$(SHARED)" == "1"
102 WXDLLFLAG = dll
103 !endif
104 !if "$(SHARED)" == "0"
105 LIBTYPE_SUFFIX = lib
106 !endif
107 !if "$(SHARED)" == "1"
108 LIBTYPE_SUFFIX = dll
109 !endif
110 !if "$(TARGET_CPU)" == "AMD64"
111 LINK_TARGET_CPU = /MACHINE:X64
112 !endif
113 !if "$(TARGET_CPU)" == "IA64"
114 LINK_TARGET_CPU = /MACHINE:IA64
115 !endif
116 !if "$(TARGET_CPU)" == "X64"
117 LINK_TARGET_CPU = /MACHINE:X64
118 !endif
119 !if "$(TARGET_CPU)" == "amd64"
120 LINK_TARGET_CPU = /MACHINE:X64
121 !endif
122 !if "$(TARGET_CPU)" == "ia64"
123 LINK_TARGET_CPU = /MACHINE:IA64
124 !endif
125 !if "$(TARGET_CPU)" == "x64"
126 LINK_TARGET_CPU = /MACHINE:X64
127 !endif
128 !if "$(MONOLITHIC)" == "0"
129 EXTRALIBS_FOR_BASE =
130 !endif
131 !if "$(MONOLITHIC)" == "1"
132 EXTRALIBS_FOR_BASE =
133 !endif
134 !if "$(TOOLKIT)" == "GTK" && "$(TOOLKIT_VERSION)" == "2"
135 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
136 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
137 glib-2.0.lib
138 !endif
139 !if "$(USE_OPENGL)" == "1"
140 __penguin___depname = $(OBJS)\penguin.exe
141 !endif
142 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
143 __DEBUGINFO_0 = /Zi
144 !endif
145 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
146 __DEBUGINFO_0 =
147 !endif
148 !if "$(DEBUG_INFO)" == "0"
149 __DEBUGINFO_0 =
150 !endif
151 !if "$(DEBUG_INFO)" == "1"
152 __DEBUGINFO_0 = /Zi
153 !endif
154 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
155 __DEBUGINFO_1 = /DEBUG
156 !endif
157 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
158 __DEBUGINFO_1 =
159 !endif
160 !if "$(DEBUG_INFO)" == "0"
161 __DEBUGINFO_1 =
162 !endif
163 !if "$(DEBUG_INFO)" == "1"
164 __DEBUGINFO_1 = /DEBUG
165 !endif
166 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
167 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
168 !endif
169 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
170 __DEBUGINFO_2 =
171 !endif
172 !if "$(DEBUG_INFO)" == "0"
173 __DEBUGINFO_2 =
174 !endif
175 !if "$(DEBUG_INFO)" == "1"
176 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
177 !endif
178 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
179 ____DEBUGRUNTIME_3_p = /D_DEBUG
180 !endif
181 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
182 ____DEBUGRUNTIME_3_p =
183 !endif
184 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
185 ____DEBUGRUNTIME_3_p =
186 !endif
187 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
188 ____DEBUGRUNTIME_3_p = /D_DEBUG
189 !endif
190 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
191 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
192 !endif
193 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
194 ____DEBUGRUNTIME_3_p_1 =
195 !endif
196 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
197 ____DEBUGRUNTIME_3_p_1 =
198 !endif
199 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
200 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
201 !endif
202 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
203 __DEBUGRUNTIME_4 = d
204 !endif
205 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
206 __DEBUGRUNTIME_4 =
207 !endif
208 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
209 __DEBUGRUNTIME_4 =
210 !endif
211 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
212 __DEBUGRUNTIME_4 = d
213 !endif
214 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
215 __DEBUGRUNTIME_5 =
216 !endif
217 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
218 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
219 !endif
220 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
221 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
222 !endif
223 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
224 __DEBUGRUNTIME_5 =
225 !endif
226 !if "$(BUILD)" == "debug"
227 __OPTIMIZEFLAG_6 = /Od
228 !endif
229 !if "$(BUILD)" == "release"
230 __OPTIMIZEFLAG_6 = /O2
231 !endif
232 !if "$(USE_THREADS)" == "0"
233 __THREADSFLAG_9 = L
234 !endif
235 !if "$(USE_THREADS)" == "1"
236 __THREADSFLAG_9 = T
237 !endif
238 !if "$(RUNTIME_LIBS)" == "dynamic"
239 __RUNTIME_LIBS_10 = D
240 !endif
241 !if "$(RUNTIME_LIBS)" == "static"
242 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
243 !endif
244 !if "$(USE_RTTI)" == "0"
245 __RTTIFLAG_11 =
246 !endif
247 !if "$(USE_RTTI)" == "1"
248 __RTTIFLAG_11 = /GR
249 !endif
250 !if "$(USE_EXCEPTIONS)" == "0"
251 __EXCEPTIONSFLAG_12 =
252 !endif
253 !if "$(USE_EXCEPTIONS)" == "1"
254 __EXCEPTIONSFLAG_12 = /EHsc
255 !endif
256 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
257 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
258 !endif
259 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
260 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
261 !endif
262 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
263 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
264 !endif
265 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
266 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
267 !endif
268 !if "$(WXUNIV)" == "1"
269 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
270 !endif
271 !if "$(WXUNIV)" == "1"
272 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
273 !endif
274 !if "$(DEBUG_FLAG)" == "0"
275 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
276 !endif
277 !if "$(DEBUG_FLAG)" == "0"
278 __DEBUG_DEFINE_p_1 = /d wxDEBUG_LEVEL=0
279 !endif
280 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
281 __NDEBUG_DEFINE_p = /DNDEBUG
282 !endif
283 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
284 __NDEBUG_DEFINE_p = /DNDEBUG
285 !endif
286 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
287 __NDEBUG_DEFINE_p_1 = /d NDEBUG
288 !endif
289 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
290 __NDEBUG_DEFINE_p_1 = /d NDEBUG
291 !endif
292 !if "$(USE_EXCEPTIONS)" == "0"
293 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
294 !endif
295 !if "$(USE_EXCEPTIONS)" == "0"
296 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
297 !endif
298 !if "$(USE_RTTI)" == "0"
299 __RTTI_DEFINE_p = /DwxNO_RTTI
300 !endif
301 !if "$(USE_RTTI)" == "0"
302 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
303 !endif
304 !if "$(USE_THREADS)" == "0"
305 __THREAD_DEFINE_p = /DwxNO_THREADS
306 !endif
307 !if "$(USE_THREADS)" == "0"
308 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
309 !endif
310 !if "$(UNICODE)" == "0"
311 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
312 !endif
313 !if "$(UNICODE)" == "1"
314 __UNICODE_DEFINE_p = /D_UNICODE
315 !endif
316 !if "$(UNICODE)" == "0"
317 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
318 !endif
319 !if "$(UNICODE)" == "1"
320 __UNICODE_DEFINE_p_1 = /d _UNICODE
321 !endif
322 !if "$(MSLU)" == "1"
323 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
324 !endif
325 !if "$(MSLU)" == "1"
326 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
327 !endif
328 !if "$(USE_CAIRO)" == "1"
329 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
330 !endif
331 !if "$(USE_CAIRO)" == "1"
332 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = /i $(CAIRO_ROOT)\include\cairo
333 !endif
334 !if "$(SHARED)" == "1"
335 __DLLFLAG_p = /DWXUSINGDLL
336 !endif
337 !if "$(SHARED)" == "1"
338 __DLLFLAG_p_1 = /d WXUSINGDLL
339 !endif
340 !if "$(MONOLITHIC)" == "0"
341 __WXLIB_CORE_p = \
342 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
343 !endif
344 !if "$(MONOLITHIC)" == "0"
345 __WXLIB_BASE_p = \
346 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
347 !endif
348 !if "$(MONOLITHIC)" == "1"
349 __WXLIB_MONO_p = \
350 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
351 !endif
352 !if "$(USE_GUI)" == "1"
353 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
354 !endif
355 !if "$(USE_GUI)" == "1"
356 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
357 !endif
358 !if "$(USE_GUI)" == "1"
359 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
360 !endif
361 !if "$(MSLU)" == "1"
362 __UNICOWS_LIB_p = unicows.lib
363 !endif
364 !if "$(USE_CAIRO)" == "1"
365 __CAIRO_LIB_p = cairo.lib
366 !endif
367 !if "$(USE_CAIRO)" == "1"
368 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
369 !endif
370
371
372 all: $(OBJS)
373 $(OBJS):
374 -if not exist $(OBJS) mkdir $(OBJS)
375
376 ### Targets: ###
377
378 all: $(__penguin___depname) data
379
380 clean:
381 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
382 -if exist $(OBJS)\*.res del $(OBJS)\*.res
383 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
384 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
385 -if exist $(OBJS)\penguin.ilk del $(OBJS)\penguin.ilk
386 -if exist $(OBJS)\penguin.pdb del $(OBJS)\penguin.pdb
387
388 !if "$(USE_OPENGL)" == "1"
389 $(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_sample.res
390 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\penguin.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<
391 $(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) $(LIB_GTK) 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
392 <<
393 !endif
394
395 data:
396 if not exist $(OBJS) mkdir $(OBJS)
397 for %f in (penguin.dxf.gz) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
398
399 $(OBJS)\penguin_sample.res: .\..\..\..\samples\sample.rc
400 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_3_p_1) /d _CRT_SECURE_NO_DEPRECATE=1 /d _CRT_NON_CONFORMING_SWPRINTFS=1 /d _SCL_SECURE_NO_WARNINGS=1 $(__NO_VC_CRTDBG_p_1) /d __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) /i $(SETUPHDIR) /i .\..\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_1_p) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\..\samples /d NOPCH .\..\..\..\samples\sample.rc
401
402 $(OBJS)\penguin_penguin.obj: .\penguin.cpp
403 $(CXX) /c /nologo /TP /Fo$@ $(PENGUIN_CXXFLAGS) .\penguin.cpp
404
405 $(OBJS)\penguin_dxfrenderer.obj: .\dxfrenderer.cpp
406 $(CXX) /c /nologo /TP /Fo$@ $(PENGUIN_CXXFLAGS) .\dxfrenderer.cpp
407
408 $(OBJS)\penguin_trackball.obj: .\trackball.c
409 $(CC) /c /nologo /TC /Fo$@ $(PENGUIN_CFLAGS) .\trackball.c
410