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 # =========================================================================
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
13 BCCDIR = $(MAKEDIR)\..
16 !include ../../build/msw/config.bcc
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
27 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
29 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
31 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
32 FORTY_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
33 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
34 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
35 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
36 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
37 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -I. $(__DLLFLAG_p) -I.\..\..\samples \
38 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
40 $(OBJS)\forty_forty.obj \
41 $(OBJS)\forty_canvas.obj \
42 $(OBJS)\forty_card.obj \
43 $(OBJS)\forty_game.obj \
44 $(OBJS)\forty_pile.obj \
45 $(OBJS)\forty_playerdg.obj \
46 $(OBJS)\forty_scoredg.obj \
47 $(OBJS)\forty_scorefil.obj
49 ### Conditionally set variables: ###
51 !if "$(USE_GUI)" == "0"
54 !if "$(USE_GUI)" == "1"
55 PORTNAME = msw$(TOOLKIT_VERSION)
57 !if "$(OFFICIAL_BUILD)" == "1"
58 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
60 !if "$(BUILD)" == "debug"
63 !if "$(UNICODE)" == "1"
66 !if "$(WXUNIV)" == "1"
69 !if "$(SHARED)" == "1"
72 !if "$(SHARED)" == "0"
75 !if "$(SHARED)" == "1"
78 !if "$(MONOLITHIC)" == "0"
81 !if "$(MONOLITHIC)" == "1"
84 !if "$(BUILD)" == "debug"
85 __OPTIMIZEFLAG_2 = -Od
87 !if "$(BUILD)" == "release"
88 __OPTIMIZEFLAG_2 = -O2
90 !if "$(USE_THREADS)" == "0"
93 !if "$(USE_THREADS)" == "1"
96 !if "$(USE_THREADS)" == "0"
99 !if "$(USE_THREADS)" == "1"
100 __THREADSFLAG_6 = -tWM
102 !if "$(RUNTIME_LIBS)" == "dynamic"
103 __RUNTIME_LIBS_7 = -tWR
105 !if "$(RUNTIME_LIBS)" == "static"
108 !if "$(RUNTIME_LIBS)" == "dynamic"
111 !if "$(RUNTIME_LIBS)" == "static"
114 !if "$(WXUNIV)" == "1"
115 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
117 !if "$(WXUNIV)" == "1"
118 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
120 !if "$(DEBUG_FLAG)" == "0"
121 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
123 !if "$(DEBUG_FLAG)" == "0"
124 __DEBUG_DEFINE_p_1 = -dwxDEBUG_LEVEL=0
126 !if "$(BUILD)" == "release"
127 __NDEBUG_DEFINE_p = -DNDEBUG
129 !if "$(BUILD)" == "release"
130 __NDEBUG_DEFINE_p_1 = -dNDEBUG
132 !if "$(USE_EXCEPTIONS)" == "0"
133 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
135 !if "$(USE_EXCEPTIONS)" == "0"
136 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
138 !if "$(USE_RTTI)" == "0"
139 __RTTI_DEFINE_p = -DwxNO_RTTI
141 !if "$(USE_RTTI)" == "0"
142 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
144 !if "$(USE_THREADS)" == "0"
145 __THREAD_DEFINE_p = -DwxNO_THREADS
147 !if "$(USE_THREADS)" == "0"
148 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
150 !if "$(UNICODE)" == "0"
151 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
153 !if "$(UNICODE)" == "1"
154 __UNICODE_DEFINE_p = -D_UNICODE
156 !if "$(UNICODE)" == "0"
157 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0
159 !if "$(UNICODE)" == "1"
160 __UNICODE_DEFINE_p_1 = -d_UNICODE
163 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
166 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
168 !if "$(USE_CAIRO)" == "1"
169 ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
171 !if "$(USE_CAIRO)" == "1"
172 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = -i$(CAIRO_ROOT)\include\cairo
174 !if "$(SHARED)" == "1"
175 __DLLFLAG_p = -DWXUSINGDLL
177 !if "$(SHARED)" == "1"
178 __DLLFLAG_p_1 = -dWXUSINGDLL
180 !if "$(MONOLITHIC)" == "0"
182 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
184 !if "$(MONOLITHIC)" == "0"
186 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
188 !if "$(MONOLITHIC)" == "0"
190 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
192 !if "$(MONOLITHIC)" == "0"
194 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
196 !if "$(MONOLITHIC)" == "0"
198 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
200 !if "$(MONOLITHIC)" == "1"
202 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
204 !if "$(MONOLITHIC)" == "1" && "$(USE_STC)" == "1"
205 __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
207 !if "$(USE_GUI)" == "1"
208 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
210 !if "$(USE_GUI)" == "1"
211 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
213 !if "$(USE_GUI)" == "1"
214 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
217 __UNICOWS_LIB_p = unicows.lib
219 !if "$(USE_CAIRO)" == "1"
220 __CAIRO_LIB_p = cairo.lib
222 !if "$(USE_CAIRO)" == "1"
223 ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
225 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
228 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
231 !if "$(DEBUG_INFO)" == "0"
234 !if "$(DEBUG_INFO)" == "1"
241 -if not exist $(OBJS) mkdir $(OBJS)
245 all: $(OBJS)\forty.exe data
248 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
249 -if exist $(OBJS)\*.res del $(OBJS)\*.res
250 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
251 -if exist $(OBJS)\forty.exe del $(OBJS)\forty.exe
252 -if exist $(OBJS)\forty.tds del $(OBJS)\forty.tds
253 -if exist $(OBJS)\forty.ilc del $(OBJS)\forty.ilc
254 -if exist $(OBJS)\forty.ild del $(OBJS)\forty.ild
255 -if exist $(OBJS)\forty.ilf del $(OBJS)\forty.ilf
256 -if exist $(OBJS)\forty.ils del $(OBJS)\forty.ils
258 $(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty.res
259 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @&&|
260 c0w32.obj $(FORTY_OBJECTS),$@,, $(__WXLIB_HTML_p) $(__WXLIB_ADV_p) $(__WXLIB_XML_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_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) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\forty_forty.res
264 if not exist $(OBJS) mkdir $(OBJS)
265 for %f in (about.htm) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
267 $(OBJS)\forty_forty.obj: .\forty.cpp
268 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\forty.cpp
270 $(OBJS)\forty_canvas.obj: .\canvas.cpp
271 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\canvas.cpp
273 $(OBJS)\forty_card.obj: .\card.cpp
274 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\card.cpp
276 $(OBJS)\forty_game.obj: .\game.cpp
277 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\game.cpp
279 $(OBJS)\forty_pile.obj: .\pile.cpp
280 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\pile.cpp
282 $(OBJS)\forty_playerdg.obj: .\playerdg.cpp
283 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\playerdg.cpp
285 $(OBJS)\forty_scoredg.obj: .\scoredg.cpp
286 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\scoredg.cpp
288 $(OBJS)\forty_scorefil.obj: .\scorefil.cpp
289 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\scorefil.cpp
291 $(OBJS)\forty_forty.res: .\forty.rc
292 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__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) -i.\..\..\samples -dNOPCH .\forty.rc