]> git.saurik.com Git - wxWidgets.git/blob - samples/opengl/penguin/makefile.vc
492d4b16a83f5bf794113004c2ba50392d0de76f
[wxWidgets.git] / samples / opengl / penguin / makefile.vc
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
15 WX_RELEASE_NODOT = 29
16 COMPILER_PREFIX = vc
17 OBJS = \
18 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
19 LIBDIRNAME = \
20 .\..\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(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 $(__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)
31 PENGUIN_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)
39 PENGUIN_OBJECTS = \
40 $(OBJS)\penguin_penguin.obj \
41 $(OBJS)\penguin_dxfrenderer.obj \
42 $(OBJS)\penguin_trackball.obj
43 PENGUIN_RESOURCES = \
44 $(OBJS)\penguin_penguin.res
45
46 ### Conditionally set variables: ###
47
48 !if "$(USE_GUI)" == "0"
49 PORTNAME = base
50 !endif
51 !if "$(USE_GUI)" == "1"
52 PORTNAME = msw
53 !endif
54 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
55 WXDEBUGFLAG = d
56 !endif
57 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
58 WXDEBUGFLAG = d
59 !endif
60 !if "$(UNICODE)" == "1"
61 WXUNICODEFLAG = u
62 !endif
63 !if "$(WXUNIV)" == "1"
64 WXUNIVNAME = univ
65 !endif
66 !if "$(TARGET_CPU)" == "AMD64"
67 DIR_SUFFIX_CPU = _amd64
68 !endif
69 !if "$(TARGET_CPU)" == "IA64"
70 DIR_SUFFIX_CPU = _ia64
71 !endif
72 !if "$(TARGET_CPU)" == "amd64"
73 DIR_SUFFIX_CPU = _amd64
74 !endif
75 !if "$(TARGET_CPU)" == "ia64"
76 DIR_SUFFIX_CPU = _ia64
77 !endif
78 !if "$(SHARED)" == "1"
79 WXDLLFLAG = dll
80 !endif
81 !if "$(SHARED)" == "0"
82 LIBTYPE_SUFFIX = lib
83 !endif
84 !if "$(SHARED)" == "1"
85 LIBTYPE_SUFFIX = dll
86 !endif
87 !if "$(TARGET_CPU)" == "AMD64"
88 LINK_TARGET_CPU = /MACHINE:AMD64
89 !endif
90 !if "$(TARGET_CPU)" == "IA64"
91 LINK_TARGET_CPU = /MACHINE:IA64
92 !endif
93 !if "$(TARGET_CPU)" == "amd64"
94 LINK_TARGET_CPU = /MACHINE:AMD64
95 !endif
96 !if "$(TARGET_CPU)" == "ia64"
97 LINK_TARGET_CPU = /MACHINE:IA64
98 !endif
99 !if "$(MONOLITHIC)" == "0"
100 EXTRALIBS_FOR_BASE =
101 !endif
102 !if "$(MONOLITHIC)" == "1"
103 EXTRALIBS_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
323 all: $(OBJS)
324 $(OBJS):
325 -if not exist $(OBJS) mkdir $(OBJS)
326
327 ### Targets: ###
328
329 all: $(__penguin___depname) data
330
331 clean:
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
346 data:
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