1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (http://bakefile.sourceforge.net)
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 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 FORTY_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
22 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
24 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
25 -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
26 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
28 $(OBJS)\forty_forty.o \
29 $(OBJS)\forty_canvas.o \
30 $(OBJS)\forty_card.o \
31 $(OBJS)\forty_game.o \
32 $(OBJS)\forty_pile.o \
33 $(OBJS)\forty_playerdg.o \
34 $(OBJS)\forty_scoredg.o \
35 $(OBJS)\forty_scorefil.o \
36 $(OBJS)\forty_forty_rc.o
38 ### Conditionally set variables: ###
40 ifeq ($(GCC_VERSION),2.95)
41 GCCFLAGS = -fvtable-thunks
50 ifeq ($(DEBUG_FLAG),default)
54 ifeq ($(DEBUG_FLAG),1)
72 ifeq ($(MONOLITHIC),0)
75 ifeq ($(MONOLITHIC),1)
79 __OPTIMIZEFLAG_2 = -O0
81 ifeq ($(BUILD),release)
82 __OPTIMIZEFLAG_2 = -O2
85 __RTTIFLAG_5 = -fno-rtti
90 ifeq ($(USE_EXCEPTIONS),0)
91 __EXCEPTIONSFLAG_6 = -fno-exceptions
93 ifeq ($(USE_EXCEPTIONS),1)
97 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
100 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
102 ifeq ($(BUILD),debug)
103 ifeq ($(DEBUG_FLAG),default)
104 __DEBUG_DEFINE_p = -D__WXDEBUG__
107 ifeq ($(DEBUG_FLAG),1)
108 __DEBUG_DEFINE_p = -D__WXDEBUG__
110 ifeq ($(BUILD),debug)
111 ifeq ($(DEBUG_FLAG),default)
112 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
115 ifeq ($(DEBUG_FLAG),1)
116 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
118 ifeq ($(USE_EXCEPTIONS),0)
119 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
121 ifeq ($(USE_EXCEPTIONS),0)
122 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
125 __RTTI_DEFINE_p = -DwxNO_RTTI
128 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
130 ifeq ($(USE_THREADS),0)
131 __THREAD_DEFINE_p = -DwxNO_THREADS
133 ifeq ($(USE_THREADS),0)
134 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
137 __UNICODE_DEFINE_p = -D_UNICODE
140 __UNICODE_DEFINE_p_1 = --define _UNICODE
143 __DLLFLAG_p = -DWXUSINGDLL
146 __DLLFLAG_p_1 = --define WXUSINGDLL
148 ifeq ($(MONOLITHIC),0)
150 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
152 ifeq ($(MONOLITHIC),0)
154 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
156 ifeq ($(MONOLITHIC),0)
158 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
160 ifeq ($(MONOLITHIC),0)
162 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
164 ifeq ($(MONOLITHIC),1)
166 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
169 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
172 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
175 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
178 __UNICOWS_LIB_p = -lunicows
180 ifeq ($(BUILD),debug)
181 ifeq ($(DEBUG_INFO),default)
185 ifeq ($(BUILD),release)
186 ifeq ($(DEBUG_INFO),default)
190 ifeq ($(DEBUG_INFO),0)
193 ifeq ($(DEBUG_INFO),1)
196 ifeq ($(USE_THREADS),0)
199 ifeq ($(USE_THREADS),1)
200 __THREADSFLAG = -mthreads
206 -if not exist $(OBJS) mkdir $(OBJS)
210 all: $(OBJS)\forty.exe data
213 -if exist $(OBJS)\*.o del $(OBJS)\*.o
214 -if exist $(OBJS)\forty.exe del $(OBJS)\forty.exe
216 $(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty_rc.o
217 $(CXX) -o $@ $(FORTY_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_HTML_p) $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
220 if not exist $(OBJS) mkdir $(OBJS)
221 for %%f in (about.htm) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
223 $(OBJS)\forty_forty.o: ./forty.cpp
224 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
226 $(OBJS)\forty_canvas.o: ./canvas.cpp
227 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
229 $(OBJS)\forty_card.o: ./card.cpp
230 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
232 $(OBJS)\forty_game.o: ./game.cpp
233 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
235 $(OBJS)\forty_pile.o: ./pile.cpp
236 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
238 $(OBJS)\forty_playerdg.o: ./playerdg.cpp
239 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
241 $(OBJS)\forty_scoredg.o: ./scoredg.cpp
242 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
244 $(OBJS)\forty_scorefil.o: ./scorefil.cpp
245 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
247 $(OBJS)\forty_forty_rc.o: ./forty.rc
248 windres --use-temp-file -i$< -o$@ --define __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) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
250 .PHONY: all clean data