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.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD -MP
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
24 FORTY_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
25 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
26 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
28 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
29 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) \
30 -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
31 -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
33 $(OBJS)\forty_forty.o \
34 $(OBJS)\forty_canvas.o \
35 $(OBJS)\forty_card.o \
36 $(OBJS)\forty_game.o \
37 $(OBJS)\forty_pile.o \
38 $(OBJS)\forty_playerdg.o \
39 $(OBJS)\forty_scoredg.o \
40 $(OBJS)\forty_scorefil.o \
41 $(OBJS)\forty_forty_rc.o
43 ### Conditionally set variables: ###
46 WIN32_TOOLKIT_LOWERCASE = gtk
49 WIN32_TOOLKIT_LOWERCASE = msw
51 ifeq ($(GCC_VERSION),2.95)
52 GCCFLAGS = -fvtable-thunks
58 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
63 ifeq ($(OFFICIAL_BUILD),1)
64 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
84 ifeq ($(MONOLITHIC),0)
87 ifeq ($(MONOLITHIC),1)
91 CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
94 ifeq ($(TOOLKIT_VERSION),2)
95 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
96 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
100 ifeq ($(BUILD),debug)
101 __OPTIMIZEFLAG_2 = -O0
103 ifeq ($(BUILD),release)
104 __OPTIMIZEFLAG_2 = -O2
107 __RTTIFLAG_5 = -fno-rtti
112 ifeq ($(USE_EXCEPTIONS),0)
113 __EXCEPTIONSFLAG_6 = -fno-exceptions
115 ifeq ($(USE_EXCEPTIONS),1)
119 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
122 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
124 ifeq ($(DEBUG_FLAG),0)
125 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
127 ifeq ($(DEBUG_FLAG),0)
128 __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
130 ifeq ($(BUILD),release)
131 __NDEBUG_DEFINE_p = -DNDEBUG
133 ifeq ($(BUILD),release)
134 __NDEBUG_DEFINE_p_1 = --define NDEBUG
136 ifeq ($(USE_EXCEPTIONS),0)
137 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
139 ifeq ($(USE_EXCEPTIONS),0)
140 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
143 __RTTI_DEFINE_p = -DwxNO_RTTI
146 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
148 ifeq ($(USE_THREADS),0)
149 __THREAD_DEFINE_p = -DwxNO_THREADS
151 ifeq ($(USE_THREADS),0)
152 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
155 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
158 __UNICODE_DEFINE_p = -D_UNICODE
161 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
164 __UNICODE_DEFINE_p_1 = --define _UNICODE
167 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
170 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
172 ifeq ($(USE_CAIRO),1)
173 ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
175 ifeq ($(USE_CAIRO),1)
176 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
179 __DLLFLAG_p = -DWXUSINGDLL
182 __DLLFLAG_p_1 = --define WXUSINGDLL
184 ifeq ($(MONOLITHIC),0)
186 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
188 ifeq ($(MONOLITHIC),0)
190 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
192 ifeq ($(MONOLITHIC),0)
194 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
196 ifeq ($(MONOLITHIC),0)
198 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
200 ifeq ($(MONOLITHIC),0)
202 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
204 ifeq ($(MONOLITHIC),1)
206 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
209 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
212 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
215 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
218 __UNICOWS_LIB_p = -lunicows
220 ifeq ($(USE_CAIRO),1)
221 __CAIRO_LIB_p = -lcairo
223 ifeq ($(USE_CAIRO),1)
224 ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
226 ifeq ($(BUILD),debug)
227 ifeq ($(DEBUG_INFO),default)
231 ifeq ($(BUILD),release)
232 ifeq ($(DEBUG_INFO),default)
236 ifeq ($(DEBUG_INFO),0)
239 ifeq ($(DEBUG_INFO),1)
242 ifeq ($(USE_THREADS),0)
245 ifeq ($(USE_THREADS),1)
246 __THREADSFLAG = -mthreads
252 -if not exist $(OBJS) mkdir $(OBJS)
256 all: $(OBJS)\forty.exe data
259 -if exist $(OBJS)\*.o del $(OBJS)\*.o
260 -if exist $(OBJS)\*.d del $(OBJS)\*.d
261 -if exist $(OBJS)\forty.exe del $(OBJS)\forty.exe
263 $(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty_rc.o
264 $(CXX) -o $@ $(FORTY_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__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) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
267 if not exist $(OBJS) mkdir $(OBJS)
268 for %%f in (about.htm) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
270 $(OBJS)\forty_forty.o: ./forty.cpp
271 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
273 $(OBJS)\forty_canvas.o: ./canvas.cpp
274 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
276 $(OBJS)\forty_card.o: ./card.cpp
277 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
279 $(OBJS)\forty_game.o: ./game.cpp
280 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
282 $(OBJS)\forty_pile.o: ./pile.cpp
283 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
285 $(OBJS)\forty_playerdg.o: ./playerdg.cpp
286 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
288 $(OBJS)\forty_scoredg.o: ./scoredg.cpp
289 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
291 $(OBJS)\forty_scorefil.o: ./scorefil.cpp
292 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
294 $(OBJS)\forty_forty_rc.o: ./forty.rc
295 windres --use-temp-file -i$< -o$@ --define __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) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
297 .PHONY: all clean data
302 # Dependencies tracking: