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 # =========================================================================
7 !include <../../build/msw/config.vc>
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
18 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(ARCH_SUFFIX)
20 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)$(ARCH_SUFFIX)_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 FORTY_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \
24 $(__DEBUGINFO_0) /Fd$(OBJS)\forty.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)
35 $(OBJS)\forty_forty.obj \
36 $(OBJS)\forty_canvas.obj \
37 $(OBJS)\forty_card.obj \
38 $(OBJS)\forty_game.obj \
39 $(OBJS)\forty_pile.obj \
40 $(OBJS)\forty_playerdg.obj \
41 $(OBJS)\forty_scoredg.obj \
42 $(OBJS)\forty_scorefil.obj
44 $(OBJS)\forty_forty.res
46 ### Conditionally set variables: ###
48 !if "$(TOOLKIT)" == "GTK"
49 WIN32_TOOLKIT_LOWERCASE = gtk
51 !if "$(TOOLKIT)" == "MSW"
52 WIN32_TOOLKIT_LOWERCASE = msw
54 !if "$(TARGET_CPU)" == "AMD64"
57 !if "$(TARGET_CPU)" == "IA64"
60 !if "$(TARGET_CPU)" == "X64"
63 !if "$(TARGET_CPU)" == "amd64"
66 !if "$(TARGET_CPU)" == "ia64"
69 !if "$(TARGET_CPU)" == "x64"
72 !if "$(USE_GUI)" == "0"
75 !if "$(USE_GUI)" == "1"
76 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
78 !if "$(TOOLKIT)" == "MAC"
81 !if "$(OFFICIAL_BUILD)" == "1"
82 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
84 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
87 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
90 !if "$(UNICODE)" == "1"
93 !if "$(WXUNIV)" == "1"
96 !if "$(SHARED)" == "1"
99 !if "$(SHARED)" == "0"
102 !if "$(SHARED)" == "1"
105 !if "$(TARGET_CPU)" == "AMD64"
106 LINK_TARGET_CPU = /MACHINE:X64
108 !if "$(TARGET_CPU)" == "IA64"
109 LINK_TARGET_CPU = /MACHINE:IA64
111 !if "$(TARGET_CPU)" == "X64"
112 LINK_TARGET_CPU = /MACHINE:X64
114 !if "$(TARGET_CPU)" == "amd64"
115 LINK_TARGET_CPU = /MACHINE:X64
117 !if "$(TARGET_CPU)" == "ia64"
118 LINK_TARGET_CPU = /MACHINE:IA64
120 !if "$(TARGET_CPU)" == "x64"
121 LINK_TARGET_CPU = /MACHINE:X64
123 !if "$(MONOLITHIC)" == "0"
126 !if "$(MONOLITHIC)" == "1"
129 !if "$(TOOLKIT)" == "GTK" && "$(TOOLKIT_VERSION)" == "2"
130 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
131 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
134 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
137 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
140 !if "$(DEBUG_INFO)" == "0"
143 !if "$(DEBUG_INFO)" == "1"
146 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
147 __DEBUGINFO_1 = /DEBUG
149 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
152 !if "$(DEBUG_INFO)" == "0"
155 !if "$(DEBUG_INFO)" == "1"
156 __DEBUGINFO_1 = /DEBUG
158 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
159 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
161 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
164 !if "$(DEBUG_INFO)" == "0"
167 !if "$(DEBUG_INFO)" == "1"
168 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
170 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
171 ____DEBUGRUNTIME_3_p = /D_DEBUG
173 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
174 ____DEBUGRUNTIME_3_p =
176 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
177 ____DEBUGRUNTIME_3_p =
179 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
180 ____DEBUGRUNTIME_3_p = /D_DEBUG
182 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
183 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
185 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
186 ____DEBUGRUNTIME_3_p_1 =
188 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
189 ____DEBUGRUNTIME_3_p_1 =
191 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
192 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
194 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
197 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
200 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
203 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
206 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
209 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
210 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
212 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
213 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
215 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
218 !if "$(BUILD)" == "debug"
219 __OPTIMIZEFLAG_6 = /Od
221 !if "$(BUILD)" == "release"
222 __OPTIMIZEFLAG_6 = /O2
224 !if "$(USE_THREADS)" == "0"
227 !if "$(USE_THREADS)" == "1"
230 !if "$(RUNTIME_LIBS)" == "dynamic"
231 __RUNTIME_LIBS_10 = D
233 !if "$(RUNTIME_LIBS)" == "static"
234 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
236 !if "$(USE_RTTI)" == "0"
239 !if "$(USE_RTTI)" == "1"
242 !if "$(USE_EXCEPTIONS)" == "0"
243 __EXCEPTIONSFLAG_12 =
245 !if "$(USE_EXCEPTIONS)" == "1"
246 __EXCEPTIONSFLAG_12 = /EHsc
248 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
249 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
251 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
252 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
254 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
255 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
257 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
258 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
260 !if "$(WXUNIV)" == "1"
261 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
263 !if "$(WXUNIV)" == "1"
264 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
266 !if "$(DEBUG_FLAG)" == "0"
267 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
269 !if "$(DEBUG_FLAG)" == "0"
270 __DEBUG_DEFINE_p_1 = /d wxDEBUG_LEVEL=0
272 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
273 __NDEBUG_DEFINE_p = /DNDEBUG
275 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
276 __NDEBUG_DEFINE_p = /DNDEBUG
278 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
279 __NDEBUG_DEFINE_p_1 = /d NDEBUG
281 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
282 __NDEBUG_DEFINE_p_1 = /d NDEBUG
284 !if "$(USE_EXCEPTIONS)" == "0"
285 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
287 !if "$(USE_EXCEPTIONS)" == "0"
288 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
290 !if "$(USE_RTTI)" == "0"
291 __RTTI_DEFINE_p = /DwxNO_RTTI
293 !if "$(USE_RTTI)" == "0"
294 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
296 !if "$(USE_THREADS)" == "0"
297 __THREAD_DEFINE_p = /DwxNO_THREADS
299 !if "$(USE_THREADS)" == "0"
300 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
302 !if "$(UNICODE)" == "0"
303 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
305 !if "$(UNICODE)" == "1"
306 __UNICODE_DEFINE_p = /D_UNICODE
308 !if "$(UNICODE)" == "0"
309 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
311 !if "$(UNICODE)" == "1"
312 __UNICODE_DEFINE_p_1 = /d _UNICODE
315 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
318 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
320 !if "$(USE_CAIRO)" == "1"
321 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
323 !if "$(USE_CAIRO)" == "1"
324 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = /i $(CAIRO_ROOT)\include\cairo
326 !if "$(SHARED)" == "1"
327 __DLLFLAG_p = /DWXUSINGDLL
329 !if "$(SHARED)" == "1"
330 __DLLFLAG_p_1 = /d WXUSINGDLL
332 !if "$(MONOLITHIC)" == "0"
334 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
336 !if "$(MONOLITHIC)" == "0"
338 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
340 !if "$(MONOLITHIC)" == "0"
342 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
344 !if "$(MONOLITHIC)" == "0"
346 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
348 !if "$(MONOLITHIC)" == "0"
350 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
352 !if "$(MONOLITHIC)" == "1"
354 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
356 !if "$(USE_GUI)" == "1"
357 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
359 !if "$(USE_GUI)" == "1"
360 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
362 !if "$(USE_GUI)" == "1"
363 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
366 __UNICOWS_LIB_p = unicows.lib
368 !if "$(USE_CAIRO)" == "1"
369 __CAIRO_LIB_p = cairo.lib
371 !if "$(USE_CAIRO)" == "1"
372 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
378 -if not exist $(OBJS) mkdir $(OBJS)
382 all: $(OBJS)\forty.exe data
385 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
386 -if exist $(OBJS)\*.res del $(OBJS)\*.res
387 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
388 -if exist $(OBJS)\forty.exe del $(OBJS)\forty.exe
389 -if exist $(OBJS)\forty.ilk del $(OBJS)\forty.ilk
390 -if exist $(OBJS)\forty.pdb del $(OBJS)\forty.pdb
392 $(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty.res
393 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\forty.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<
394 $(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) $(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
398 if not exist $(OBJS) mkdir $(OBJS)
399 for %f in (about.htm) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
401 $(OBJS)\forty_forty.obj: .\forty.cpp
402 $(CXX) /c /nologo /TP /Fo$@ $(FORTY_CXXFLAGS) .\forty.cpp
404 $(OBJS)\forty_canvas.obj: .\canvas.cpp
405 $(CXX) /c /nologo /TP /Fo$@ $(FORTY_CXXFLAGS) .\canvas.cpp
407 $(OBJS)\forty_card.obj: .\card.cpp
408 $(CXX) /c /nologo /TP /Fo$@ $(FORTY_CXXFLAGS) .\card.cpp
410 $(OBJS)\forty_game.obj: .\game.cpp
411 $(CXX) /c /nologo /TP /Fo$@ $(FORTY_CXXFLAGS) .\game.cpp
413 $(OBJS)\forty_pile.obj: .\pile.cpp
414 $(CXX) /c /nologo /TP /Fo$@ $(FORTY_CXXFLAGS) .\pile.cpp
416 $(OBJS)\forty_playerdg.obj: .\playerdg.cpp
417 $(CXX) /c /nologo /TP /Fo$@ $(FORTY_CXXFLAGS) .\playerdg.cpp
419 $(OBJS)\forty_scoredg.obj: .\scoredg.cpp
420 $(CXX) /c /nologo /TP /Fo$@ $(FORTY_CXXFLAGS) .\scoredg.cpp
422 $(OBJS)\forty_scorefil.obj: .\scorefil.cpp
423 $(CXX) /c /nologo /TP /Fo$@ $(FORTY_CXXFLAGS) .\scorefil.cpp
425 $(OBJS)\forty_forty.res: .\forty.rc
426 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 .\forty.rc