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