]> git.saurik.com Git - wxWidgets.git/blob - demos/life/makefile.bcc
applying editor part of patch, see #15003
[wxWidgets.git] / demos / life / 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 LIFE_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
33 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WX$(TOOLKIT)__ \
34 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) \
35 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
36 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
37 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -I. $(__DLLFLAG_p) -I.\..\..\samples \
38 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
39 LIFE_OBJECTS = \
40 $(OBJS)\life_life.obj \
41 $(OBJS)\life_dialogs.obj \
42 $(OBJS)\life_game.obj \
43 $(OBJS)\life_reader.obj
44
45 ### Conditionally set variables: ###
46
47 !if "$(TOOLKIT)" == "GTK"
48 WIN32_TOOLKIT_LOWERCASE = gtk
49 !endif
50 !if "$(TOOLKIT)" == "MSW"
51 WIN32_TOOLKIT_LOWERCASE = msw
52 !endif
53 !if "$(USE_GUI)" == "0"
54 PORTNAME = base
55 !endif
56 !if "$(USE_GUI)" == "1"
57 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
58 !endif
59 !if "$(TOOLKIT)" == "MAC"
60 WXBASEPORT = _carbon
61 !endif
62 !if "$(OFFICIAL_BUILD)" == "1"
63 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
64 !endif
65 !if "$(BUILD)" == "debug"
66 WXDEBUGFLAG = d
67 !endif
68 !if "$(UNICODE)" == "1"
69 WXUNICODEFLAG = u
70 !endif
71 !if "$(WXUNIV)" == "1"
72 WXUNIVNAME = univ
73 !endif
74 !if "$(SHARED)" == "1"
75 WXDLLFLAG = dll
76 !endif
77 !if "$(SHARED)" == "0"
78 LIBTYPE_SUFFIX = lib
79 !endif
80 !if "$(SHARED)" == "1"
81 LIBTYPE_SUFFIX = dll
82 !endif
83 !if "$(MONOLITHIC)" == "0"
84 EXTRALIBS_FOR_BASE =
85 !endif
86 !if "$(MONOLITHIC)" == "1"
87 EXTRALIBS_FOR_BASE =
88 !endif
89 !if "$(TOOLKIT)" == "GTK" && "$(TOOLKIT_VERSION)" == "2"
90 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
91 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
92 glib-2.0.lib
93 !endif
94 !if "$(BUILD)" == "debug"
95 __OPTIMIZEFLAG_2 = -Od
96 !endif
97 !if "$(BUILD)" == "release"
98 __OPTIMIZEFLAG_2 = -O2
99 !endif
100 !if "$(USE_THREADS)" == "0"
101 __THREADSFLAG_5 =
102 !endif
103 !if "$(USE_THREADS)" == "1"
104 __THREADSFLAG_5 = mt
105 !endif
106 !if "$(USE_THREADS)" == "0"
107 __THREADSFLAG_6 =
108 !endif
109 !if "$(USE_THREADS)" == "1"
110 __THREADSFLAG_6 = -tWM
111 !endif
112 !if "$(RUNTIME_LIBS)" == "dynamic"
113 __RUNTIME_LIBS_7 = -tWR
114 !endif
115 !if "$(RUNTIME_LIBS)" == "static"
116 __RUNTIME_LIBS_7 =
117 !endif
118 !if "$(RUNTIME_LIBS)" == "dynamic"
119 __RUNTIME_LIBS_8 = i
120 !endif
121 !if "$(RUNTIME_LIBS)" == "static"
122 __RUNTIME_LIBS_8 =
123 !endif
124 !if "$(WXUNIV)" == "1"
125 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
126 !endif
127 !if "$(WXUNIV)" == "1"
128 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
129 !endif
130 !if "$(DEBUG_FLAG)" == "0"
131 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
132 !endif
133 !if "$(DEBUG_FLAG)" == "0"
134 __DEBUG_DEFINE_p_1 = -dwxDEBUG_LEVEL=0
135 !endif
136 !if "$(BUILD)" == "release"
137 __NDEBUG_DEFINE_p = -DNDEBUG
138 !endif
139 !if "$(BUILD)" == "release"
140 __NDEBUG_DEFINE_p_1 = -dNDEBUG
141 !endif
142 !if "$(USE_EXCEPTIONS)" == "0"
143 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
144 !endif
145 !if "$(USE_EXCEPTIONS)" == "0"
146 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
147 !endif
148 !if "$(USE_RTTI)" == "0"
149 __RTTI_DEFINE_p = -DwxNO_RTTI
150 !endif
151 !if "$(USE_RTTI)" == "0"
152 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
153 !endif
154 !if "$(USE_THREADS)" == "0"
155 __THREAD_DEFINE_p = -DwxNO_THREADS
156 !endif
157 !if "$(USE_THREADS)" == "0"
158 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
159 !endif
160 !if "$(UNICODE)" == "0"
161 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
162 !endif
163 !if "$(UNICODE)" == "1"
164 __UNICODE_DEFINE_p = -D_UNICODE
165 !endif
166 !if "$(UNICODE)" == "0"
167 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0
168 !endif
169 !if "$(UNICODE)" == "1"
170 __UNICODE_DEFINE_p_1 = -d_UNICODE
171 !endif
172 !if "$(MSLU)" == "1"
173 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
174 !endif
175 !if "$(MSLU)" == "1"
176 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
177 !endif
178 !if "$(USE_CAIRO)" == "1"
179 ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
180 !endif
181 !if "$(USE_CAIRO)" == "1"
182 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = -i$(CAIRO_ROOT)\include\cairo
183 !endif
184 !if "$(SHARED)" == "1"
185 __DLLFLAG_p = -DWXUSINGDLL
186 !endif
187 !if "$(SHARED)" == "1"
188 __DLLFLAG_p_1 = -dWXUSINGDLL
189 !endif
190 !if "$(MONOLITHIC)" == "0"
191 __WXLIB_CORE_p = \
192 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
193 !endif
194 !if "$(MONOLITHIC)" == "0"
195 __WXLIB_BASE_p = \
196 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
197 !endif
198 !if "$(MONOLITHIC)" == "1"
199 __WXLIB_MONO_p = \
200 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
201 !endif
202 !if "$(USE_GUI)" == "1"
203 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
204 !endif
205 !if "$(USE_GUI)" == "1"
206 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
207 !endif
208 !if "$(USE_GUI)" == "1"
209 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
210 !endif
211 !if "$(MSLU)" == "1"
212 __UNICOWS_LIB_p = unicows.lib
213 !endif
214 !if "$(USE_CAIRO)" == "1"
215 __CAIRO_LIB_p = cairo.lib
216 !endif
217 !if "$(USE_CAIRO)" == "1"
218 ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
219 !endif
220 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
221 __DEBUGINFO = -v
222 !endif
223 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
224 __DEBUGINFO = -v-
225 !endif
226 !if "$(DEBUG_INFO)" == "0"
227 __DEBUGINFO = -v-
228 !endif
229 !if "$(DEBUG_INFO)" == "1"
230 __DEBUGINFO = -v
231 !endif
232
233
234 all: $(OBJS)
235 $(OBJS):
236 -if not exist $(OBJS) mkdir $(OBJS)
237
238 ### Targets: ###
239
240 all: $(OBJS)\life.exe data
241
242 clean:
243 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
244 -if exist $(OBJS)\*.res del $(OBJS)\*.res
245 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
246 -if exist $(OBJS)\life.exe del $(OBJS)\life.exe
247 -if exist $(OBJS)\life.tds del $(OBJS)\life.tds
248 -if exist $(OBJS)\life.ilc del $(OBJS)\life.ilc
249 -if exist $(OBJS)\life.ild del $(OBJS)\life.ild
250 -if exist $(OBJS)\life.ilf del $(OBJS)\life.ilf
251 -if exist $(OBJS)\life.ils del $(OBJS)\life.ils
252
253 $(OBJS)\life.exe: $(LIFE_OBJECTS) $(OBJS)\life_life.res
254 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @&&|
255 c0w32.obj $(LIFE_OBJECTS),$@,, $(__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) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\life_life.res
256 |
257
258 data:
259 if not exist $(OBJS) mkdir $(OBJS)
260 for %f in (breeder.lif) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
261
262 $(OBJS)\life_life.obj: .\life.cpp
263 $(CXX) -q -c -P -o$@ $(LIFE_CXXFLAGS) .\life.cpp
264
265 $(OBJS)\life_dialogs.obj: .\dialogs.cpp
266 $(CXX) -q -c -P -o$@ $(LIFE_CXXFLAGS) .\dialogs.cpp
267
268 $(OBJS)\life_game.obj: .\game.cpp
269 $(CXX) -q -c -P -o$@ $(LIFE_CXXFLAGS) .\game.cpp
270
271 $(OBJS)\life_reader.obj: .\reader.cpp
272 $(CXX) -q -c -P -o$@ $(LIFE_CXXFLAGS) .\reader.cpp
273
274 $(OBJS)\life_life.res: .\life.rc
275 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -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) -i.\..\..\samples -dNOPCH .\life.rc
276