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