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