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