]> git.saurik.com Git - wxWidgets.git/blob - demos/forty/makefile.bcc
avoid GTK+ prefixes for our tree entry code, it is not part of GTK+, should have...
[wxWidgets.git] / demos / forty / makefile.bcc
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 # =========================================================================
6
7 .autodepend
8
9 !ifndef BCCDIR
10 !ifndef MAKEDIR
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12 !endif
13 BCCDIR = $(MAKEDIR)\..
14 !endif
15
16 !include ../../build/msw/config.bcc
17
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
21
22 ### Variables: ###
23
24 WX_RELEASE_NODOT = 29
25 COMPILER_PREFIX = bcc
26 OBJS = \
27 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28 LIBDIRNAME = \
29 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
30 SETUPHDIR = \
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)
39 FORTY_OBJECTS = \
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
48
49 ### Conditionally set variables: ###
50
51 !if "$(USE_GUI)" == "0"
52 PORTNAME = base
53 !endif
54 !if "$(USE_GUI)" == "1"
55 PORTNAME = msw$(TOOLKIT_VERSION)
56 !endif
57 !if "$(OFFICIAL_BUILD)" == "1"
58 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
59 !endif
60 !if "$(BUILD)" == "debug"
61 WXDEBUGFLAG = d
62 !endif
63 !if "$(UNICODE)" == "1"
64 WXUNICODEFLAG = u
65 !endif
66 !if "$(WXUNIV)" == "1"
67 WXUNIVNAME = univ
68 !endif
69 !if "$(SHARED)" == "1"
70 WXDLLFLAG = dll
71 !endif
72 !if "$(SHARED)" == "0"
73 LIBTYPE_SUFFIX = lib
74 !endif
75 !if "$(SHARED)" == "1"
76 LIBTYPE_SUFFIX = dll
77 !endif
78 !if "$(MONOLITHIC)" == "0"
79 EXTRALIBS_FOR_BASE =
80 !endif
81 !if "$(MONOLITHIC)" == "1"
82 EXTRALIBS_FOR_BASE =
83 !endif
84 !if "$(BUILD)" == "debug"
85 __OPTIMIZEFLAG_2 = -Od
86 !endif
87 !if "$(BUILD)" == "release"
88 __OPTIMIZEFLAG_2 = -O2
89 !endif
90 !if "$(USE_THREADS)" == "0"
91 __THREADSFLAG_5 =
92 !endif
93 !if "$(USE_THREADS)" == "1"
94 __THREADSFLAG_5 = mt
95 !endif
96 !if "$(USE_THREADS)" == "0"
97 __THREADSFLAG_6 =
98 !endif
99 !if "$(USE_THREADS)" == "1"
100 __THREADSFLAG_6 = -tWM
101 !endif
102 !if "$(RUNTIME_LIBS)" == "dynamic"
103 __RUNTIME_LIBS_7 = -tWR
104 !endif
105 !if "$(RUNTIME_LIBS)" == "static"
106 __RUNTIME_LIBS_7 =
107 !endif
108 !if "$(RUNTIME_LIBS)" == "dynamic"
109 __RUNTIME_LIBS_8 = i
110 !endif
111 !if "$(RUNTIME_LIBS)" == "static"
112 __RUNTIME_LIBS_8 =
113 !endif
114 !if "$(WXUNIV)" == "1"
115 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
116 !endif
117 !if "$(WXUNIV)" == "1"
118 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
119 !endif
120 !if "$(DEBUG_FLAG)" == "0"
121 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
122 !endif
123 !if "$(DEBUG_FLAG)" == "0"
124 __DEBUG_DEFINE_p_1 = -dwxDEBUG_LEVEL=0
125 !endif
126 !if "$(BUILD)" == "release"
127 __NDEBUG_DEFINE_p = -DNDEBUG
128 !endif
129 !if "$(BUILD)" == "release"
130 __NDEBUG_DEFINE_p_1 = -dNDEBUG
131 !endif
132 !if "$(USE_EXCEPTIONS)" == "0"
133 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
134 !endif
135 !if "$(USE_EXCEPTIONS)" == "0"
136 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
137 !endif
138 !if "$(USE_RTTI)" == "0"
139 __RTTI_DEFINE_p = -DwxNO_RTTI
140 !endif
141 !if "$(USE_RTTI)" == "0"
142 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
143 !endif
144 !if "$(USE_THREADS)" == "0"
145 __THREAD_DEFINE_p = -DwxNO_THREADS
146 !endif
147 !if "$(USE_THREADS)" == "0"
148 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
149 !endif
150 !if "$(UNICODE)" == "0"
151 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
152 !endif
153 !if "$(UNICODE)" == "1"
154 __UNICODE_DEFINE_p = -D_UNICODE
155 !endif
156 !if "$(UNICODE)" == "0"
157 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0
158 !endif
159 !if "$(UNICODE)" == "1"
160 __UNICODE_DEFINE_p_1 = -d_UNICODE
161 !endif
162 !if "$(MSLU)" == "1"
163 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
164 !endif
165 !if "$(MSLU)" == "1"
166 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
167 !endif
168 !if "$(USE_CAIRO)" == "1"
169 ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
170 !endif
171 !if "$(USE_CAIRO)" == "1"
172 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = -i$(CAIRO_ROOT)\include\cairo
173 !endif
174 !if "$(SHARED)" == "1"
175 __DLLFLAG_p = -DWXUSINGDLL
176 !endif
177 !if "$(SHARED)" == "1"
178 __DLLFLAG_p_1 = -dWXUSINGDLL
179 !endif
180 !if "$(MONOLITHIC)" == "0"
181 __WXLIB_HTML_p = \
182 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
183 !endif
184 !if "$(MONOLITHIC)" == "0"
185 __WXLIB_ADV_p = \
186 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
187 !endif
188 !if "$(MONOLITHIC)" == "0"
189 __WXLIB_XML_p = \
190 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
191 !endif
192 !if "$(MONOLITHIC)" == "0"
193 __WXLIB_CORE_p = \
194 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
195 !endif
196 !if "$(MONOLITHIC)" == "0"
197 __WXLIB_BASE_p = \
198 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
199 !endif
200 !if "$(MONOLITHIC)" == "1"
201 __WXLIB_MONO_p = \
202 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
203 !endif
204 !if "$(MONOLITHIC)" == "1"
205 __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
206 !endif
207 !if "$(USE_GUI)" == "1"
208 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
209 !endif
210 !if "$(USE_GUI)" == "1"
211 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
212 !endif
213 !if "$(USE_GUI)" == "1"
214 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
215 !endif
216 !if "$(MSLU)" == "1"
217 __UNICOWS_LIB_p = unicows.lib
218 !endif
219 !if "$(USE_CAIRO)" == "1"
220 __CAIRO_LIB_p = cairo.lib
221 !endif
222 !if "$(USE_CAIRO)" == "1"
223 ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
224 !endif
225 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
226 __DEBUGINFO = -v
227 !endif
228 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
229 __DEBUGINFO = -v-
230 !endif
231 !if "$(DEBUG_INFO)" == "0"
232 __DEBUGINFO = -v-
233 !endif
234 !if "$(DEBUG_INFO)" == "1"
235 __DEBUGINFO = -v
236 !endif
237
238
239 all: $(OBJS)
240 $(OBJS):
241 -if not exist $(OBJS) mkdir $(OBJS)
242
243 ### Targets: ###
244
245 all: $(OBJS)\forty.exe data
246
247 clean:
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
257
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
261 |
262
263 data:
264 if not exist $(OBJS) mkdir $(OBJS)
265 for %f in (about.htm) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
266
267 $(OBJS)\forty_forty.obj: .\forty.cpp
268 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\forty.cpp
269
270 $(OBJS)\forty_canvas.obj: .\canvas.cpp
271 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\canvas.cpp
272
273 $(OBJS)\forty_card.obj: .\card.cpp
274 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\card.cpp
275
276 $(OBJS)\forty_game.obj: .\game.cpp
277 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\game.cpp
278
279 $(OBJS)\forty_pile.obj: .\pile.cpp
280 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\pile.cpp
281
282 $(OBJS)\forty_playerdg.obj: .\playerdg.cpp
283 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\playerdg.cpp
284
285 $(OBJS)\forty_scoredg.obj: .\scoredg.cpp
286 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\scoredg.cpp
287
288 $(OBJS)\forty_scorefil.obj: .\scorefil.cpp
289 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) .\scorefil.cpp
290
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
293