]>
Commit | Line | Data |
---|---|---|
f82b7036 KO |
1 | # =========================================================================\r |
2 | # This makefile was generated by\r | |
00eef16d | 3 | # Bakefile 0.2.9 (http://www.bakefile.org)\r |
f82b7036 KO |
4 | # Do not modify, all changes will be overwritten!\r |
5 | # =========================================================================\r | |
6 | \r | |
7 | .autodepend\r | |
8 | \r | |
9 | !ifndef BCCDIR\r | |
10 | !ifndef MAKEDIR\r | |
11 | !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4\r | |
12 | !endif\r | |
13 | BCCDIR = $(MAKEDIR)\..\r | |
14 | !endif\r | |
15 | \r | |
16 | !include ../../build/msw/config.bcc\r | |
17 | \r | |
18 | # -------------------------------------------------------------------------\r | |
19 | # Do not modify the rest of this file!\r | |
20 | # -------------------------------------------------------------------------\r | |
21 | \r | |
22 | ### Variables: ###\r | |
23 | \r | |
24 | WX_RELEASE_NODOT = 29\r | |
25 | COMPILER_PREFIX = bcc\r | |
26 | OBJS = \\r | |
74a59798 VZ |
27 | $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r |
28 | LIBDIRNAME = \\r | |
29 | .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)\r | |
f82b7036 KO |
30 | SETUPHDIR = \\r |
31 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r | |
32 | XRCDEMO_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \\r | |
22a3b6e4 VZ |
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 \ | |
f82b7036 KO |
37 | $(____CAIRO_INCLUDEDIR_FILENAMES_p) -I. $(__DLLFLAG_p) -I.\..\..\samples \\r |
38 | -DNOPCH $(CPPFLAGS) $(CXXFLAGS)\r | |
39 | XRCDEMO_OBJECTS = \\r | |
40 | $(OBJS)\xrcdemo_xrcdemo.obj \\r | |
41 | $(OBJS)\xrcdemo_myframe.obj \\r | |
42 | $(OBJS)\xrcdemo_derivdlg.obj \\r | |
00eef16d VZ |
43 | $(OBJS)\xrcdemo_custclas.obj \\r |
44 | $(OBJS)\xrcdemo_objrefdlg.obj\r | |
f82b7036 KO |
45 | \r |
46 | ### Conditionally set variables: ###\r | |
47 | \r | |
22a3b6e4 VZ |
48 | !if "$(TOOLKIT)" == "GTK" |
49 | WIN32_TOOLKIT_LOWERCASE = gtk | |
50 | !endif | |
51 | !if "$(TOOLKIT)" == "MSW" | |
52 | WIN32_TOOLKIT_LOWERCASE = msw | |
53 | !endif | |
f82b7036 KO |
54 | !if "$(USE_GUI)" == "0"\r |
55 | PORTNAME = base\r | |
56 | !endif\r | |
57 | !if "$(USE_GUI)" == "1"\r | |
22a3b6e4 VZ |
58 | PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) |
59 | !endif | |
60 | !if "$(TOOLKIT)" == "MAC" | |
61 | WXBASEPORT = _carbon | |
f82b7036 | 62 | !endif\r |
74a59798 VZ |
63 | !if "$(OFFICIAL_BUILD)" == "1"\r |
64 | COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD\r | |
65 | !endif\r | |
f82b7036 KO |
66 | !if "$(BUILD)" == "debug"\r |
67 | WXDEBUGFLAG = d\r | |
68 | !endif\r | |
69 | !if "$(UNICODE)" == "1"\r | |
70 | WXUNICODEFLAG = u\r | |
71 | !endif\r | |
72 | !if "$(WXUNIV)" == "1"\r | |
73 | WXUNIVNAME = univ\r | |
74 | !endif\r | |
75 | !if "$(SHARED)" == "1"\r | |
76 | WXDLLFLAG = dll\r | |
77 | !endif\r | |
78 | !if "$(SHARED)" == "0"\r | |
79 | LIBTYPE_SUFFIX = lib\r | |
80 | !endif\r | |
81 | !if "$(SHARED)" == "1"\r | |
82 | LIBTYPE_SUFFIX = dll\r | |
83 | !endif\r | |
84 | !if "$(MONOLITHIC)" == "0"\r | |
85 | EXTRALIBS_FOR_BASE = \r | |
86 | !endif\r | |
87 | !if "$(MONOLITHIC)" == "1"\r | |
51ec29ea | 88 | EXTRALIBS_FOR_BASE = \r |
f82b7036 | 89 | !endif\r |
22a3b6e4 VZ |
90 | !if "$(TOOLKIT)" == "GTK" && "$(TOOLKIT_VERSION)" == "2" |
91 | LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \ | |
92 | gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \ | |
93 | glib-2.0.lib | |
94 | !endif | |
f82b7036 KO |
95 | !if "$(BUILD)" == "debug"\r |
96 | __OPTIMIZEFLAG_2 = -Od\r | |
97 | !endif\r | |
98 | !if "$(BUILD)" == "release"\r | |
99 | __OPTIMIZEFLAG_2 = -O2\r | |
100 | !endif\r | |
101 | !if "$(USE_THREADS)" == "0"\r | |
102 | __THREADSFLAG_5 = \r | |
103 | !endif\r | |
104 | !if "$(USE_THREADS)" == "1"\r | |
105 | __THREADSFLAG_5 = mt\r | |
106 | !endif\r | |
107 | !if "$(USE_THREADS)" == "0"\r | |
108 | __THREADSFLAG_6 = \r | |
109 | !endif\r | |
110 | !if "$(USE_THREADS)" == "1"\r | |
111 | __THREADSFLAG_6 = -tWM\r | |
112 | !endif\r | |
113 | !if "$(RUNTIME_LIBS)" == "dynamic"\r | |
114 | __RUNTIME_LIBS_7 = -tWR\r | |
115 | !endif\r | |
116 | !if "$(RUNTIME_LIBS)" == "static"\r | |
117 | __RUNTIME_LIBS_7 = \r | |
118 | !endif\r | |
119 | !if "$(RUNTIME_LIBS)" == "dynamic"\r | |
120 | __RUNTIME_LIBS_8 = i\r | |
121 | !endif\r | |
122 | !if "$(RUNTIME_LIBS)" == "static"\r | |
123 | __RUNTIME_LIBS_8 = \r | |
124 | !endif\r | |
125 | !if "$(WXUNIV)" == "1"\r | |
126 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r | |
127 | !endif\r | |
128 | !if "$(WXUNIV)" == "1"\r | |
129 | __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__\r | |
130 | !endif\r | |
131 | !if "$(DEBUG_FLAG)" == "0"\r | |
132 | __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r | |
133 | !endif\r | |
134 | !if "$(DEBUG_FLAG)" == "0"\r | |
135 | __DEBUG_DEFINE_p_1 = -dwxDEBUG_LEVEL=0\r | |
136 | !endif\r | |
00fb97de KO |
137 | !if "$(BUILD)" == "release"\r |
138 | __NDEBUG_DEFINE_p = -DNDEBUG\r | |
139 | !endif\r | |
140 | !if "$(BUILD)" == "release"\r | |
141 | __NDEBUG_DEFINE_p_1 = -dNDEBUG\r | |
142 | !endif\r | |
f82b7036 KO |
143 | !if "$(USE_EXCEPTIONS)" == "0"\r |
144 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r | |
145 | !endif\r | |
146 | !if "$(USE_EXCEPTIONS)" == "0"\r | |
147 | __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS\r | |
148 | !endif\r | |
149 | !if "$(USE_RTTI)" == "0"\r | |
150 | __RTTI_DEFINE_p = -DwxNO_RTTI\r | |
151 | !endif\r | |
152 | !if "$(USE_RTTI)" == "0"\r | |
153 | __RTTI_DEFINE_p_1 = -dwxNO_RTTI\r | |
154 | !endif\r | |
155 | !if "$(USE_THREADS)" == "0"\r | |
156 | __THREAD_DEFINE_p = -DwxNO_THREADS\r | |
157 | !endif\r | |
158 | !if "$(USE_THREADS)" == "0"\r | |
159 | __THREAD_DEFINE_p_1 = -dwxNO_THREADS\r | |
160 | !endif\r | |
161 | !if "$(UNICODE)" == "0"\r | |
162 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r | |
163 | !endif\r | |
164 | !if "$(UNICODE)" == "1"\r | |
165 | __UNICODE_DEFINE_p = -D_UNICODE\r | |
166 | !endif\r | |
167 | !if "$(UNICODE)" == "0"\r | |
168 | __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0\r | |
169 | !endif\r | |
170 | !if "$(UNICODE)" == "1"\r | |
171 | __UNICODE_DEFINE_p_1 = -d_UNICODE\r | |
172 | !endif\r | |
173 | !if "$(MSLU)" == "1"\r | |
174 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r | |
175 | !endif\r | |
176 | !if "$(MSLU)" == "1"\r | |
177 | __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1\r | |
178 | !endif\r | |
f82b7036 KO |
179 | !if "$(USE_CAIRO)" == "1"\r |
180 | ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r | |
181 | !endif\r | |
182 | !if "$(USE_CAIRO)" == "1"\r | |
183 | ____CAIRO_INCLUDEDIR_FILENAMES_1_p = -i$(CAIRO_ROOT)\include\cairo\r | |
184 | !endif\r | |
185 | !if "$(SHARED)" == "1"\r | |
186 | __DLLFLAG_p = -DWXUSINGDLL\r | |
187 | !endif\r | |
188 | !if "$(SHARED)" == "1"\r | |
189 | __DLLFLAG_p_1 = -dWXUSINGDLL\r | |
190 | !endif\r | |
191 | !if "$(MONOLITHIC)" == "0"\r | |
74a59798 VZ |
192 | __WXLIB_RIBBON_p = \\r |
193 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ribbon.lib\r | |
194 | !endif\r | |
195 | !if "$(MONOLITHIC)" == "0"\r | |
f82b7036 KO |
196 | __WXLIB_XRC_p = \\r |
197 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xrc.lib\r | |
198 | !endif\r | |
199 | !if "$(MONOLITHIC)" == "0"\r | |
200 | __WXLIB_HTML_p = \\r | |
201 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib\r | |
202 | !endif\r | |
203 | !if "$(MONOLITHIC)" == "0"\r | |
204 | __WXLIB_ADV_p = \\r | |
205 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib\r | |
206 | !endif\r | |
207 | !if "$(MONOLITHIC)" == "0"\r | |
208 | __WXLIB_CORE_p = \\r | |
209 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r | |
210 | !endif\r | |
211 | !if "$(MONOLITHIC)" == "0"\r | |
212 | __WXLIB_XML_p = \\r | |
22a3b6e4 | 213 | wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib |
f82b7036 KO |
214 | !endif\r |
215 | !if "$(MONOLITHIC)" == "0"\r | |
216 | __WXLIB_BASE_p = \\r | |
22a3b6e4 | 217 | wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
f82b7036 KO |
218 | !endif\r |
219 | !if "$(MONOLITHIC)" == "1"\r | |
220 | __WXLIB_MONO_p = \\r | |
221 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r | |
222 | !endif\r | |
223 | !if "$(USE_GUI)" == "1"\r | |
224 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r | |
225 | !endif\r | |
226 | !if "$(USE_GUI)" == "1"\r | |
227 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r | |
228 | !endif\r | |
229 | !if "$(USE_GUI)" == "1"\r | |
230 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r | |
231 | !endif\r | |
232 | !if "$(MSLU)" == "1"\r | |
233 | __UNICOWS_LIB_p = unicows.lib\r | |
234 | !endif\r | |
f82b7036 KO |
235 | !if "$(USE_CAIRO)" == "1"\r |
236 | __CAIRO_LIB_p = cairo.lib\r | |
237 | !endif\r | |
238 | !if "$(USE_CAIRO)" == "1"\r | |
239 | ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r | |
240 | !endif\r | |
241 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r | |
242 | __DEBUGINFO = -v\r | |
243 | !endif\r | |
244 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r | |
245 | __DEBUGINFO = -v-\r | |
246 | !endif\r | |
247 | !if "$(DEBUG_INFO)" == "0"\r | |
248 | __DEBUGINFO = -v-\r | |
249 | !endif\r | |
250 | !if "$(DEBUG_INFO)" == "1"\r | |
251 | __DEBUGINFO = -v\r | |
252 | !endif\r | |
253 | \r | |
254 | \r | |
255 | all: $(OBJS)\r | |
256 | $(OBJS):\r | |
257 | -if not exist $(OBJS) mkdir $(OBJS)\r | |
258 | \r | |
259 | ### Targets: ###\r | |
260 | \r | |
261 | all: $(OBJS)\xrcdemo.exe data\r | |
262 | \r | |
263 | clean: \r | |
264 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r | |
265 | -if exist $(OBJS)\*.res del $(OBJS)\*.res\r | |
266 | -if exist $(OBJS)\*.csm del $(OBJS)\*.csm\r | |
267 | -if exist $(OBJS)\xrcdemo.exe del $(OBJS)\xrcdemo.exe\r | |
268 | -if exist $(OBJS)\xrcdemo.tds del $(OBJS)\xrcdemo.tds\r | |
269 | -if exist $(OBJS)\xrcdemo.ilc del $(OBJS)\xrcdemo.ilc\r | |
270 | -if exist $(OBJS)\xrcdemo.ild del $(OBJS)\xrcdemo.ild\r | |
271 | -if exist $(OBJS)\xrcdemo.ilf del $(OBJS)\xrcdemo.ilf\r | |
272 | -if exist $(OBJS)\xrcdemo.ils del $(OBJS)\xrcdemo.ils\r | |
273 | \r | |
00eef16d | 274 | $(OBJS)\xrcdemo.exe: $(XRCDEMO_OBJECTS) $(OBJS)\xrcdemo_sample.res\r |
f82b7036 | 275 | ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @&&|\r |
22a3b6e4 | 276 | c0w32.obj $(XRCDEMO_OBJECTS),$@,, $(__WXLIB_RIBBON_p) $(__WXLIB_XRC_p) $(__WXLIB_HTML_p) $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_XML_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)\xrcdemo_sample.res |
f82b7036 KO |
277 | |\r |
278 | \r | |
279 | data: \r | |
280 | if not exist $(OBJS)\rc mkdir $(OBJS)\rc\r | |
08670ea8 | 281 | for %f in (artprov.xpm artprov.xrc basicdlg.xpm basicdlg.xrc controls.xpm controls.xrc custclas.xpm custclas.xrc derivdlg.xpm derivdlg.xrc fileopen.gif filesave.gif frame.xrc fuzzy.gif menu.xrc platform.xpm platform.xrc quotes.gif resource.xrc toolbar.xrc uncenter.xpm objref.xrc objrefdlg.xpm uncenter.xrc update.gif variable.xpm variable.xrc throbber.gif stop.xpm wxbanner.gif) do if not exist $(OBJS)\rc\%f copy .\rc\%f $(OBJS)\rc\r |
00eef16d VZ |
282 | \r |
283 | $(OBJS)\xrcdemo_sample.res: .\..\..\samples\sample.rc\r | |
22a3b6e4 | 284 | 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 .\..\..\samples\sample.rc |
f82b7036 KO |
285 | \r |
286 | $(OBJS)\xrcdemo_xrcdemo.obj: .\xrcdemo.cpp\r | |
287 | $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) .\xrcdemo.cpp\r | |
288 | \r | |
289 | $(OBJS)\xrcdemo_myframe.obj: .\myframe.cpp\r | |
290 | $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) .\myframe.cpp\r | |
291 | \r | |
292 | $(OBJS)\xrcdemo_derivdlg.obj: .\derivdlg.cpp\r | |
293 | $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) .\derivdlg.cpp\r | |
294 | \r | |
295 | $(OBJS)\xrcdemo_custclas.obj: .\custclas.cpp\r | |
296 | $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) .\custclas.cpp\r | |
297 | \r | |
00eef16d VZ |
298 | $(OBJS)\xrcdemo_objrefdlg.obj: .\objrefdlg.cpp\r |
299 | $(CXX) -q -c -P -o$@ $(XRCDEMO_CXXFLAGS) .\objrefdlg.cpp\r | |
300 | \r |