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